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"` BranchNo string `json:"branch_no" yaml:"branch_no"` MchId string `json:"mch_id" yaml:"mch_id"` MerKey string `json:"mer_key" yaml:"mer_key"` CmbPubKey string `json:"cmb_pub_key" yaml:"cmb_pub_key"` OpPwd string `json:"op_pwd" yaml:"op_pwd"` SignType string `json:"sign_type" yaml:"sign_type"` LimitPay string `json:"limit_pay" yaml:"limit_pay"` NotifyUrl string `json:"notify_url" yaml:"notify_url"` ReturnUrl string `json:"return_url" yaml:"return_url"` SignNotifyUrl string `json:"sign_notify_url" yaml:"sign_notify_url"` SignReturnUrl string `json:"sign_return_url" yaml:"sign_return_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
Click to show internal directories.
Click to hide internal directories.