Documentation ¶
Index ¶
- type AlipayPaymentProvider
- func (pp *AlipayPaymentProvider) GetInvoice(paymentName string, personName string, personIdCard string, personEmail string, ...) (string, error)
- func (pp *AlipayPaymentProvider) Notify(request *http.Request, body []byte, authorityPublicKey string) (string, string, float64, string, string, error)
- func (pp *AlipayPaymentProvider) Pay(providerName string, productName string, payerName string, paymentName 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) Notify(request *http.Request, body []byte, authorityPublicKey string) (string, string, float64, string, string, error)
- func (pp *GcPaymentProvider) Pay(providerName string, productName string, payerName string, paymentName string, ...) (string, error)
- type GcRequestBody
- type GcResponseBody
- type PaymentProvider
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
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
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, returnUrl string, notifyUrl string) (string, error) Notify(request *http.Request, body []byte, authorityPublicKey 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) }
Click to show internal directories.
Click to hide internal directories.