Documentation ¶
Index ¶
- type AlipayPaymentProvider
- func (pp *AlipayPaymentProvider) GetInvoice(paymentName string, personName string, personIdCard string, personEmail string, ...) (string, error)
- func (pp *AlipayPaymentProvider) GetResponseError(err error) string
- func (pp *AlipayPaymentProvider) Notify(request *http.Request, body []byte, authorityPublicKey string, orderId string) (string, string, float64, string, string, error)
- func (pp *AlipayPaymentProvider) Pay(providerName string, productName string, payerName string, paymentName string, ...) (string, string, error)
- type DummyPaymentProvider
- func (pp *DummyPaymentProvider) GetInvoice(paymentName string, personName string, personIdCard string, personEmail string, ...) (string, error)
- func (pp *DummyPaymentProvider) GetResponseError(err error) string
- func (pp *DummyPaymentProvider) Notify(request *http.Request, body []byte, authorityPublicKey string, orderId string) (string, string, float64, string, string, error)
- func (pp *DummyPaymentProvider) Pay(providerName string, productName string, payerName string, paymentName string, ...) (string, string, error)
- type GcInvoiceReqInfo
- type GcInvoiceRespInfo
- type GcNotifyRespInfo
- type GcPayReqInfo
- type GcPayRespInfo
- type GcPaymentProvider
- func (pp *GcPaymentProvider) GetInvoice(paymentName string, personName string, personIdCard string, personEmail string, ...) (string, error)
- func (pp *GcPaymentProvider) GetResponseError(err error) string
- func (pp *GcPaymentProvider) Notify(request *http.Request, body []byte, authorityPublicKey string, orderId string) (string, string, float64, string, string, error)
- func (pp *GcPaymentProvider) Pay(providerName string, productName string, payerName string, paymentName string, ...) (string, string, error)
- type GcRequestBody
- type GcResponseBody
- type PaymentProvider
- type PaypalPaymentProvider
- func (pp *PaypalPaymentProvider) GetInvoice(paymentName string, personName string, personIdCard string, personEmail string, ...) (string, error)
- func (pp *PaypalPaymentProvider) GetResponseError(err error) string
- func (pp *PaypalPaymentProvider) Notify(request *http.Request, body []byte, authorityPublicKey string, orderId string) (string, string, float64, string, string, error)
- func (pp *PaypalPaymentProvider) Pay(providerName string, productName string, payerName string, paymentName string, ...) (string, string, error)
- type WechatPayNotifyResponse
- type WechatPaymentProvider
- func (pp *WechatPaymentProvider) GetInvoice(paymentName string, personName string, personIdCard string, personEmail string, ...) (string, error)
- func (pp *WechatPaymentProvider) GetResponseError(err error) string
- func (pp *WechatPaymentProvider) Notify(request *http.Request, body []byte, authorityPublicKey string, orderId string) (string, string, float64, string, string, error)
- func (pp *WechatPaymentProvider) Pay(providerName string, productName string, payerName string, paymentName string, ...) (string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlipayPaymentProvider ¶
func (*AlipayPaymentProvider) GetInvoice ¶ added in v1.44.9
func (*AlipayPaymentProvider) GetResponseError ¶ added in v1.324.0
func (pp *AlipayPaymentProvider) GetResponseError(err error) string
type DummyPaymentProvider ¶ added in v1.327.0
type DummyPaymentProvider struct{}
func NewDummyPaymentProvider ¶ added in v1.327.0
func NewDummyPaymentProvider() (*DummyPaymentProvider, error)
func (*DummyPaymentProvider) GetInvoice ¶ added in v1.327.0
func (*DummyPaymentProvider) GetResponseError ¶ added in v1.327.0
func (pp *DummyPaymentProvider) GetResponseError(err error) string
type GcInvoiceReqInfo ¶ added in v1.44.9
type GcInvoiceRespInfo ¶ added in v1.44.9
type GcNotifyRespInfo ¶ added in v1.29.0
type GcNotifyRespInfo struct { Xmpch string `json:"xmpch"` OrderDate string `json:"orderdate"` OrderNo string `json:"orderno"` Amount float64 `json:"amount"` Jylsh string `json:"jylsh"` TradeNo string `json:"tradeno"` PayMethod string `json:"paymethod"` OrderState string `json:"orderstate"` ReturnType string `json:"return_type"` PayerId string `json:"payerid"` PayerName string `json:"payername"` }
type GcPayReqInfo ¶ added in v1.29.0
type GcPayReqInfo struct { OrderDate string `json:"orderdate"` OrderNo string `json:"orderno"` Amount string `json:"amount"` Xmpch string `json:"xmpch"` Body string `json:"body"` ReturnUrl string `json:"return_url"` NotifyUrl string `json:"notify_url"` PayerId string `json:"payerid"` PayerName string `json:"payername"` Remark1 string `json:"remark1"` Remark2 string `json:"remark2"` }
type GcPayRespInfo ¶ added in v1.29.0
type GcPaymentProvider ¶ added in v1.29.0
func NewGcPaymentProvider ¶ added in v1.29.0
func NewGcPaymentProvider(clientId string, clientSecret string, host string) *GcPaymentProvider
func (*GcPaymentProvider) GetInvoice ¶ added in v1.44.9
func (*GcPaymentProvider) GetResponseError ¶ added in v1.324.0
func (pp *GcPaymentProvider) GetResponseError(err error) string
type GcRequestBody ¶ added in v1.29.0
type GcResponseBody ¶ added in v1.29.0
type PaymentProvider ¶
type PaymentProvider interface { Pay(providerName string, productName string, payerName string, paymentName string, productDisplayName string, price float64, currency string, returnUrl string, notifyUrl string) (string, string, error) Notify(request *http.Request, body []byte, authorityPublicKey string, orderId string) (string, string, float64, string, string, error) GetInvoice(paymentName string, personName string, personIdCard string, personEmail string, personPhone string, invoiceType string, invoiceTitle string, invoiceTaxId string) (string, error) GetResponseError(err error) string }
type PaypalPaymentProvider ¶ added in v1.326.1
func NewPaypalPaymentProvider ¶ added in v1.326.1
func NewPaypalPaymentProvider(clientID string, secret string) (*PaypalPaymentProvider, error)
func (*PaypalPaymentProvider) GetInvoice ¶ added in v1.326.1
func (*PaypalPaymentProvider) GetResponseError ¶ added in v1.326.1
func (pp *PaypalPaymentProvider) GetResponseError(err error) string
type WechatPayNotifyResponse ¶ added in v1.324.0
type WechatPaymentProvider ¶ added in v1.290.0
type WechatPaymentProvider struct { Client *wechat.ClientV3 // contains filtered or unexported fields }
func NewWechatPaymentProvider ¶ added in v1.290.0
func (*WechatPaymentProvider) GetInvoice ¶ added in v1.290.0
func (*WechatPaymentProvider) GetResponseError ¶ added in v1.324.0
func (pp *WechatPaymentProvider) GetResponseError(err error) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.