Browse Source

支付修改

kevin_zhangl 2 years ago
parent
commit
d9e95caacb
3 changed files with 16 additions and 4 deletions
  1. 4 2
      common/config/main.php
  2. 7 1
      pay/pay.html
  3. 5 1
      pay/return.html

+ 4 - 2
common/config/main.php

@@ -66,8 +66,10 @@ return [
             'merchantCode' => 'M08669', // 'M08669_S0002',  // M08669(prod)
             'merchantKey' => 'SiYF6a0QYy', // '5Mb154IrY8',   // SiYF6a0QYy(prod)
             'currencyCode' => 'MYR', //'CNY', // MYR(马来币) CNY(人民币)
-            'responseUrl' => 'http://nc-fele-mips.elken.com:8016/return.html', //'https://www.ncshop2023.com/#/shop/order-list', // https://nc-fele-mips.elken.com:8015/#/shop/order-list(test)
-            'backendUrl' => 'http://nc-fapi-mips.elken.com:8013/pay.html', //'https://fapi.ekhkad.com/v1/shop/verify-approach-order',  // https://nc-fapi-mips.elken.com:8013/v1/shop/verify-approach-order(test)
+//            'responseUrl' => 'http://nc-fele-mips.elken.com:8016/return.html', // (test)
+//            'backendUrl' => 'http://nc-fapi-mips.elken.com:8013/pay.html', // (test)
+            'responseUrl' => 'http://fele.ncshop.elken.com/return.html', // (prod)
+            'backendUrl' => 'http://fapi.ncshop.elken.com/v1/shop/verify-approach-order', // (prod)
             'requeryUrl' => 'https://payment.ipay88.com.my/epayment/enquiry.asp',
             'paymentUrl' => 'https://payment.ipay88.com.my/epayment/entry.asp',
             'recurringUrlSubscription' => 'https://www.ipay88.com/recurringpayment/webservice/RecurringPayment.asmx/Subscription',

+ 7 - 1
pay/pay.html

@@ -38,7 +38,13 @@
 	
 	let RefNo = getQueryString('RefNo', window.location.search);
 	$(function(){
-		$.post('http://16.163.228.151:8013/v1/shop/i-pay88', {'RefNo': RefNo}, function(res) {
+		// test
+		// let url = 'http://16.163.228.151:8013/v1/shop/i-pay88';
+
+		// prod
+		let url = 'https://fapi.ekhkad.com/v1/shop/i-pay88';
+
+		$.post(url, {'RefNo': RefNo}, function(res) {
 			$("#Amount").val( res.paymentFields.Amount);
 			$("#BackendURL").val( res.paymentFields.BackendURL);
 			$("#Currency").val( res.paymentFields.Currency);

+ 5 - 1
pay/return.html

@@ -1,3 +1,7 @@
 <script language="javascript">
-	location.replace("http://16.163.228.151:8015/#/shop/order-list");
+	// test
+	// location.replace("http://16.163.228.151:8015/#/shop/order-list");
+
+	// prod
+	location.replace("https://www.ncshop2023.com/#/shop/order-list");
 </script>