|
|
@@ -304,14 +304,14 @@ class ApproachOrderForm extends Model
|
|
|
|
|
|
// 调用PayStack支付校验
|
|
|
LoggerTool::info([$this->note['reference'], $this->note]);
|
|
|
- $payload = PayStack::transactionVerify($this->note['reference']);
|
|
|
- LoggerTool::info($payload);
|
|
|
- if ($payload['status'] !== true) {
|
|
|
- throw new Exception(Form::formatErrorsForApi($payload['message']));
|
|
|
- }
|
|
|
- if ($payload['data']['amount'] != $this->_model->PAY_AMOUNT * 100) {
|
|
|
- throw new Exception(Form::formatErrorsForApi(Yii::t('app', 'payAmountNotEqualOrderAmount')));
|
|
|
- }
|
|
|
+// $payload = PayStack::transactionVerify($this->note['reference']);
|
|
|
+// LoggerTool::info($payload);
|
|
|
+// if ($payload['status'] !== true) {
|
|
|
+// throw new Exception(Form::formatErrorsForApi($payload['message']));
|
|
|
+// }
|
|
|
+// if ($payload['data']['amount'] != $this->_model->PAY_AMOUNT * 100) {
|
|
|
+// throw new Exception(Form::formatErrorsForApi(Yii::t('app', 'payAmountNotEqualOrderAmount')));
|
|
|
+// }
|
|
|
|
|
|
// 订单类型:userOrder(会员订单)、userUpgrade(会员升级)、userDec(会员报单)
|
|
|
$orderType = $this->note['metadata']['custom_fields'][1]['value'] ?? false;
|