+
{t('paymentMethod')}
{t('enabled')}
{t('logos')}
- {t('customForm')}
{t('countries')}
{t('currencies')}
@@ -213,7 +212,7 @@ export function PaymentMethods() {
}`}
>
{/* Desktop layout */}
-
+
{method.displayName}
@@ -234,18 +233,6 @@ export function PaymentMethods() {
/>
-
- {method.hasCustomForm ? (
- updatePaymentMethod(method.name, { showCustomForm: checked })}
- aria-label={`${t('customForm')} ${method.displayName}`}
- />
- ) : (
- --
- )}
-
-
- {method.hasCustomForm && (
-
-
- updatePaymentMethod(method.name, { showCustomForm: checked })}
- aria-label={`${t('customForm')} ${method.displayName}`}
- />
-
- )}
diff --git a/views/js/admin/settings-app/src/components/settings/payment-processing.tsx b/views/js/admin/settings-app/src/components/settings/payment-processing.tsx
index 95ab28d4..640e3522 100644
--- a/views/js/admin/settings-app/src/components/settings/payment-processing.tsx
+++ b/views/js/admin/settings-app/src/components/settings/payment-processing.tsx
@@ -3,13 +3,14 @@ import { Label } from '@/components/ui/label'
import { Button } from '@/components/ui/button'
import { Switch } from '@/components/ui/switch'
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
-import { CreditCard, ShieldCheck, Loader2 } from 'lucide-react'
+import { AlertCircle, CreditCard, ShieldCheck, Loader2 } from 'lucide-react'
import { useSettings } from '@/context/settings-context'
import { t } from '@/utils/translations'
export function PaymentProcessing() {
const { settings, updateSettings, savePaymentProcessing, savingSections } = useSettings()
const saving = savingSections.has('paymentProcessing')
+ const hasBusinessLicense = settings.testMode ? settings.testHasBusinessLicense : settings.liveHasBusinessLicense
return (
@@ -263,6 +264,31 @@ export function PaymentProcessing() {
/>
)}
+
+ {hasBusinessLicense && (
+
+
+
+
+ {t('useFieldsDescription')}
+
+
+
updateSettings({ useFields: checked })}
+ />
+
+ )}
+
+ {hasBusinessLicense && settings.useFields && settings.fieldsAccessTokenMissing && (
+
+
+
{t('fieldsTokenMissingWarning')}
+
+ )}