From 44744002827339e3d2c1401be26a360fe0add838 Mon Sep 17 00:00:00 2001 From: Paul Puey Date: Thu, 19 Oct 2023 12:54:43 -0700 Subject: [PATCH] Re-enable ideal for Banxa --- src/constants/plugins/GuiPlugins.ts | 9 +++++++++ src/constants/plugins/buyPluginList.json | 11 +++++++++++ src/plugins/gui/fiatPluginTypes.ts | 1 + src/plugins/gui/providers/banxaProvider.ts | 3 +++ 4 files changed, 24 insertions(+) diff --git a/src/constants/plugins/GuiPlugins.ts b/src/constants/plugins/GuiPlugins.ts index c0c6d0bbb35..deda7f7b5f7 100644 --- a/src/constants/plugins/GuiPlugins.ts +++ b/src/constants/plugins/GuiPlugins.ts @@ -97,6 +97,15 @@ export const guiPlugins: { [pluginId: string]: GuiPlugin } = { nativePlugin: amountQuoteFiatPlugin, displayName: 'ACH Bank Transfer' }, + ideal: { + pluginId: 'amountquote', + storeId: '', + baseUri: '', + lockUriPath: true, + nativePlugin: amountQuoteFiatPlugin, + forceFiatCurrencyCode: 'iso:EUR', + displayName: 'XX Do not show' + }, interac: { pluginId: 'amountquote', storeId: '', diff --git a/src/constants/plugins/buyPluginList.json b/src/constants/plugins/buyPluginList.json index 90b47e7e1e9..2efaf3b4951 100644 --- a/src/constants/plugins/buyPluginList.json +++ b/src/constants/plugins/buyPluginList.json @@ -308,6 +308,17 @@ "paymentTypeLogoKey": "cash", "deepPath": "/" }, + { + "id": "ideal", + "pluginId": "ideal", + "paymentType": "ideal", + "paymentTypes": ["ideal"], + "title": "iDEAL", + "description": "", + "forCountries": ["NL"], + "cryptoCodes": [], + "paymentTypeLogoKey": "ideal" + }, { "id": "interac", "pluginId": "interac", diff --git a/src/plugins/gui/fiatPluginTypes.ts b/src/plugins/gui/fiatPluginTypes.ts index 124b34d0a45..a723383a457 100644 --- a/src/plugins/gui/fiatPluginTypes.ts +++ b/src/plugins/gui/fiatPluginTypes.ts @@ -25,6 +25,7 @@ export const asFiatPaymentType = asValue( 'fasterpayments', 'googlepay', 'iach', + 'ideal', 'interac', 'iobank', 'payid', diff --git a/src/plugins/gui/providers/banxaProvider.ts b/src/plugins/gui/providers/banxaProvider.ts index fd69decb5ba..e474e74e5bd 100644 --- a/src/plugins/gui/providers/banxaProvider.ts +++ b/src/plugins/gui/providers/banxaProvider.ts @@ -40,6 +40,7 @@ const allowedPaymentTypes: AllowedPaymentTypes = { credit: true, fasterpayments: true, googlepay: true, + ideal: true, interac: true, iobank: true, payid: true, @@ -107,6 +108,7 @@ const asBanxaPaymentType = asValue( 'DIRECTCREDIT', 'DLOCALPIX', 'DLOCALZAIO', + 'IDEAL', 'MANUALPAYMENT', 'MONOOVAPAYID', 'WORLDPAYAPPLE', @@ -681,6 +683,7 @@ const typeMap: { [Payment in BanxaPaymentType]: FiatPaymentType } = { DIRECTCREDIT: 'directtobank', DLOCALPIX: 'pix', DLOCALZAIO: 'iobank', + IDEAL: 'ideal', MANUALPAYMENT: 'turkishbank', MONOOVAPAYID: 'payid', WORLDPAYAPPLE: 'applepay',