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 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 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 ¶
Click to show internal directories.
Click to hide internal directories.