Documentation ¶
Index ¶
- func GetWeChatPayClient() *core.Client
- type AdapterPaymentService
- type WeChatPay
- func (m *WeChatPay) Close()
- func (m *WeChatPay) GetCertificates() (*x509.Certificate, error)
- func (m *WeChatPay) GetClient() *core.Client
- func (m *WeChatPay) GetPrivateKey() (*rsa.PrivateKey, error)
- func (m *WeChatPay) PrePay(orderId string, amount int64, payerOpenId string, attach string, ...) (string, error)
- func (m *WeChatPay) Refund(orderId string, transactionId string, refundId string, reason string, ...) (string, error)
- func (m *WeChatPay) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWeChatPayClient ¶ added in v1.4.10
GetWeChatPayClient 获取BlockChain客户端
Types ¶
type AdapterPaymentService ¶
type AdapterPaymentService interface { String() string GetCertificates() (*x509.Certificate, error) PrePay(orderId string, amount int64, payerOpenId string, attach string, description string, expireAt time.Time, callbackAddr string) (string, error) Refund(orderId string, transactionId string, refundId string, reason string, amount int64, total int64, currency string, callbackAddr string) (string, error) }
type WeChatPay ¶
type WeChatPay struct {
// contains filtered or unexported fields
}
func NewWeChatPay ¶
func (*WeChatPay) GetCertificates ¶ added in v1.4.10
func (m *WeChatPay) GetCertificates() (*x509.Certificate, error)
func (*WeChatPay) GetPrivateKey ¶ added in v1.4.11
func (m *WeChatPay) GetPrivateKey() (*rsa.PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.