Documentation ¶
Index ¶
- Constants
- type MiniProgram
- type Option
- func WithAppid(appid string) Option
- func WithCertSerialNum(certSerialNum string) Option
- func WithMiniSecret(secret string) Option
- func WithPayKey(key string) Option
- func WithPayMchid(mchid string) Option
- func WithPayNotifyUrl(notifyUrl string) Option
- func WithPayPrivateKey(privateKey string) Option
- func WithPayPrivateKeyFile(privateKeyFile string) Option
- type Options
- type Wechat
Constants ¶
View Source
const ( TradeSuccess = "SUCCESS" // 支付成功 TradeRefund = "REFUND" // 转入退款 TradeNotPay = "NOTPAY" // 未支付 TradeClosed = "CLOSED" // 已关闭 TradeRevoked = "REVOKED" // 已撤销 TradeUserPaying = "USERPAYING" // 用户支付中 TradePayError = "PAYERROR" // 支付失败 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiniProgram ¶
type MiniProgram struct {
// contains filtered or unexported fields
}
type Option ¶
type Option func(*Options)
func WithCertSerialNum ¶
func WithMiniSecret ¶
func WithPayKey ¶
func WithPayMchid ¶
func WithPayNotifyUrl ¶
func WithPayPrivateKey ¶
func WithPayPrivateKeyFile ¶
type Options ¶
type Options struct { MiniProgram payments.Options // contains filtered or unexported fields }
type Wechat ¶
type Wechat struct {
// contains filtered or unexported fields
}
func (*Wechat) MiniProgram ¶
func (w *Wechat) MiniProgram() *miniprogram.MiniProgram
Click to show internal directories.
Click to hide internal directories.