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" />
- +