Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
func (*Base) GetFullGatewayUrl ¶
type BaseResponse ¶
type BaseResponse struct {
Resp string
}
func NewBaseResponse ¶
func NewBaseResponse(resp string) *BaseResponse
func (*BaseResponse) ToJson ¶
func (w *BaseResponse) ToJson() (string, error)
func (*BaseResponse) ToMap ¶
func (w *BaseResponse) ToMap() (map[string]interface{}, error)
func (*BaseResponse) ToXml ¶
func (w *BaseResponse) ToXml() (string, error)
type Config ¶
type Config struct { UseSandbox bool `json:"use_sandbox" yaml:"use_sandbox"` ReturnRaw bool `json:"return_raw" yaml:"return_raw"` AppId string `json:"app_id" yaml:"app_id"` AppKey string `json:"app_key" yaml:"app_key"` MchId string `json:"mch_id" yaml:"mch_id"` Md5Key string `json:"md5_key" yaml:"md5_key"` FeeType string `json:"fee_type" yaml:"fee_type"` NotifyUrl string `json:"notify_url" yaml:"notify_url"` RefundNotifyUrl string `json:"refund_notify_url" yaml:"refund_notify_url"` RedirectUrl string `json:"redirect_url" yaml:"redirect_url"` }
func NewConfigWithJson ¶
func NewConfigWithYaml ¶
func (Config) CheckConfig ¶
func (Config) ParseConfig ¶
func (c Config) ParseConfig() interface{}
type Gateway ¶
type Gateway struct {
Base *Base
}
func (*Gateway) Request ¶
func (a *Gateway) Request(api payloads.UnionPaymentApi, params map[string]string) *payloads.UnionPaymentResult
type QueryRefund ¶
type QueryRefund struct {
Base *Base
}
func (QueryRefund) BuildParams ¶
func (q QueryRefund) BuildParams(params map[string]string) map[string]string
func (QueryRefund) Request ¶
func (q QueryRefund) Request(params map[string]string) *payloads.UnionPaymentResult
type QueryTrade ¶
type QueryTrade struct {
Base *Base
}
func (QueryTrade) BuildParams ¶
func (q QueryTrade) BuildParams(params map[string]string) map[string]string
func (QueryTrade) Request ¶
func (q QueryTrade) Request(params map[string]string) *payloads.UnionPaymentResult
Click to show internal directories.
Click to hide internal directories.