fixing build
This commit is contained in:
parent
4554bb5cce
commit
d3708257f8
@ -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)
|
||||
|
||||
@ -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,
|
||||
},
|
||||
];
|
||||
@ -197,7 +197,6 @@ function PaymentForm({
|
||||
<form className={bem(block, 'form')} onSubmit={handleSubmit}>
|
||||
{groupedFields.payment.filter(f => f.code !== 'type' && f.code !== 'method').length > 0 && (
|
||||
<div className={bem(block, 'section')}>
|
||||
<h3 className={bem(block, 'section-title')}>Payment Information</h3>
|
||||
{groupedFields.payment
|
||||
.filter(f => f.code !== 'type' && f.code !== 'method')
|
||||
.map(renderField)}
|
||||
@ -206,14 +205,12 @@ function PaymentForm({
|
||||
|
||||
{groupedFields.customer.length > 0 && (
|
||||
<div className={bem(block, 'section')}>
|
||||
<h3 className={bem(block, 'section-title')}>Customer Information</h3>
|
||||
{groupedFields.customer.map(renderField)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{groupedFields.account.length > 0 && (
|
||||
<div className={bem(block, 'section')}>
|
||||
<h3 className={bem(block, 'section-title')}>Account Information</h3>
|
||||
{groupedFields.account.map(renderField)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user