Documentation ¶
Overview ¶
*
- Copyright 2015 @ z3q.net.
- name : new
- author : jarryliu
- date : 2015-07-27 20:22
- description :
- history :
*
- Copyright 2015 @ z3q.net.
- name : new
- author : jarryliu
- date : 2015-07-27 20:22
- description :
- history :
*
- Copyright 2015 @ z3q.net.
- name : payment
- author : jarryliu
- date : 2015-07-27 21:51
- description :
- history :
*
- Copyright 2015 @ z3q.net.
- name : result.go
- author : jarryliu
- date : 2015-07-27 21:52
- description :
- history :
Index ¶
Constants ¶
View Source
const StatusTradeSuccess = 1
交易成功
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AliPay ¶
func (*AliPay) CreateGateway ¶
type AliPayParameters ¶
type AliPayParameters struct { InputCharset string `json:"_input_charset"` //网站编码 Body string `json:"body"` //订单描述 NotifyUrl string `json:"notify_url"` //异步通知页面 OutTradeNo string `json:"out_trade_no"` //订单唯一id Partner string `json:"partner"` //合作者身份ID PaymentType uint8 `json:"payment_type"` //支付类型 1:商品购买 ReturnUrl string `json:"return_url"` //回调url SellerEmail string `json:"seller_email"` //卖家支付宝邮箱 Service string `json:"service"` //接口名称 Subject string `json:"subject"` //商品名称 TotalFee float32 `json:"total_fee"` //总价 Sign string `json:"sign"` //签名,生成签名时忽略 SignType string `json:"sign_type"` //签名类型,生成签名时忽略 }
type AliPayWap ¶
type AliPayWap struct { Partner string //合作者ID Key string //合作者私钥 Seller string //网站卖家邮箱地址 PrivateKey string MerchantUrl string }
func (*AliPayWap) CreateGateway ¶
Click to show internal directories.
Click to hide internal directories.