forked from go-pay/gopay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constant.go
60 lines (53 loc) · 2.67 KB
/
constant.go
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
package gopay
const (
null string = ""
TimeLayout string = "2006-01-02 15:04:05"
DateLayout string = "2006-01-02"
//URL
wx_base_url = "https://api.mch.weixin.qq.com/"
wx_sanbox_base_url = "https://api.mch.weixin.qq.com/sandboxnew/"
//正式
wxURL_Micropay = wx_base_url + "pay/micropay" //提交付款码支付
wxURL_UnifiedOrder = wx_base_url + "pay/unifiedorder" //统一下单
wxURL_OrderQuery = wx_base_url + "pay/orderquery" //查询订单
wxURL_CloseOrder = wx_base_url + "pay/closeorder" //关闭订单
wxURL_Refund = wx_base_url + "secapi/pay/refund" //申请退款
wxURL_Reverse = wx_base_url + "secapi/pay/reverse" //撤销订单
wxURL_RefundQuery = wx_base_url + "pay/refundquery" //查询退款
wxURL_DownloadBill = wx_base_url + "pay/downloadbill" //下载对账单
wxURL_DownloadFundFlow = wx_base_url + "pay/downloadfundflow" //下载资金账单
wxURL_BatchQueryComment = wx_base_url + "billcommentsp/batchquerycomment" //拉取订单评价数据
//SanBox
wxURL_SanBox_GetSignKey = wx_sanbox_base_url + "pay/getsignkey"
wxURL_SanBox_Micropay = wx_sanbox_base_url + "pay/micropay"
wxURL_SanBox_UnifiedOrder = wx_sanbox_base_url + "pay/unifiedorder"
wxURL_SanBox_OrderQuery = wx_sanbox_base_url + "pay/orderquery"
wxURL_SanBox_CloseOrder = wx_sanbox_base_url + "pay/closeorder"
wxURL_SanBox_Refund = wx_sanbox_base_url + "pay/refund"
wxURL_SanBox_Reverse = wx_sanbox_base_url + "pay/reverse"
wxURL_SanBox_RefundQuery = wx_sanbox_base_url + "pay/refundquery"
wxURL_SanBox_DownloadBill = wx_sanbox_base_url + "pay/downloadbill"
wxURL_SanBox_DownloadFundFlow = wx_sanbox_base_url + "pay/downloadfundflow"
wxURL_SanBox_BatchQueryComment = wx_sanbox_base_url + "billcommentsp/batchquerycomment"
//支付类型
TradeType_Mini = "JSAPI"
TradeType_JsApi = "JSAPI"
TradeType_App = "APP"
TradeType_H5 = "MWEB"
TradeType_Native = "NATIVE"
//签名方式
SignType_MD5 = "MD5"
SignType_HMAC_SHA256 = "HMAC-SHA256"
//Debug数据
ApiKey = "GFDS8j98rewnmgl45wHTt980jg543wmg"
AppID = "wxdaa2ab9ef87b5497"
APPSecret = "65f42f625a788ed52f6e2e159304879c"
MchID = "1368139502"
MchID2 = "1526665601"
OpenID = "o0Df70H2Q0fY8JXh1aFPIRyOBgu8"
//
//===========================================================================================
//
zfb_base_url = "https://openapi.alipay.com/gateway.do"
zfb_sanbox_base_url = "https://openapi.alipaydev.com/gateway.do"
)