Documentation ¶
Index ¶
Constants ¶
View Source
const ( GatewayDevelopment = "https://openapi.alipaydev.com/gateway.do" GatewayProduction = "https://openapi.alipay.com/gateway.do" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ResponseCommon ¶
type ResponseCommon struct { Code string `json:"code"` Msg string `json:"msg"` SubCode string `json:"sub_code"` SubMsg string `json:"sub_msg"` }
func (ResponseCommon) IsSuccess ¶
func (r ResponseCommon) IsSuccess() bool
type TradeAppPayRequest ¶
type TradeAppPayRequest struct { ReturnURL string `json:"-" url:"return_url,omitempty"` NotifyURL string `json:"-" url:"notify_url,omitempty"` TotalAmount string `url:"-" json:"total_amount,omitempty"` Subject string `url:"-" json:"subject,omitempty"` OutTradeNo string `url:"-" json:"out_trade_no,omitempty"` }
App 支付请求
func (TradeAppPayRequest) Method ¶
func (TradeAppPayRequest) Method() string
type TradePagePayRequest ¶
type TradePagePayRequest struct { ReturnURL string `json:"-" url:"return_url,omitempty"` NotifyURL string `json:"-" url:"notify_url,omitempty"` OutTradeNo string `url:"-" json:"out_trade_no,omitempty"` ProductCode string `url:"-" json:"product_code,omitempty"` TotalAmount string `url:"-" json:"total_amount,omitempty"` Subject string `url:"-" json:"subject,omitempty"` }
电脑网站支付请求
func (TradePagePayRequest) Method ¶
func (TradePagePayRequest) Method() string
type TradePayRequest ¶
type TradePayRequest struct { NotifyURL string `json:"-" url:"notify_url,omitempty"` OutTradeNo string `url:"-" json:"out_trade_no,omitempty"` Scene string `url:"-" json:"scene,omitempty"` AuthCode string `url:"-" json:"auth_code,omitempty"` Subject string `url:"-" json:"subject,omitempty"` TotalAmount string `url:"-" json:"total_amount,omitempty"` }
条码支付请求
func (TradePayRequest) Method ¶
func (TradePayRequest) Method() string
type TradePayResponse ¶
type TradePayResponse struct { ResponseCommon TradeNo string `json:"trade_no"` OutTradeNo string `json:"out_trade_no"` BuyerLogonID string `json:"buyer_logon_id"` TotalAmount string `json:"total_amount"` ReceiptAmount string `json:"receipt_amount"` GMTPayment string `json:"gmt_payment"` BuyerUserID string `json:"buyer_user_id"` }
条码支付响应
type TradePrecreateRequest ¶
type TradePrecreateRequest struct { NotifyURL string `json:"-" url:"notify_url,omitempty"` OutTradeNo string `url:"-" json:"out_trade_no,omitempty"` TotalAmount string `url:"-" json:"total_amount,omitempty"` Subject string `url:"-" json:"subject,omitempty"` }
扫码支付请求
func (TradePrecreateRequest) Method ¶
func (TradePrecreateRequest) Method() string
type TradePrecreateResponse ¶
type TradePrecreateResponse struct { ResponseCommon OutTradeNo string `json:"out_trade_no"` QRCode string `json:"qr_code"` }
扫码支付响应
type TradeQueryRequest ¶
type TradeQueryRequest struct { OutTradeNo string `url:"-" json:"out_trade_no,omitempty"` TradeNo string `url:"-" json:"trade_no,omitempty"` }
交易查询请求
func (TradeQueryRequest) Method ¶
func (TradeQueryRequest) Method() string
type TradeQueryResponse ¶
type TradeQueryResponse struct { ResponseCommon TradeNo string `json:"trade_no"` OutTradeNo string `json:"out_trade_no"` BuyerLogonID string `json:"buyer_logon_id"` TradeStatus string `json:"trade_status"` TotalAmount string `json:"total_amount"` BuyerUserID string `json:"buyer_user_id"` }
交易查询响应
type TradeWapPayRequest ¶
type TradeWapPayRequest struct { ReturnURL string `json:"-" url:"return_url,omitempty"` NotifyURL string `json:"-" url:"notify_url,omitempty"` Subject string `url:"-" json:"subject,omitempty"` OutTradeNo string `url:"-" json:"out_trade_no,omitempty"` TotalAmount string `url:"-" json:"total_amount,omitempty"` QuitURL string `url:"-" json:"quit_url,omitempty"` ProductCode string `url:"-" json:"product_code,omitempty"` }
手机网站支付请求
func (TradeWapPayRequest) Method ¶
func (TradeWapPayRequest) Method() string
Click to show internal directories.
Click to hide internal directories.