From 23baf21b62bb6f39fcafd4bac1dfc6dbc5a10923 Mon Sep 17 00:00:00 2001 From: Codex Date: Sun, 17 May 2026 20:07:55 +0800 Subject: [PATCH] Harden Tabby webhook transaction save failures --- api/modules/v2/controllers/payment/TabbyController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 +}