diff --git a/common/models/InvoicePayment.php b/common/models/InvoicePayment.php index f92e6d206..6b275e00c 100644 --- a/common/models/InvoicePayment.php +++ b/common/models/InvoicePayment.php @@ -251,7 +251,8 @@ public static function updateStatusFromTap($charge_id, $response_message = null, $payment->received_callback = 1; if (!$payment->save()) {// && $payment->payment_current_status == 'CAPTURED' - Yii::error($payment->errors); print_r($payment->errors); die(); + Yii::error($payment->errors); + throw new \yii\base\Exception('Unable to persist invoice payment callback.'); //self::onPaymentCaptured($payment); }