diff --git a/api/modules/v2/controllers/payment/TabbyController.php b/api/modules/v2/controllers/payment/TabbyController.php index 8a9a7f2bf..d86c34ea3 100644 --- a/api/modules/v2/controllers/payment/TabbyController.php +++ b/api/modules/v2/controllers/payment/TabbyController.php @@ -403,8 +403,7 @@ public function actionCallback() { "status" => $status, "source" => 'webhook', ]); - print_r($tt->errors); - die(); + throw new \yii\web\ServerErrorHttpException('Unable to persist Tabby webhook transaction.'); } //$this->clear_customer_session($order['customer_id'], $sid->sid); @@ -457,4 +456,4 @@ protected function findOrder($order_uuid) throw new NotFoundHttpException('The requested record does not exist.'); } } -} \ No newline at end of file +}