Sfoglia il codice sorgente

跨境商品支付调整

kevin_zhangl 2 anni fa
parent
commit
2f8a973015

+ 1 - 1
common/config/main.php

@@ -65,7 +65,7 @@ return [
             'class' => 'frontendApi\modules\v1\components\IPay88',
             'merchantCode' => 'M08669', // 'M08669_S0002',  // M08669(prod)
             'merchantKey' => 'SiYF6a0QYy', // '5Mb154IrY8',   // SiYF6a0QYy(prod)
-            'currencyCode' => 'MYR', //'CNY', // MYR(马来币) CNY(人民币)
+            'currencyCode' => 'CNY', //'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',

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

@@ -422,8 +422,8 @@ class ShopController extends BaseController {
         // 马来币汇率
         $exchangeRateMYR = floatval(Cache::getSystemConfig()['exchangeRateMYR']['VALUE'] ?? 0);
         // 计算马来币
-        $amount = number_format(round($money * $exchangeRateMYR), 2, '.', '');
-//        $amount = number_format(1, 2, '.', ''); // TODO: 测试
+//        $amount = number_format(round($money * $exchangeRateMYR), 2, '.', '');
+        $amount = number_format(1, 2, '.', ''); // TODO: 测试
         $paymentParams['Amount'] = str_replace('.', '', $amount);
         // (Optional) (int)
         $paymentParams['PaymentId'] = '182';   // 2=信用卡 182=银联