Ver a proveniência

澳门中行支付对接 回调结构体

tags/v1.5.0
jiaoboxiang há 2 anos
ascendente
cometimento
6d66befb9f
1 ficheiros alterados com 20 adições e 0 eliminações
  1. +20
    -0
      md/boc.go

+ 20
- 0
md/boc.go Ver ficheiro

@@ -45,6 +45,18 @@ type CreateBocPayAppTradeReq struct {
Reserved3 string `json:"reserved3" name:"商戶備用字段" label:"交易成功后原樣返回給商戶"`
}

type CreateBocPayAppTradeResponse struct {
MacaoBOCPublicResponse
LogNo string `json:"logNo"`
Amount string `json:"amount"`
Result string `json:"result"`
PayOrderString struct {
PrepayID string `json:"prepayId"`
PaySign string `json:"paySign"`
} `json:"payOrderString"`
MerchantMarketInformation string `json:"merchantMarketInformation"`
}

type CreateWeChatTradeReq struct {
MacaoBOCPublicParameter
Amount string `json:"amount" name:"订单金額" label:"以分爲單位,如1元表示爲100"`
@@ -95,3 +107,11 @@ type CreateQRTradeReq struct {
GoodsInfo string `json:"goodsInfo" name:"商品信息" label:"包含商品的SKU名和相应的数量,格式为 SKU_名^数量。若存在超过一件商品,用竖线(|)分隔。备注:仅在businessType字段值为4时,本字段为必填。"`
TotalQuantity string `json:"totalQuantity" name:"備註:僅在businessType欄位值為4時,本欄位為必填"`
}

type CreateQRTradeResponse struct {
MacaoBOCPublicResponse
LogNo string `json:"logNo"`
Amount string `json:"amount"`
Result string `json:"result"`
PayURL string `json:"payUrl"`
}

Carregando…
Cancelar
Guardar