Completed
Pull Request — master (#6)
by
unknown
02:37
created
demo/pay-h5.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
demo/config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@
 block discarded – undo
5 5
 	'app_id' => 'XXXXXXXXXXXXXXXXXXX', //APPID
6 6
 	'app_secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXX', //App Secret
7 7
 	'api_key' =>'XXXXXXXXXXXXXXXXXXXXXXX', //支付密钥
8
-	'ssl_cert_path' => __DIR__ . '/keys/apiclient_cert.pem',
9
-	'ssl_key_path' => __DIR__ .'/keys/apiclient_key.pem',
8
+	'ssl_cert_path' => __DIR__.'/keys/apiclient_cert.pem',
9
+	'ssl_key_path' => __DIR__.'/keys/apiclient_key.pem',
10 10
 	'sign_type' => 'MD5',
11 11
 	'notify_url' => 'http://YOURSITE/paidnotify.php',
12 12
 	'refund_notify_url' => 'http://YOURSITE/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__ .'/keys/pubkey.pem',
17
-	'jsapi_ticket' => __DIR__ .'/jsapi_ticket.json'
16
+	'rsa_pubkey_path' => __DIR__.'/keys/pubkey.pem',
17
+	'jsapi_ticket' => __DIR__.'/jsapi_ticket.json'
18 18
 ];
19 19
\ No newline at end of file
Please login to merge, or discard this patch.