|
|
@@ -287,12 +287,12 @@ class ApproachOrderForm extends Model
|
|
|
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('支付金额与订单金额不符'));
|
|
|
-// }
|
|
|
+ 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('支付金额与订单金额不符'));
|
|
|
+ }
|
|
|
|
|
|
$db = \Yii::$app->db;
|
|
|
$transaction = $db->beginTransaction();
|