@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | //h5支付 |
3 | -require_once __DIR__ ."/../src/WechatPay.php"; |
|
3 | +require_once __DIR__."/../src/WechatPay.php"; |
|
4 | 4 | use zhangv\wechat\WechatPay; |
5 | 5 | |
6 | 6 | $cfg = include './config.php'; |
@@ -5,14 +5,14 @@ |
||
5 | 5 | 'app_id' => 'XXXXXXXXXXXXXXXXXXX', //APPID |
6 | 6 | 'app_secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXX', //App Secret |
7 | 7 | 'api_key' =>'XXXXXXXXXXXXXXXXXXXXXXX', //支付密钥 |
8 | - 'ssl_cert_path' => __DIR__ . '/../cert/apiclient_cert.pem', |
|
9 | - 'ssl_key_path' => __DIR__ .'/../cert/apiclient_key.pem', |
|
8 | + 'ssl_cert_path' => __DIR__.'/../cert/apiclient_cert.pem', |
|
9 | + 'ssl_key_path' => __DIR__.'/../cert/apiclient_key.pem', |
|
10 | 10 | 'sign_type' => 'MD5', |
11 | 11 | 'notify_url' => 'http://XXX.XXX/paidnotify.php', |
12 | 12 | 'refund_notify_url' => 'http://XXX.XXX/refundednotify.php', |
13 | 13 | 'h5_scene_info' => [//required in H5 |
14 | 14 | 'h5_info' => ['type' => 'Wap', 'wap_url' => 'http://wapurl', 'wap_name' => 'wapname'] |
15 | 15 | ], |
16 | - 'rsa_pubkey_path' => __DIR__ .'/../cert/pubkey.pem', |
|
17 | - 'jsapi_ticket' => __DIR__ .'/jsapi_ticket.json' |
|
16 | + 'rsa_pubkey_path' => __DIR__.'/../cert/pubkey.pem', |
|
17 | + 'jsapi_ticket' => __DIR__.'/jsapi_ticket.json' |
|
18 | 18 | ]; |
19 | 19 | \ No newline at end of file |