@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | //APP支付 - 获取预支付交易回话标识 |
4 | 4 | //注意:APP支付使用的是开放平台的APPID |
5 | -require_once __DIR__ . "/autoload.php"; |
|
5 | +require_once __DIR__."/autoload.php"; |
|
6 | 6 | |
7 | 7 | use zhangv\wechat\WechatPay; |
8 | 8 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | //h5支付 |
4 | -require_once __DIR__ . "/autoload.php"; |
|
4 | +require_once __DIR__."/autoload.php"; |
|
5 | 5 | use zhangv\wechat\WechatPay; |
6 | 6 | |
7 | 7 | $cfg = include './config.php'; |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . "/autoload.php"; |
|
3 | +require_once __DIR__."/autoload.php"; |
|
4 | 4 | use zhangv\wechat\WechatPay; |
5 | 5 | |
6 | 6 | $xml = file_get_contents("php://input"); |
7 | 7 | |
8 | 8 | $cfg = require './config.php'; |
9 | 9 | $payment = new WechatPay($cfg); |
10 | -$payment->onPaidNotify($xml,function($notifydata) use ($payment){ |
|
10 | +$payment->onPaidNotify($xml, function($notifydata) use ($payment){ |
|
11 | 11 | //do stuff |
12 | 12 | print_r($notifydata); |
13 | - $payment->responseNotify('SUCCESS','OK'); |
|
13 | + $payment->responseNotify('SUCCESS', 'OK'); |
|
14 | 14 | }); |
15 | 15 |