payment

package
v0.0.0-...-00d340d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindCardBody

type BindCardBody struct {
	OrderID     string `json:"order_id,omitempty"`
	ChannelType string `json:"channel_type,omitempty"`
	TxnTime     string `json:"txn_time,omitempty"`
	AccNo       string `json:"acc_no,omitempty"`
	PhoneNo     string `json:"phone_no,omitempty"`
	CustomerNm  string `json:"customer_nm,omitempty"`
	CertifTp    string `json:"certif_tp,omitempty"`
	CertifID    string `json:"certif_id,omitempty"`
	SMSCode     string `json:"sms_code,omitempty"`
}

BindCardBody ...

type IPaymentClient

type IPaymentClient interface {
	// racharge
	Recharge(http.Header, *RechargeBody) (interface{}, error)
	// bindcard
	BindCard(http.Header, *BindCardBody) (interface{}, error)
	// send bindcard sms
	SendBindSMS(http.Header, *SendSMSBody) (interface{}, error)
}

IPaymentClient ...

type RechargeBody

type RechargeBody struct {
	OrderID     string `json:"order_id"`
	DID         string `json:"did"`
	ChannelType string `json:"channel_type"`
	TxnAmt      int64  `json:"txn_amt"`
	AccNo       string `json:"acc_no"`
	UserMac     string `json:"user_mac"`
}

RechargeBody ...

type SendSMSBody

type SendSMSBody struct {
	OrderID     string `json:"order_id"`
	ChannelType string `json:"channel_type"`
	Phone       string `json:"phone"`
	TxnAmt      int64  `json:"txn_amt"`
	AccNo       string `json:"acc_no"`
	UserMac     string `json:"user_mac"`
}

SendSMSBody ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL