<?php

// 支付配置

return [

    'WiwiPay' => [
        'key' => 'dkr3T8645AH28d81hL5722J7v72cqt6b',
        'mchNo' => '2025109626',
        'apiUrl' => 'https://www.wiwiusonepay.com/api/pay/create',
        'currency' => 'usd',
        'wayCode' => 'cashapp',
        'signType' => 'MD5',
        'notify' => env('APP_URL', '').'/api/wiwipay/notify',
        'return' => env('APP_URL', '').'/api/wiwipay/return',
        'cashNotify' => env('APP_URL', '').'/api/wiwipay/payout_notify',
        'cash_url' => env('APP_URL', '').'/api/payout/create'
    ],

    // SafePay 支付渠道（RSA SHA256签名）
    'SafePay' => [
        'mer_no'             => '601079',
        'apiUrl'             => 'https://api.safepay.wang',
        'currency'           => 'USD',
        'payin_fee'          => 0.1,   // 代收费率 5%
        'notify_url'         => env('APP_URL', '') . '/api/safepay/notify',
        // 商户私钥（用于签名）
        'private_key'        => 'MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAM5tmHRZ2uoA22ZUeJt+9LcE3mPWi8BAzNOgb/ubFZ7h6eezVkUrALNoomEugk4MHHSq+pvLJbBpj12SA4c5Ecav0kcm/sXkaF8Ojt9QNto6kPL/SWDvsRkgX0iwJps5oaYRNu7XGPZNFi+v42C6PmMrYtuFIHcDh0e9Y/MMp+mtAgMBAAECgYBkui+5HptmsdJdJXzQi2uH3tVRrD/3KOeJoHDkOjGbnKsRR34iNDCcWsNZXmNxCBHekAvHd6JFaczuILCeDCfyhkFNJL/HqWbhR/XT29JvdyIz4frRQR9eNyG9L+RXIc6dX3+ZVw2j8sf2IBnB63Y3oY57wqiASccBvMLT5P2GlQJBAOcIYhpTP9G9u1dJ1Y9ehFDz1xrCapV6Twi03FbbOzd5YhVt6pJykafXVpgLnGCiVDYpKmAzW5b3vP6ENmoz/BcCQQDkvIPG+hWAZ/+Rx7u6mT5vxLX35PEuddgW8hNhobYkzllfZx8pHK/Puuf7f0bZlJrT17BqJUGjj/x0PpX6ig7bAkBjOJR5XduAxo1YtZsEUcFdyvtMwMZpn/elc5dVrh3Ge1kGfwhJEO9BOBg2gHYOgmjMQe2zFxt0wLzoSfvcrKrNAkBrLh59fS/YFGM/9xxzSl1kWAOAXinZQGT6E4KbbAACbSKZvqNuSz/ikc0kHrafO6/09gt3IXAJaW29NppmZIyjAkEA4iyI24Pct2USqb1EIhV20jgD+/9CFFJmbZXWd2nBa2CxOxO+oe8cO4GM3YmaWu9A78PCbMl7CzPBgYjDyXXKZA==',
        // 平台公钥（用于验签回调）
        'platform_public_key' => 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnyULwz2hGQzuxBgazlpR74V0giZv8xAJKJ8DzoBzs8GevOMBAVHY7/lcUs/LiMsZTis7OFDFV6Uqz+kaww9O40P7XZF3Qhh9KzgE+9ehqj6EQOvHEDXnmeakwHP3vCHlfmaToxvj7DUjPOLE+Yvgp89cbj7D0bc8n7YbKYlQHVwIDAQAB',
    ],

    // SafePay 代付渠道配置（RSA SHA256签名）
    'SafePayOut' => [
        'mer_no'             => '601079',
        'apiUrl'             => 'https://api.safepay.wang',
        'currency'           => 'USD',
        'notify_url'         => env('APP_URL', '') . '/api/safepay/payout_notify',
        'pay_rate'           => [0.5, 0.3],  // 代付手续费: [费率%, 固定$]
        // 商户私钥（用于签名，与代收共用）
        'private_key'        => 'MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAM5tmHRZ2uoA22ZUeJt+9LcE3mPWi8BAzNOgb/ubFZ7h6eezVkUrALNoomEugk4MHHSq+pvLJbBpj12SA4c5Ecav0kcm/sXkaF8Ojt9QNto6kPL/SWDvsRkgX0iwJps5oaYRNu7XGPZNFi+v42C6PmMrYtuFIHcDh0e9Y/MMp+mtAgMBAAECgYBkui+5HptmsdJdJXzQi2uH3tVRrD/3KOeJoHDkOjGbnKsRR34iNDCcWsNZXmNxCBHekAvHd6JFaczuILCeDCfyhkFNJL/HqWbhR/XT29JvdyIz4frRQR9eNyG9L+RXIc6dX3+ZVw2j8sf2IBnB63Y3oY57wqiASccBvMLT5P2GlQJBAOcIYhpTP9G9u1dJ1Y9ehFDz1xrCapV6Twi03FbbOzd5YhVt6pJykafXVpgLnGCiVDYpKmAzW5b3vP6ENmoz/BcCQQDkvIPG+hWAZ/+Rx7u6mT5vxLX35PEuddgW8hNhobYkzllfZx8pHK/Puuf7f0bZlJrT17BqJUGjj/x0PpX6ig7bAkBjOJR5XduAxo1YtZsEUcFdyvtMwMZpn/elc5dVrh3Ge1kGfwhJEO9BOBg2gHYOgmjMQe2zFxt0wLzoSfvcrKrNAkBrLh59fS/YFGM/9xxzSl1kWAOAXinZQGT6E4KbbAACbSKZvqNuSz/ikc0kHrafO6/09gt3IXAJaW29NppmZIyjAkEA4iyI24Pct2USqb1EIhV20jgD+/9CFFJmbZXWd2nBa2CxOxO+oe8cO4GM3YmaWu9A78PCbMl7CzPBgYjDyXXKZA==',
        // 平台公钥（用于验签回调）
        'platform_public_key' => 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnyULwz2hGQzuxBgazlpR74V0giZv8xAJKJ8DzoBzs8GevOMBAVHY7/lcUs/LiMsZTis7OFDFV6Uqz+kaww9O40P7XZF3Qhh9KzgE+9ehqj6EQOvHEDXnmeakwHP3vCHlfmaToxvj7DUjPOLE+Yvgp89cbj7D0bc8n7YbKYlQHVwIDAQAB',
    ],

    // BotImPay 支付渠道（RSA SHA256签名，crypto代收）
    'BotImPay' => [
        'mer_no'             => '3005',
        'apiUrl'             => 'https://api.botimpay.top',
        'currency'           => 'USDT',
        'notify_url'         => env('APP_URL', '') . '/api/botimpay/notify',
        'pay_rate'           => [
            16   => [1, 0],    // BTC:  1% + $0
            32   => [1, 0],    // ETH:  1% + $0
            1024 => [1, 0],    // USDT: 1% + $0
            2048 => [1, 0],    // USDC: 1% + $0
        ],
        // 商户私钥
        'private_key'        => 'MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAL1QKQMQ8mQAloE8CGGho3RCI0WgtkoAcdy/27EarDs0PBuiGS4i4unYZ2nIrBenuw+XX4K4vizh+CX1Q4hPOqAqBF6a4SgIilFTG0q6mlYYFYnNdWI+t6JjmJtoLYs3EK0SkLkYTKy6TLS++p35L+crglboAWsyFb9oR9wVJisvAgMBAAECgYBI9KNZcyZ2M2PM2f3A4jHDk9lT8+NMEW/PyoA3eDf3eOHRJF7f0MHxrFvuAE+RrioAkC1Wiyt+0HZ46lPkK+RDOgSimv6qK/oT5UGlVQZqZlxLalgQ1Wi0ujqp+wAleTHK6F6InnjupaGwo5jy8Z1GDUkz40eycUDmXPrTBDu3wQJBAPhYCXAMe1UI4FhXUBkU8IjWr1UPDHYkliwj8OegEoNydH90SPvt7qpc8EFN75aK+HwzvjLEQvd8qPJqdMdm0j0CQQDDJj6gzaYGatGQZp5dSWVuF9TOzldEycL2glPXTAcAF9BaQKzL1RTXvPEeIoTsK4tntmEduiOtoVzeIlRrW6XbAkEAx93SeqMQ/zbNl0tt40G+8+IT6djappp7YbrrPv7M541NxOXJdzfeRK3XjjczA22E3jCmeiUJ4DQrpC2ZHoHZ4QJBAJizynnlsa5/03Ac/HqeviHBwCH7UEphXo+qN5TWxvuJpt2Ykh4FpIOUM1CTTlPHVxRWn/O0/coV5Cdl0Y0Yb9UCQB6vthenO4t4qbLy/Hdm83EFJzGmLtdskpU7Rs8qlG1RgVyUgTGv15rlnBFEb3qaYqihYfw5Epxux1GEakhkJsk=',
        // 平台公钥（回调验签）
        'platform_public_key' => 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHCMT8mq2XZPoLii5wYVgg9NlMZadXhwyxJZ5duAX4hxXT1OiPpHkj2PpNyMhcBhn+O8p4FjWGUrTRoL29b0X/IlEuGD+u6QosimqYta4l6S47tNyTUqh9zrPmlXn6qow1JY9rL2eSs30NdvB0oFcitSsn68kNcRUDZ9FGtOZiRQIDAQAB',
    ],

    // SfPay 支付渠道（AES-CBC加密，仅代收）
    'SfPay' => [
        'merchant_key'       => 'pJhgp872bGKk//IU',
        'aes_key'            => 'tGzRUVea/qdushrA',
        'aes_iv'             => 'cpUMwwyrUwSDQiiR',
        'apiUrl'             => 'https://sfgateway.sforest.io',
        'currency'           => 'USD',
        'game_id'             => env('SFPAY_GAMEID', '26656'),
        'notify_url'         => env('APP_URL', '') . '/api/sfpay/notify',
        'return_url'         => env('APP_URL', '') . '/api/sfpay/notify',
        'cash_notify_url'    => env('APP_URL', '') . '/api/sfpay/payout_notify',
    ],

    // BotImPay 代付渠道配置（RSA SHA256签名）
    'BotImPayOut' => [
        'mer_no'             => '3005',
        'apiUrl'             => 'https://api.botimpay.top',
        'currency'           => 'USDT',
        'notify_url'         => env('APP_URL', '') . '/api/botimpay/payout_notify',
        'pay_rate'           => [
            3 => [1, 1],    // BTC:  1% + $1
            4 => [1, 1],    // ETH:  1% + $1
            5 => [1, 1],    // USDT: 1% + $1
            6 => [1, 1],    // USDC: 1% + $1
        ],
        'private_key'        => 'MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAL1QKQMQ8mQAloE8CGGho3RCI0WgtkoAcdy/27EarDs0PBuiGS4i4unYZ2nIrBenuw+XX4K4vizh+CX1Q4hPOqAqBF6a4SgIilFTG0q6mlYYFYnNdWI+t6JjmJtoLYs3EK0SkLkYTKy6TLS++p35L+crglboAWsyFb9oR9wVJisvAgMBAAECgYBI9KNZcyZ2M2PM2f3A4jHDk9lT8+NMEW/PyoA3eDf3eOHRJF7f0MHxrFvuAE+RrioAkC1Wiyt+0HZ46lPkK+RDOgSimv6qK/oT5UGlVQZqZlxLalgQ1Wi0ujqp+wAleTHK6F6InnjupaGwo5jy8Z1GDUkz40eycUDmXPrTBDu3wQJBAPhYCXAMe1UI4FhXUBkU8IjWr1UPDHYkliwj8OegEoNydH90SPvt7qpc8EFN75aK+HwzvjLEQvd8qPJqdMdm0j0CQQDDJj6gzaYGatGQZp5dSWVuF9TOzldEycL2glPXTAcAF9BaQKzL1RTXvPEeIoTsK4tntmEduiOtoVzeIlRrW6XbAkEAx93SeqMQ/zbNl0tt40G+8+IT6djappp7YbrrPv7M541NxOXJdzfeRK3XjjczA22E3jCmeiUJ4DQrpC2ZHoHZ4QJBAJizynnlsa5/03Ac/HqeviHBwCH7UEphXo+qN5TWxvuJpt2Ykh4FpIOUM1CTTlPHVxRWn/O0/coV5Cdl0Y0Yb9UCQB6vthenO4t4qbLy/Hdm83EFJzGmLtdskpU7Rs8qlG1RgVyUgTGv15rlnBFEb3qaYqihYfw5Epxux1GEakhkJsk=',
        'platform_public_key' => 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHCMT8mq2XZPoLii5wYVgg9NlMZadXhwyxJZ5duAX4hxXT1OiPpHkj2PpNyMhcBhn+O8p4FjWGUrTRoL29b0X/IlEuGD+u6QosimqYta4l6S47tNyTUqh9zrPmlXn6qow1JY9rL2eSs30NdvB0oFcitSsn68kNcRUDZ9FGtOZiRQIDAQAB',
    ],

    'PayPlus' => [
        'apiUrl' => env('PAYPLUS_PAYIN_URL', 'https://pay-sandbox.payplus.net'),
        'query_path' => env('PAYPLUS_QUERY_PATH', '/up-apis/merchant/payment/query'),
        'apiKey' => env('PAYPLUS_API_KEY', 'bPBYkV408FnADYDVJ4GlIHUB2CczfTiO'),
        'clientId' => env('PAYPLUS_CLIENT_ID', '3ebabd36-91a5-44cb-8ed9-5c3e49de5848'),
        'appId' => env('PAYPLUS_APP_ID', '104101'),
        'publicKey' => env(
            'PAYPLUS_PUBLIC_KEY',
            'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnuDnY8u7a9EvUBAG7jJdKNkPS2vPpHo/gp7f2TA62cHXRW0AmeqHoWkcW6s8mMyP9EC6zNOcaVbPZrh6o9q0X06eZadexSK8bBY24c1j+uR1mivRcyB8bPiaNMGLaKKXpkbwttP+No7AOpAkWXx3pemXJeO8CRZGGRT79gv4v8Sd9KXJvsV4tdOU/RObMBtjtyWnGbNWWkxyJfq/sU4eDnFUr9J3jc1U6pPty/6ziukt6dMXth5qaod8kf7QMI0gXMlIi9znTLLSsQUzcZA0pB4/QvEExJxq0mtCtrq80UWITeE0frgbS4djq9XFGU+YlEXEX9DWgby5E9uX05vVUQIDAQAB'
        ),
        'currency' => env('PAYPLUS_CURRENCY', 'USD'),
        'country' => env('PAYPLUS_COUNTRY', 'US'),
        'state' => env('PAYPLUS_STATE', 'NA'),
        'zip' => env('PAYPLUS_ZIP', '00000'),
        'area_code' => env('PAYPLUS_AREA_CODE', '1'),
        'language' => env('PAYPLUS_LANGUAGE', 'en-US'),
        'media_source' => env('PAYPLUS_MEDIA_SOURCE', 'organic'),
        'return' => env('APP_URL', '') . '/api/payplus/return',
        'cancel' => env('APP_URL', '') . '/api/payplus/return',
        'notify' => env('APP_URL', '') . '/api/payplus/notify',
        'payment_methods' => [
            1 => 8,
            2 => 2,
            4 => 1,
            8 => 5,
        ],
    ],

    'PayPlusOut' => [
        'apiUrl' => env('PAYPLUS_PAYOUT_URL', 'https://sandbox-api.payplus.net'),
        'appId' => env('PAYPLUS_PAYOUT_APP_ID', ''),
        'appKey' => env('PAYPLUS_PAYOUT_APP_KEY', ''),
        'currency' => env('PAYPLUS_PAYOUT_CURRENCY', 'USD'),
        'cashNotify' => env('APP_URL', '') . '/api/payplus/payout_notify',
    ],

];
