| xqd
@@ -13,8 +13,8 @@ class PayService
|
|
|
public static function ali_config(){
|
|
|
$config = [
|
|
|
'app_id' => '2016082000295641',
|
|
|
- 'notify_url' => 'https://'.$_SERVER['HTTP_HOST'].'/api/ali_notify.php',
|
|
|
- 'return_url' => 'https://'.$_SERVER['HTTP_HOST'].'/api/ali_return.php',
|
|
|
+ 'notify_url' => 'https://'.$_SERVER['HTTP_HOST'].'/api/ali_notify',
|
|
|
+ 'return_url' => 'https://'.$_SERVER['HTTP_HOST'].'/api/ali_return',
|
|
|
'ali_public_key' => '',//支付宝公钥
|
|
|
'private_key' => '',//应用私钥
|
|
|
'log' => [ // optional
|
| xqd
@@ -40,7 +40,7 @@ class PayService
|
|
|
//'miniapp_id' => 'wxb3fxxxxxxxxxxx', // 小程序 APPID
|
|
|
'mch_id' => '1398823402',
|
|
|
'key' => 'c1891122765718911227657189112276',
|
|
|
- 'notify_url' => 'https://'.$_SERVER['HTTP_HOST'].'/api/wx_notify.php',
|
|
|
+ 'notify_url' => 'https://'.$_SERVER['HTTP_HOST'].'/api/wx_notify',
|
|
|
//'cert_client' => './cert/apiclient_cert.pem', // optional, 退款,红包等情况时需要用到
|
|
|
//'cert_key' => './cert/apiclient_key.pem',// optional, 退款,红包等情况时需要用到
|
|
|
'log' => [ // optional
|