From d3708257f8d4822512457f52501aa4f1aae74ece Mon Sep 17 00:00:00 2001 From: Mitchell Magro Date: Wed, 7 Jan 2026 19:53:24 +0100 Subject: [PATCH] fixing build --- src/config/cashierConfig.ts | 1 - src/constants/payment.ts | 36 ------------------- .../cashier/PaymentForm/PaymentForm.tsx | 3 -- src/pages/PaymentStatus/PaymentStatus.tsx | 8 ++--- 4 files changed, 4 insertions(+), 44 deletions(-) delete mode 100644 src/constants/payment.ts 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({
{groupedFields.payment.filter(f => f.code !== 'type' && f.code !== 'method').length > 0 && (
-

Payment Information

{groupedFields.payment .filter(f => f.code !== 'type' && f.code !== 'method') .map(renderField)} @@ -206,14 +205,12 @@ function PaymentForm({ {groupedFields.customer.length > 0 && (
-

Customer Information

{groupedFields.customer.map(renderField)}
)} {groupedFields.account.length > 0 && (
-

Account Information

{groupedFields.account.map(renderField)}
)} diff --git a/src/pages/PaymentStatus/PaymentStatus.tsx b/src/pages/PaymentStatus/PaymentStatus.tsx index abdf3b7..2393a72 100644 --- a/src/pages/PaymentStatus/PaymentStatus.tsx +++ b/src/pages/PaymentStatus/PaymentStatus.tsx @@ -40,13 +40,13 @@ function PaymentStatus() { function getDefaultMessage(type: TCashierResultStatus): string { switch (type) { case 'success': - return 'Payment completed successfully!'; + return 'Transaction completed successfully!'; case 'cancel': - return 'Payment was cancelled.'; + return 'Transaction was cancelled.'; case 'error': - return 'An error occurred during payment processing.'; + return 'An error occurred during transaction processing.'; default: - return 'Payment status unknown.'; + return 'Transaction status unknown.'; } } return (