From 6d66befb9f2002a8085f0b9112ecdcb608663e6a Mon Sep 17 00:00:00 2001 From: jiaoboxiang Date: Sat, 15 Oct 2022 10:00:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BE=B3=E9=97=A8=E4=B8=AD=E8=A1=8C=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=AF=B9=E6=8E=A5=20=E5=9B=9E=E8=B0=83=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- md/boc.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/md/boc.go b/md/boc.go index a570a0e..25b9e13 100644 --- a/md/boc.go +++ b/md/boc.go @@ -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"` +}