作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

支付宝配置

<?php
return array(
array(
'name' => 'wechat',
'title' => '微信',
'type' => 'array',
'content' =>
array(),
'value' => [
'appid' => '', // APP APPID
'app_id' => '', // 公众号 APPID
'app_secret' => '', // 公众号 APPSECRET
'miniapp_id' => '', // 小程序 APPID
'mch_id' => '', //支付商户ID
'key' => '',
'notify_url' => '/addons/epay/api/notifyx/type/wechat', //请勿修改此配置
'cert_client' => '/epay/certs/apiclient_cert.pem', // 可选, 退款,红包等情况时需要用到
'cert_key' => '/epay/certs/apiclient_key.pem',// 可选, 退款,红包等情况时需要用到
'log' => 1,
// 'mode' => 'dev', // optional,设置此参数,将进入沙箱模式
],
'rule' => '',
'msg' => '',
'tip' => '微信参数配置',
'ok' => '',
'extend' => '',
return array (
0 =>
array (
'name' => 'wechat',
'title' => '微信',
'type' => 'array',
'content' =>
array (
),
array(
'name' => 'alipay',
'title' => '支付宝',
'type' => 'array',
'content' =>
array(),
'value' => [
'app_id' => '',
'notify_url' => '/addons/epay/api/notifyx/type/alipay', //请勿修改此配置
'return_url' => '/addons/epay/api/returnx/type/alipay', //请勿修改此配置
'ali_public_key' => '',
'private_key' => '',
'log' => 1,
//'mode' => 'dev', // optional,设置此参数,将进入沙箱模式
],
'rule' => 'required',
'msg' => '',
'tip' => '支付宝参数配置',
'ok' => '',
'extend' => '',
'value' =>
array (
'appid' => '',
'app_id' => '',
'app_secret' => '',
'miniapp_id' => '',
'mch_id' => '',
'key' => '',
'notify_url' => '/addons/epay/api/notifyx/type/wechat',
'cert_client' => '/epay/certs/apiclient_cert.pem',
'cert_key' => '/epay/certs/apiclient_key.pem',
'log' => 1,
),
array(
'name' => '__tips__',
'title' => '温馨提示',
'type' => 'array',
'content' =>
array(),
'value' => '请注意微信支付证书路径位于/addons/epay/certs目录下,请替换成你自己的证书<br>appid:APP的appid<br>app_id:公众号的appid<br>app_secret:公众号的secret<br>miniapp_id:小程序ID<br>mch_id:微信商户ID<br>key:微信商户支付的密钥',
'rule' => '',
'msg' => '',
'tip' => '微信参数配置',
'ok' => '',
'extend' => '',
)
);
\ No newline at end of file
'rule' => '',
'msg' => '',
'tip' => '微信参数配置',
'ok' => '',
'extend' => '',
),
1 =>
array (
'name' => 'alipay',
'title' => '支付宝',
'type' => 'array',
'content' =>
array (
),
'value' =>
array (
'app_id' => '2021002107648599',
'notify_url' => '/addons/epay/api/notifyx/type/alipay',
'return_url' => '/addons/epay/api/returnx/type/alipay',
'ali_public_key' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApFV6kd8p2P1Xaf1qetl00n548W9+vPt65UpRI9j7VDmmzOK2iAJNtNTH9SfjtTJwNXM6+QOpxops+o4scMK6ncNkgsswmDrlPj3pqq0p1NxaxastOaPf+2TJgSISlfPs9uDpz8gSXmnT1s9cN9S6neOuy9vn42A06dKxvVk25Fo7aWLAB772qhOhfLqJ5jrgwnoftlNQVtWRAfvxXsndofTqk8+Po+uKt8Shhnv0bQCq9vIu7EzV0CEd1K0XxI/jxFPVvjroRk7zzM8QeTxLcU/RurCdz7g6tU4AZ0Sa7o6qKd5BkRl9D6kNksr5AkE4Xi9DIPvl3dGSkv3frgjFzQIDAQAB',
'private_key' => 'MIIEpAIBAAKCAQEApFV6kd8p2P1Xaf1qetl00n548W9+vPt65UpRI9j7VDmmzOK2iAJNtNTH9SfjtTJwNXM6+QOpxops+o4scMK6ncNkgsswmDrlPj3pqq0p1NxaxastOaPf+2TJgSISlfPs9uDpz8gSXmnT1s9cN9S6neOuy9vn42A06dKxvVk25Fo7aWLAB772qhOhfLqJ5jrgwnoftlNQVtWRAfvxXsndofTqk8+Po+uKt8Shhnv0bQCq9vIu7EzV0CEd1K0XxI/jxFPVvjroRk7zzM8QeTxLcU/RurCdz7g6tU4AZ0Sa7o6qKd5BkRl9D6kNksr5AkE4Xi9DIPvl3dGSkv3frgjFzQIDAQABAoIBAFeWP5fT68f9b0PMj54enMc8JVX5aQFsv9nJvGl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FAT+b9MxwcQG/t1PGoKR0AmZR27CbvGzvuGNUbewZYG8OGvKXekV4S6FrBXFrxzQkNRNkc0MeTqMHx8WMslMxlwhVa0Jg70KqsV0/FDGYA18oQQJmfA==',
'log' => '1',
),
'rule' => 'required',
'msg' => '',
'tip' => '支付宝参数配置',
'ok' => '',
'extend' => '',
),
2 =>
array (
'name' => '__tips__',
'title' => '温馨提示',
'type' => 'array',
'content' =>
array (
),
'value' => '请注意微信支付证书路径位于/addons/epay/certs目录下,请替换成你自己的证书<br>appid:APP的appid<br>app_id:公众号的appid<br>app_secret:公众号的secret<br>miniapp_id:小程序ID<br>mch_id:微信商户ID<br>key:微信商户支付的密钥',
'rule' => '',
'msg' => '',
'tip' => '微信参数配置',
'ok' => '',
'extend' => '',
),
);
... ...