From 68dfe613a2a9ae0942636ad0cb318eb763a2ebc8 Mon Sep 17 00:00:00 2001
From: hamed <15238-genius.ha@users.noreply.drupalcode.org>
Date: Mon, 15 Jun 2026 13:17:28 +0330
Subject: [PATCH] feat(payment): add test mode check for payment callback IP
validation
---
assets/admin/pages/SmsWalletPage.tsx | 282 ++++++++++++-------
assets/admin/pages/SubscriptionPage.tsx | 45 ++-
src/Payment/Controller/PaymentController.php | 5 +-
3 files changed, 212 insertions(+), 120 deletions(-)
diff --git a/assets/admin/pages/SmsWalletPage.tsx b/assets/admin/pages/SmsWalletPage.tsx
index 6b4ae0f9..84c58e54 100644
--- a/assets/admin/pages/SmsWalletPage.tsx
+++ b/assets/admin/pages/SmsWalletPage.tsx
@@ -6,6 +6,7 @@ import { z } from 'zod';
import { toast } from 'sonner';
import {
ArrowUpCircleIcon, ArrowDownCircleIcon, DevicePhoneMobileIcon,
+ ClockIcon, CheckCircleIcon, XCircleIcon, BellAlertIcon, ChatBubbleLeftEllipsisIcon,
} from '@heroicons/react/24/outline';
import { api } from '../lib/api';
import type { ApiResponse, PaginatedResponse } from '../lib/api';
@@ -82,23 +83,19 @@ function SmsWalletPageInner() {
<>