Documentation ¶
Overview ¶
*
- Copyright 2015 @ 56x.net.
- name : alipay.go
- author : jarryliu
- date : 2015-07-28 17:21
- description :
- history :
Index ¶
- func AlipayHandler_Wap(w http.ResponseWriter, r *http.Request)
- func Alipay_Refund_Handler(w http.ResponseWriter, r *http.Request)
- func Alipay_Refund_NotifyHandler(w http.ResponseWriter, r *http.Request)
- func Alipay_Wap_CallbackHandler(w http.ResponseWriter, r *http.Request)
- func Alipay_Wap_NotifyHandler(w http.ResponseWriter, r *http.Request)
- func Alipay_Web_CallbackHandler(w http.ResponseWriter, r *http.Request)
- func Alipay_Web_NotifyHandler(w http.ResponseWriter, r *http.Request)
- type AlipayLog
- type AlipayLogResult
- type CallbackResult
- type NotifyResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlipayHandler_Wap ¶
func AlipayHandler_Wap(w http.ResponseWriter, r *http.Request)
func Alipay_Refund_Handler ¶
func Alipay_Refund_Handler(w http.ResponseWriter, r *http.Request)
trade_no 交易号 , fee 退还金额, desc 退还说明
func Alipay_Refund_NotifyHandler ¶
func Alipay_Refund_NotifyHandler(w http.ResponseWriter, r *http.Request)
退款异步通知,包含notify_time,notify_type,notify_id,sign_type,sign,batch_no,success_num,result_details result_details包含 交易号^退款金额^处理结果($退费账号^退费账户^Id^退费金额^处理结果)
func Alipay_Wap_CallbackHandler ¶
func Alipay_Wap_CallbackHandler(w http.ResponseWriter, r *http.Request)
WAP支付回调,sign,result,out_trade_no,trade_no,request_token
func Alipay_Wap_NotifyHandler ¶
func Alipay_Wap_NotifyHandler(w http.ResponseWriter, r *http.Request)
手机WAP支付异步通知,签名不排序 包含service,v,sec_id,sign,notify_data notify_data包含:payment_type,subject,trade_no,buyer_email,gmt_create,notify_type,quantity,out_trade_no,notify_time seller_id,trade_status,is_total_fee_adjust,total_fee,gmt_payment,seller_email,gmt_close,price,buyer_id,notify_id,use_coupon
func Alipay_Web_CallbackHandler ¶
func Alipay_Web_CallbackHandler(w http.ResponseWriter, r *http.Request)
支付宝同步回调--------------------- 页面回调,返回信息包括is_success,sign_type,sign,out_trade_no,subject,payment_type,exterface,trade_no,trade_status, notify_id,notify_time,notify_type,seller_email,buyer_email,seller_id,buyer_id,total_fee,body,extra_common_param,agent_user_id
func Alipay_Web_NotifyHandler ¶
func Alipay_Web_NotifyHandler(w http.ResponseWriter, r *http.Request)
-------------支付宝异步通知------------------ WEB支付(退款也会产生通知refund_statuss)异步通知, 返回信息包括notify_time,notify_type,notify_id,sign_type,sign out_trade_no,subject,payment_type,trade_no,trade_status,gmt_create,gmt_payment,gmt_close,refund_status,gmt_refund, seller_email,buyer_email,seller_id,buyer_id,price,total_fee,quantity,body,discount,is_total_fee_adjust,use_coupon,extra_common_param, out_channel_type,out_channel_amount,out_channel_inst,business_scene
Types ¶
type AlipayLog ¶
type AlipayLog struct { Pay_type string `json:"pay_type"` Trade_no string `json:"trade_no"` Subject string `json:"subject"` Buyer_email string `json:"buyer_email"` Gmt_create string `json:"gmt_create"` Out_trade_no string `json:"out_trade_no"` Total_fee string `json:"total_fee"` Gmt_payment string `json:"gmt_payment"` }
type AlipayLogResult ¶
type CallbackResult ¶
type NotifyResult ¶
type NotifyResult struct { Notify xml.Name `xml:"notify"` Payment_type string `xml:"payment_type"` Subject string `xml:"subject"` Trade_no string `xml:"trade_no"` Buyer_email string `xml:"buyer_email"` Gmt_create string `xml:"gmt_create"` Notify_type string `xml:"notify_type"` Quantity string `xml:"quantity"` Out_trade_no string `xml:"out_trade_no"` Notify_time string `xml:"notify_time"` Seller_id string `xml:"seller_id"` Trade_status string `xml:"trade_status"` Is_total_fee_adjust string `xml:"is_total_fee_adjust"` Total_fee string `xml:"total_fee"` Gmt_payment string `xml:"gmt_payment"` Seller_email string `xml:"seller_email"` Price string `xml:"price"` Buyer_id string `xml:"buyer_id"` Notify_id string `xml:"notify_id"` Use_coupon string `xml:"use_coupon"` }