Documentation ¶
Index ¶
- func MapUserConfig(userConfig *UserConfig) (*object.HashMap, error)
- type Http
- type Log
- type OAuth
- type Payment
- func (app *Payment) CodeUrlScheme(codeUrl string) string
- func (app *Payment) GetAccessToken() *kernel.AccessToken
- func (app *Payment) GetComponent(name string) interface{}
- func (app *Payment) GetConfig() *kernel.Config
- func (app *Payment) GetContainer() *kernel.ServiceContainer
- func (app *Payment) GetKey(endpoint string) (string, error)
- func (app *Payment) HandlePaidNotify(request *http.Request, ...) (*http.Response, error)
- func (app *Payment) HandleRefundedNotify(request *http.Request, ...) (*http.Response, error)
- func (app *Payment) HandleScannedNotify(request *http.Request, ...) (*http.Response, error)
- func (app *Payment) InSandbox() bool
- func (app *Payment) Scheme(productID string) string
- func (app *Payment) SetSubMerchant(mchID string, appID string) kernel2.ApplicationPaymentInterface
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapUserConfig ¶
func MapUserConfig(userConfig *UserConfig) (*object.HashMap, error)
Types ¶
type Payment ¶
type Payment struct { kernel2.ApplicationPaymentInterface *kernel.ServiceContainer Config *kernel.Config Order *order.Client Partner *partner.Client JSSDK *jssdk.Client Sandbox *sandbox.Client Refund *refund.Client Bill *bill.Client RedPack *redpack.Client Transfer *transfer.Client TransferBatch *transfer.BatchClient Reverse *reverse.Client ProfitSharing *profitSharing.Client Apply4Sub *apply4Sub.Client Merchant *merchant.Client PayScore *payScore.Client Tax *tax.Client Base *base.Client Security *security.Client Logger *logger.Logger }
func NewPayment ¶
func NewPayment(config *UserConfig) (*Payment, error)
func (*Payment) CodeUrlScheme ¶
func (*Payment) GetAccessToken ¶
func (app *Payment) GetAccessToken() *kernel.AccessToken
func (*Payment) GetComponent ¶
func (*Payment) GetContainer ¶
func (app *Payment) GetContainer() *kernel.ServiceContainer
func (*Payment) HandlePaidNotify ¶
func (*Payment) HandleRefundedNotify ¶
func (*Payment) HandleScannedNotify ¶
func (*Payment) SetSubMerchant ¶
func (app *Payment) SetSubMerchant(mchID string, appID string) kernel2.ApplicationPaymentInterface
type UserConfig ¶
type UserConfig struct { AppID string MchID string MchApiV3Key string Key string CertPath string KeyPath string SerialNo string CertificateKeyPath string WechatPaySerial string RSAPublicKeyPath string SpAppID string SpMchID string SubAppID string SubMchID string Http Http ResponseType string Log Log OAuth OAuth Cache kernel.CacheInterface HttpDebug bool Debug bool NotifyURL string Sandbox bool }
Click to show internal directories.
Click to hide internal directories.