kevin_zhangl 2 rokov pred
rodič
commit
946f010ffd

+ 3 - 3
common/config/main.php

@@ -63,9 +63,9 @@ return [
         // iPay88配置
         'iPay88' => [
             'class' => 'frontendApi\modules\v1\components\IPay88',
-            'merchantCode' => 'M08669_S0002',  // M08669(prod)
-            'merchantKey' => '5Mb154IrY8',   // SiYF6a0QYy(prod)
-            'currencyCode' => 'CNY', // MYR(马来币) CNY(人民币)
+            'merchantCode' => 'M08669', // 'M08669_S0002',  // M08669(prod)
+            'merchantKey' => 'SiYF6a0QYy', // '5Mb154IrY8',   // SiYF6a0QYy(prod)
+            'currencyCode' => 'MYR', //'CNY', // MYR(马来币) CNY(人民币)
             'responseUrl' => 'https://nc-fele-mips.elken.com:8015/#/shop/order-list', //'https://www.ncshop2023.com/#/shop/order-list', // TODO: https://nc-fele-mips.elken.com:8015/#/shop/order-list(test)
             'backendUrl' => 'https://nc-fapi-mips.elken.com:8013/v1/shop/verify-approach-order', //'https://fapi.ekhkad.com/v1/shop/verify-approach-order',  // https://nc-fapi-mips.elken.com:8013/v1/shop/verify-approach-order(test)
             'requeryUrl' => 'https://payment.ipay88.com.my/epayment/enquiry.asp',

+ 1 - 1
frontendApi/modules/v1/controllers/ShopController.php

@@ -426,7 +426,7 @@ class ShopController extends BaseController {
 //        $amount = number_format(1, 2, '.', ''); // TODO: 测试
         $paymentParams['Amount'] = str_replace('.', '', $amount);
         // (Optional) (int)
-        $paymentParams['PaymentId'] = '';   // TODO: 2=MYR
+        $paymentParams['PaymentId'] = '2';   // 2=MYR
         // Product description. (length 100)
         $paymentParams['ProdDesc'] = 'Pay for sales';
         // Customer name. (length 100)