From 22fe1409878d7434772c3c7e5400bed0794969c8 Mon Sep 17 00:00:00 2001 From: Tracewebstudio Dev Date: Fri, 26 Jun 2026 21:07:36 +0200 Subject: [PATCH] Refine admin Razorpay gateway screen --- src/routes/admin/payment-gateway.tsx | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/src/routes/admin/payment-gateway.tsx b/src/routes/admin/payment-gateway.tsx index e4c025b..fd9b528 100644 --- a/src/routes/admin/payment-gateway.tsx +++ b/src/routes/admin/payment-gateway.tsx @@ -13,10 +13,10 @@ type PaymentGatewayConfig = { }; const DEFAULT_CONFIG: PaymentGatewayConfig = { - provider: 'BeepScepter', + provider: 'Razorpay', mode: 'sandbox', enabled: true, - baseUrl: '', + baseUrl: 'https://api.razorpay.com', callbackUrl: '', webhookUrl: '', merchantId: '', @@ -26,16 +26,10 @@ const DEFAULT_CONFIG: PaymentGatewayConfig = { const READ_ENDPOINTS = [ '/api/admin/payment-gateway-config', - '/api/admin/settings/payment-gateway', - '/api/admin/system-config/payment-gateway', - '/api/gateway/admin/payment-gateway-config', ]; const WRITE_ENDPOINTS = [ '/api/admin/payment-gateway-config', - '/api/admin/settings/payment-gateway', - '/api/admin/system-config/payment-gateway', - '/api/gateway/admin/payment-gateway-config', ]; function authHeaders() { @@ -151,7 +145,7 @@ export default function PaymentGatewayManagementPage() {

Payment Gateway Management

-

Manage provider credentials and callback URLs for platform payments.

+

Manage Razorpay credentials, mode, and callback URLs for platform payments.

@@ -169,7 +163,7 @@ export default function PaymentGatewayManagementPage() {
- setField('provider', e.currentTarget.value)} /> + setField('provider', e.currentTarget.value)} placeholder="Razorpay" />
@@ -179,19 +173,19 @@ export default function PaymentGatewayManagementPage() {
- + setField('baseUrl', e.currentTarget.value)} placeholder="https://api.provider.com" />
- - setField('merchantId', e.currentTarget.value)} /> + + setField('merchantId', e.currentTarget.value)} placeholder="Optional internal reference" />
- - setField('apiKey', e.currentTarget.value)} /> + + setField('apiKey', e.currentTarget.value)} placeholder="rzp_test_xxxxx" />
- +