Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MoneyAmount ¶
type MoneyAmount string
type PayMethod ¶
type PayMethod interface {
// contains filtered or unexported methods
}
func InitPayment ¶
func InitPayment(mobile bool, payment PaymentInfo) (PayMethod, error)
type PayWithPasswd ¶
type PayWithPasswd generalPayment
type PayWithoutPasswd ¶
type PayWithoutPasswd generalPayment
type PaymentError ¶
type PaymentError int
const ( RequirePassword PaymentError = iota RequestError InitFailed PaymentFailed Unimplemented )
func (PaymentError) Error ¶
func (t PaymentError) Error() string
type PaymentInfo ¶
type PaymentInfo struct {
TransactionAmount MoneyAmount `json:"tranamt"`
Account string `json:"account"`
Sno string `json:"sno"`
ToAccount string `json:"toaccount"`
ThirdSystem string `json:"thirdsystem"`
ThirdOrderId string `json:"thirdorderid"`
OrderType string `json:"ordertype"`
Signature string `json:"sign"`
OrderDesc string `json:"orderdesc"`
Param1 string `json:"praram1"`
ThirdURL string `json:"thirdurl"`
}
Click to show internal directories.
Click to hide internal directories.