Documentation ¶
Index ¶
- func CreatePayNowPay(out_order_no, amount string) (pay_url, order_sn string, err error)
- func InitPaynow(access_key, wallet_sn, key, notify_url, redirect_url, output_notify_url string)
- func MD5(str string) string
- func PayNowPayCallback(body []byte) (out_order_sn, amount string, err error)
- func PaynowCheck(data any, key, sign string) bool
- func PaynowPayOutput(out_order_sn, bank_name, bank_account, name, amount string) (order_sn string, err error)
- func PaynowPayOutputCallback(body []byte) (order_sn, amount string, err error)
- func PaynowSign(data any, key string) string
- func PaynowSignByMap(data map[string]string, key string) string
- type CreatePayNowPayRequest
- type PayNowCreatePayResponse
- type PayNowPayCallbackRequest
- type PaynowPayOutputCallbackResponse
- type PaynowPayOutputResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePayNowPay ¶
func InitPaynow ¶
func InitPaynow(access_key, wallet_sn, key, notify_url, redirect_url, output_notify_url string)
func PayNowPayCallback ¶
func PaynowCheck ¶
func PaynowPayOutput ¶
func PaynowPayOutputCallback ¶
Types ¶
type CreatePayNowPayRequest ¶
type CreatePayNowPayRequest struct { AccessKey string `json:"access_key"` WalletSn string `json:"wallet_sn"` Method string `json:"method"` OutOrderSn string `json:"out_order_sn"` Amount string `json:"amount"` NotifyUrl string `json:"notify_url"` RedirectUrl string `json:"redirect_url"` Sign string `json:"sign"` }
CreatePay
type PayNowCreatePayResponse ¶
type PayNowPayCallbackRequest ¶
type PayNowPayCallbackRequest struct { Code int `json:"code"` Msg string `json:"msg"` Data struct { Type string `json:"type"` OrderSn string `json:"order_sn"` OutOrderSn string `json:"out_order_sn"` Amount string `json:"amount"` ActAmount string `json:"act_amount"` PayTime int `json:"pay_time"` Errmsg string `json:"errmsg"` } `json:"data"` Sign string `json:"sign"` }
type PaynowPayOutputCallbackResponse ¶
type PaynowPayOutputCallbackResponse struct { Code int `json:"code"` Msg string `json:"msg"` Data struct { Type string `json:"type"` OrderSn string `json:"order_sn"` OutOrderSn string `json:"out_order_sn"` Amount string `json:"amount"` Errmsg string `json:"errmsg"` PayTime int `json:"pay_time"` } `json:"data"` Sign string `json:"sign"` }
Click to show internal directories.
Click to hide internal directories.