-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.php
executable file
·89 lines (72 loc) · 3.66 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/*
* 此文件作为配置文件,请先配置后使用
*/
//===================================================================================
/*
* $config_mchid是你的微信支付接口的商户号。
*/
$config_mchid = "xxxx"; //商户号 Your business Number
/*
* $config_key是你的微信支付接口的密钥。
*/
$config_key = "xxxxxxxx"; //密钥 Your private Key
//====================================================================================
/*
* $quit_payment_url 是一个当用户支付到一半,然后不想支付了,于是就决定退出的页面链接地址。
* 也就是说,当用户不想支付,然后退出支付之后,就会链接到这里
* 这个变量可以传递参数,例如:
* $quit_payment_url = "https://www.xxx.com?xxx=xxx";
* 或者直接:
* $quit_payment_url = "https://www.xxx.com";
*/
$quit_payment_url = "example/quit.php";
/*
* $after_payment_url 是一个当用户支付完毕,然后页面跳转的地址。
* 这个变量可以携带参数
*/
$after_payment_url = "example/finished.php";
//====================================================================================
/*
* $use_validation_code是决定你是否在别人支付前启用验证码,(我还没做,这里先别管)
* 如果你想要启用,那么请改成:
* $use_validation = true;
* 如果你不想,那就这样:
* $use_validation = false;
*/
$use_validation = false;
//====================================================================================
/*
* $use_notification_of_pay 是决定你是否使用异步账单通知,不懂?往下看
*
* 如果你用异步账单通知的话,用户在扫完二维码付完款之后,会自动跳转到你的页面。
* 如果你没用异步账单通知的话,用户在扫完二维码付完款之后,用户还需要点击一下按钮,才能跳转到你的页面。
*
* (重点!)如果要用异步账单通知的话,你需要给这整个文件夹添加PHP的读写权限,不懂?建议你别开异步账单通知了。
*
* 如果你想用的话,请改成:
* $use_notification_of_pay = true;
* 如果不想,那就这样:
* $use_notification_of_pay = false;
*/
$use_asynchronous_payment_check = false;
/*
*
* 如果你开了异步账单通知,那你就得处理下面这个:
* 如果你的页面协议是http的话,请把下面这个变量写成:
* $connection_protocol = "http";
* 如果你用的是https的话(SSL/TLS加密),那么,请把下面这个变量改成:
* $connection_protocol = "https";
* 懂?
* */
$connection_protocol = "http";
//===========================================================================
/*
* 以下设置,如果你对这个不了解的话,就不要动它。
*/
$create_payment_url = "https://payjs.cn/api/native"; //The API's url for creating payment. 用于创建订单的URL
$check_payment_url = "https://payjs.cn/api/check"; //The API's url for checking the payment. 用于查询订单的URL
//报错内容
$sign_verification_error_msg = "Sign Verification Error, please make sure that your key is correct. <br> 签字错误,建议您检查您的密钥是否正确";
$apt_connect_error_msg = "API Call Error, please ask the the administrater of the API provider. <br> API调用错误,请联系API提供商";
$parameter_error_msg = "Parameter Error <br> 参数传递错误";