forked from lxp521125/fool-pay
/
alipay.go
executable file
·56 lines (54 loc) · 2.21 KB
/
alipay.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
package ali
// AliWebPayResult 支付宝支付结果回调
type AliWebPayResult struct {
NotifyTime string `json:"notify_time"`
NotifyType string `json:"notify_type"`
NotifyID string `json:"notify_id"`
SignType string `json:"sign_type"`
Sign string `json:"sign"`
OutTradeNum string `json:"out_trade_no"`
Subject string `json:"subject"`
PayMentType string `json:"payment_type"`
TradeNum string `json:"trade_no"`
TradeStatus string `json:"trade_status"`
GmtPayMent string `json:"gmt_payment"`
GmtClose string `json:"gmt_close"`
SellerEmail string `json:"seller_email"`
BuyerEmail string `json:"buyer_email"`
SellerID string `json:"seller_id"`
BuyerID string `json:"buyer_id"`
Price string `json:"price"`
TotalFee string `json:"total_fee"`
Quantity string `json:"quantity"`
Body string `json:"body"`
Discount string `json:"discount"`
IsTotalFeeAdjust string `json:"is_total_fee_adjust"`
UseCoupon string `json:"use_coupon"`
RefundStatus string `json:"refund_status"`
GmtRefund string `json:"gmt_refund"`
GmtCreate string `json:"gmt_create"`
}
type AliQueryResult struct {
TradeNo string `json:"trade_no"`
OutTradeNo string `json:"out_trade_no"`
OpenID string `json:"open_id"`
BuyerLogonID string `json:"buyer_logon_id"`
TradeStatus string `json:"trade_status"`
TotalAmount string `json:"total_amount"`
ReceiptAmount string `json:"receipt_amount"`
BuyerPayAmount string `json:"BuyerPayAmount"`
PointAmount string `json:"point_amount"`
InvoiceAmount string `json:"invoice_amount"`
SendPayDate string `json:"send_pay_date"`
AlipayStoreID string `json:"alipay_store_id"`
StoreID string `json:"store_id"`
TerminalID string `json:"terminal_id"`
FundBillList []struct {
FundChannel string `json:"fund_channel"`
Amount string `json:"amount"`
} `json:"fund_bill_list"`
StoreName string `json:"store_name"`
BuyerUserID string `json:"buyer_user_id"`
DiscountGoodsDetail string `json:"discount_goods_detail"`
IndustrySepcDetail string `json:"industry_sepc_detail"`
}