Documentation
¶
Index ¶
Constants ¶
View Source
const ( BaseUrl = "https://api.2pay.co" SecurePayUrl = "/online/v1/secure-pay" RefundPayUrl = "/app-data-search/v1/refund" QueryPayUrl = "/app-data-search/v1/tran-query" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseResponse ¶
type QueryResp ¶
type QueryResp struct {
BaseResponse
QueryRet QueryRet `json:"result"`
}
type SecurePay ¶
type SecurePay struct {
MerchantNo string `json:"merchantNo"`
VerifySign string `json:"verifySign"`
Currency string `json:"currency"`
Amount string `json:"amount"`
Vendor string `json:"vendor"`
Reference string `json:"reference"`
Terminal string `json:"terminal"`
IpnURL string `json:"ipnUrl"`
CallbackURL string `json:"callbackUrl"`
Note string `json:"note"`
Description string `json:"description"`
Timeout string `json:"timeout"`
GoodsInfo []GoodsInfo `json:"goodsInfo"`
CreditType string `json:"creditType"`
CustomerNo string `json:"customerNo"`
}
type SecurePayResponse ¶
type SecurePayResponse struct {
Result string `json:"ret_code"`
RetMsg string `json:"ret_msg"`
Response SecurePayRet `json:"result,omitempty"`
}
type SecurePayRet ¶
Click to show internal directories.
Click to hide internal directories.