Update: 2026-05-07 03:16:40

This commit is contained in:
Hamza-Ayed
2026-05-07 03:16:40 +03:00
parent 6cefee3d42
commit 55806721e7
3 changed files with 4 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ try {
$db->commit();
json_success(['status' => 'received'], $message);
} catch (\Exception $e) {
} catch (\Throwable $e) {
if ($db->inTransaction()) $db->rollBack();
error_log("Bot Webhook Error: " . $e->getMessage());
json_error('حدث خطأ أثناء معالجة رسالة البوت.', 500);

View File

@@ -66,7 +66,7 @@ try {
$user = $stmt->fetch();
// 6. Create payment request
$paymentId = generate_uuid();
$paymentId = Database::generateUuid();
$stmt = $db->prepare("
INSERT INTO payment_requests (id, tenant_id, user_id, plan_id, amount_jod, internal_reference, cliq_alias, payer_name, status, created_at)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, 'pending', NOW())
@@ -101,7 +101,7 @@ try {
'instructions' => "قم بالتحويل عبر CliQ إلى الاسم المستعار: {$cliqAlias} بمبلغ {$plan['price_jod']} دينار أردني.",
], 'تم إنشاء طلب الدفع بنجاح');
} catch (\Exception $e) {
} catch (\Throwable $e) {
error_log("Payment Create Error: " . $e->getMessage());
json_error('حدث خطأ أثناء إنشاء طلب الدفع.', 500);
}

View File

@@ -97,7 +97,7 @@ try {
], 'تم حفظ المرجع (بانتظار التأكيد)');
}
} catch (\Exception $e) {
} catch (\Throwable $e) {
if ($db->inTransaction()) $db->rollBack();
error_log("Verify Reference Error: " . $e->getMessage());
json_error('حدث خطأ أثناء معالجة رقم المرجع.', 500);