Documentation
¶
Index ¶
- Variables
- func BindQuery(query string, i any)
- func HttpPost(headers map[string]string, url string, req_body interface{}) (body []byte, err error)
- func MD5(str string) string
- func RsaEncrypt(message []byte) (string, error)
- func Serialized(data any) string
- func SignWithMd5(data any) string
- type Hipay3
- type PayoutBodyCallbackInternal
- type PayoutCallbackBody
- type PayoutInternalReq
- type PayoutReq
- type PayoutResp
Constants ¶
This section is empty.
Variables ¶
View Source
var MD5_KEY = `5B8F9493253D97A9EA413F20A46DC1B4`
View Source
var MER_NO = "861100000033178"
View Source
var MER_PRIVATE_KEY = `` /* 915-byte string literal not displayed */
View Source
var MER_PUBLIC_KEY = `` /* 216-byte string literal not displayed */
View Source
var PAUOUT_SUCCESS_URL = "https://d757-221-237-121-2.ngrok-free.app"
View Source
var PAYOUT_NOTIFY_URL = "https://d757-221-237-121-2.ngrok-free.app"
View Source
var PLATFORM_PUBLIC_KEY = ``
Functions ¶
func RsaEncrypt ¶
func Serialized ¶
func SignWithMd5 ¶
Types ¶
type PayoutBodyCallbackInternal ¶
type PayoutBodyCallbackInternal struct { BusiCode string `json:"busi_code"` ErrCode string `json:"err_code"` ErrMsg string `json:"err_msg"` MerNo string `json:"mer_no"` MerOrderNo string `json:"mer_order_no"` OrderAmount string `json:"order_amount"` OrderNo string `json:"order_no"` OrderTime string `json:"order_time"` PayAmount string `json:"pay_amount"` PayTime string `json:"pay_time"` Status string `json:"status"` }
type PayoutCallbackBody ¶
type PayoutCallbackBody struct { PayoutBodyCallbackInternal Sign string `json:"sign"` }
func PayoutNotify ¶
func PayoutNotify(body []byte) (result PayoutCallbackBody, err error)
type PayoutInternalReq ¶
type PayoutInternalReq struct { MerNo string `json:"mer_no"` Phone string `json:"phone"` Pname string `json:"pname"` OrderAmount string `json:"order_amount"` NotifyUrl string `json:"notifyUrl"` PageUrl string `json:"pageUrl"` CcyNo string `json:"ccy_no"` Pemail string `json:"pemail"` BusiCode string `json:"busi_code"` MerOrderNo string `json:"mer_order_no"` }
type PayoutReq ¶
type PayoutReq struct { Sign string `json:"sign"` PayoutInternalReq }
type PayoutResp ¶
type PayoutResp struct { OrderNo string `json:"order_no"` MerNo string `json:"mer_no"` Pname string `json:"pname"` Sign string `json:"sign"` ErrCode string `json:"err_code"` OrderTime string `json:"order_time"` Pemail string `json:"pemail"` Phone string `json:"phone"` OrderData string `json:"order_data"` ErrMsg string `json:"err_msg"` OrderAmount string `json:"order_amount"` NotifyUrl string `json:"notifyUrl"` PageUrl string `json:"pageUrl"` CcyNo string `json:"ccy_no"` BusiCode string `json:"busi_code"` MerOrderNo string `json:"mer_order_no"` Status string `json:"status"` }
func Payout ¶
func Payout(ordersn, amount string) (result PayoutResp, err error)
Click to show internal directories.
Click to hide internal directories.