diff --git a/src/config/cashierConfig.ts b/src/config/cashierConfig.ts index c0113d1..30b1613 100644 --- a/src/config/cashierConfig.ts +++ b/src/config/cashierConfig.ts @@ -42,7 +42,6 @@ export function getCashierConfig(): ICashierConfig { const params = new URLSearchParams(window.location.search); const config: ICashierConfig = { - paymentType: (params.get('payment_type') as 'deposit' | 'withdrawal') || 'deposit', }; // Payment type from URL (support both 'method' and 'payment_type' for backward compatibility) diff --git a/src/constants/payment.ts b/src/constants/payment.ts deleted file mode 100644 index b4dde5d..0000000 --- a/src/constants/payment.ts +++ /dev/null @@ -1,36 +0,0 @@ -import type { IPaymentMethod } from '@/features/payment-methods/types'; - -export const PAYMENT_METHODS: IPaymentMethod[] = [ - { - id: '1', - name: 'Credit Card', - type: 'Card Payment', - isActive: true, - minAmount: 10, - maxAmount: 5000, - }, - { - id: '2', - name: 'PayPal', - type: 'Digital Wallet', - isActive: false, - minAmount: 5, - maxAmount: 10000, - }, - { - id: '3', - name: 'Bank Transfer', - type: 'Banking', - isActive: false, - minAmount: 50, - maxAmount: 50000, - }, - { - id: '4', - name: 'Cryptocurrency', - type: 'Crypto', - isActive: false, - minAmount: 20, - maxAmount: 20000, - }, -]; diff --git a/src/features/cashier/PaymentForm/PaymentForm.tsx b/src/features/cashier/PaymentForm/PaymentForm.tsx index 08be8e0..c4afa14 100644 --- a/src/features/cashier/PaymentForm/PaymentForm.tsx +++ b/src/features/cashier/PaymentForm/PaymentForm.tsx @@ -197,7 +197,6 @@ function PaymentForm({