浏览代码

澳門國際銀行支付

tags/v1.5.3
jiaoboxiang 2 年前
父节点
当前提交
86290ed518
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. +7
    -1
      lib/luso_bank/macao_luso.go
  2. +1
    -1
      test/luso_pay_test.go

+ 7
- 1
lib/luso_bank/macao_luso.go 查看文件

@@ -57,11 +57,17 @@ func (s *signParam) SetSign(privateKeyStr string) error {
return nil
}

func (payParam *PayParam) Send(prd bool) (string, error) {
func (payParam *PayParam) Send(prd bool, method string) (string, error) {
url := "https://qrpaytest.lusobank.com.mo:443"
if prd {
url = "https://qrpaytest.lusobank.com.mo:8443"
}
switch method {
case "create":
url = url + "/upcp-iap-pps-lqrp/libQrPay/json/create"
case "pay":
url = url + "/upcp-iap-pps-lqrp/libQrPay/json/pay"
}
headers := map[string]string{
"Content-Type": "application/json",
}


+ 1
- 1
test/luso_pay_test.go 查看文件

@@ -17,7 +17,7 @@ func TestLusoPay(t *testing.T) {
"mdseDesc ": "澳门世寶-自營購物",
"transAmount ": "100",
"transCur ": "MOP",
"subMchtNm ": "世寶商城",
"subMchtNm ": luso.MchtStoreNm,
"notifyUrl ": "http://inapi.izhyin.cn:80/pay/boc/callback",
"extMsg ": zhios_pay_utils.SerializeStr(map[string]string{
"mid": "123456",


正在加载...
取消
保存