This commit is contained in:
邹宗楠
2025-08-01 11:25:09 +08:00
parent 25113cd954
commit d3307ace8d
4 changed files with 61 additions and 1 deletions

View File

@@ -15,6 +15,22 @@ func TestPayStatusQuery(t *testing.T) {
})
}
func TestClosePay(t *testing.T) {
api.ClosePay(&ClosePayMiniOrder{
MerchantNo: "822651059990E2S",
TermNo: "M3595962",
OriginOutTradeNo: "88491738418134",
OriginTradeNo: "",
LocationInfo: struct {
RequestIp string `json:"request_ip"`
BaseStation string `json:"base_station"`
Location string `json:"location"`
}{
RequestIp: "127.0.0.1",
},
})
}
func TestCardBin(t *testing.T) {
result, err := api.QueryCarBin(GetOrderNumber(8), OrgCode, "4275711234554321")
globals.SugarLogger.Debugf("result := %s", utils.Format4Output(result, false))