|
|
@@ -434,7 +434,7 @@ class ShopController extends BaseController {
|
|
|
$paymentParams['Amount'] = str_replace('.', '', $amount);
|
|
|
|
|
|
// (Optional) (int)
|
|
|
- $paymentParams['PaymentId'] = '2';
|
|
|
+ $paymentParams['PaymentId'] = ''; // TODO: 2=MYR
|
|
|
// Product description. (length 100)
|
|
|
$paymentParams['ProdDesc'] = 'Pay for sales';
|
|
|
// Customer name. (length 100)
|
|
|
@@ -449,10 +449,6 @@ class ShopController extends BaseController {
|
|
|
//$paymentParams['Remark'] = 'Here is the description';
|
|
|
//merchantkey + merchantcode+ reference Number + amount in cent + currency_code
|
|
|
$paymentFields = \Yii::$app->iPay88->getPaymentFields($paymentParams, self::TRANSACTION_TYPE_PAYMENT);
|
|
|
- // 拼接订单ID
|
|
|
-// $paymentFields['ResponseURL'] .= $paymentParams['RefNo'];
|
|
|
- // 拼接订单ID
|
|
|
-// $paymentFields['BackendURL'] .= $paymentParams['RefNo'] . '/1';
|
|
|
|
|
|
$transactionUrl = \Yii::$app->iPay88->getTransactionUrl(self::TRANSACTION_TYPE_PAYMENT);
|
|
|
$paymentFields['Amount'] = $amount;
|
|
|
@@ -482,6 +478,8 @@ class ShopController extends BaseController {
|
|
|
$response = $logistics->createOrder($order);
|
|
|
LoggerTool::info($response);
|
|
|
|
|
|
+ // 推送完成后,在表中记录推送记录
|
|
|
+
|
|
|
return static::notice($response);
|
|
|
|
|
|
// 2、创建订单和产品(以前不存在/已提交的产品).
|