通联收银宝退款接口修改
This commit is contained in:
@@ -43,7 +43,6 @@ type CallBackResult struct {
|
||||
|
||||
func (a *API) GetCallbackMsg(request *http.Request) (call *CallBackResult, err error) {
|
||||
data, err := ioutil.ReadAll(request.Body)
|
||||
call = &CallBackResult{}
|
||||
json.Unmarshal(data, &call)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -64,7 +64,6 @@ type PayInfo struct {
|
||||
Package string `json:"package"`
|
||||
SignType string `json:"signType"`
|
||||
PaySign string `json:"paySign"`
|
||||
PrepayID string `json:"prepayID"`
|
||||
}
|
||||
|
||||
type PayRefundParam struct {
|
||||
@@ -79,19 +78,19 @@ type PayRefundParam struct {
|
||||
}
|
||||
|
||||
type PayRefundResult struct {
|
||||
RetCode string `json:"retCode"`
|
||||
RetCode string `json:"retcode"`
|
||||
RetMsg string `json:"retMsg"`
|
||||
CusID string `json:"cusID"`
|
||||
AppID string `json:"appID"`
|
||||
TrxID string `json:"trxID"`
|
||||
CusID string `json:"cusid"`
|
||||
AppID string `json:"appid"`
|
||||
TrxID string `json:"trxid"`
|
||||
Reqsn string `json:"reqsn"`
|
||||
TrxStatus string `json:"trxStatus"`
|
||||
FinTime string `json:"finTime"`
|
||||
TrxStatus string `json:"trxstatus"`
|
||||
FinTime string `json:"fintime"`
|
||||
ErrMsg string `json:"errMsg"`
|
||||
RandomStr string `json:"randomStr"`
|
||||
RandomStr string `json:"randomstr"`
|
||||
Sign string `json:"sign"`
|
||||
Fee int `json:"fee"`
|
||||
TrxCode string `json:"trxCode"`
|
||||
TrxCode string `json:"trxcode"`
|
||||
}
|
||||
|
||||
func New(appID, appKey, cusID, subAppid string, config ...*platformapi.APIConfig) *API {
|
||||
|
||||
Reference in New Issue
Block a user