diff --git a/src/__tests__/GuiPlugins.test.ts b/src/__tests__/GuiPlugins.test.ts index ef96cec003e..3a13fd739ed 100644 --- a/src/__tests__/GuiPlugins.test.ts +++ b/src/__tests__/GuiPlugins.test.ts @@ -22,6 +22,13 @@ describe('Production plugin data', () => { } }) + it('Does not surface the retired Xanpool plugin', () => { + expect(guiPlugins.xanpool).toBeUndefined() + expect([...buyPluginJson, ...sellPluginJson]).not.toContainEqual( + expect.objectContaining({ pluginId: 'xanpool' }) + ) + }) + it('Buy plugins match snapshot on iOS + US', () => { expect( filterGuiPluginJson(buyPluginJson, 'ios', 'US', {}) diff --git a/src/components/scenes/SendScene2.tsx b/src/components/scenes/SendScene2.tsx index 050a7e8ddf2..4573b104252 100644 --- a/src/components/scenes/SendScene2.tsx +++ b/src/components/scenes/SendScene2.tsx @@ -18,7 +18,6 @@ import * as React from 'react' import { ActivityIndicator, InteractionManager, - Linking, type TextInput, View } from 'react-native' @@ -1170,13 +1169,6 @@ const SendComponent: React.FC = props => { return null } - const handleLearnMore = useHandler(async () => { - const url = - config.pendingTxLearnMoreUrl ?? - 'https://support.edge.app/hc/en-us/articles/43465958781723' - return await Linking.openURL(url).catch(() => {}) - }) - const renderPendingTransactionWarning = (): React.ReactElement | null => { if (!hasPendingTx) return null @@ -1186,10 +1178,6 @@ const SendComponent: React.FC = props => { type="warning" title={lstrings.pending_transaction_modal_title} body={lstrings.pending_transaction_modal_message} - button={{ - label: lstrings.learn_more_button, - onPress: handleLearnMore - }} marginRem={0.5} /> diff --git a/src/constants/plugins/GuiPlugins.ts b/src/constants/plugins/GuiPlugins.ts index 7ec784ae1c4..60bd7f1614d 100644 --- a/src/constants/plugins/GuiPlugins.ts +++ b/src/constants/plugins/GuiPlugins.ts @@ -276,17 +276,6 @@ export const guiPlugins: Record = { forceFiatCurrencyCode: 'iso:USD', displayName: 'Bank Wire Transfer' }, - xanpool: { - pluginId: 'xanpool', - storeId: 'xanpool', - baseUri: 'https://widget.xanpool.com', - baseQuery: { - apiKey: 'ae524a0144ccd8dc087af39eabb7a02a', - isWebView: 'true' - }, - displayName: 'Xanpool', - permissions: ['camera'] - }, // Partner whitelabel plugins coinhub: { pluginId: 'coinhub', diff --git a/src/constants/plugins/buyPluginList.json b/src/constants/plugins/buyPluginList.json index 0053f4d1ea6..c2ae34d84d6 100644 --- a/src/constants/plugins/buyPluginList.json +++ b/src/constants/plugins/buyPluginList.json @@ -235,20 +235,6 @@ "cryptoCodes": [], "paymentTypeLogoKey": "bank" }, - { - "id": "xanpool", - "pluginId": "xanpool", - "paymentTypes": ["bank"], - "description": "Fee: 1.5% / Settlement: Instant", - "title": "PayNow", - "partnerIconPath": "xanpool-logo.png", - "forCountries": [], - "paymentTypeLogoKey": "paynow", - "deepQuery": { - "transactionType": "buy", - "currency": "SGD" - } - }, "----- Sorting -----", { "id": "fasterpayments", diff --git a/src/constants/plugins/sellPluginList.json b/src/constants/plugins/sellPluginList.json index c936b0e8c6f..d369f4e448d 100644 --- a/src/constants/plugins/sellPluginList.json +++ b/src/constants/plugins/sellPluginList.json @@ -265,22 +265,6 @@ "cryptoCodes": [], "paymentTypeLogoKey": "venmo" }, - { - "id": "xanpool", - "pluginId": "xanpool", - "paymentTypes": [ - "bank" - ], - "description": "Fee: 1.8% / Settlement: Instant", - "title": "PayNow", - "partnerIconPath": "xanpool-logo.png", - "forCountries": [], - "paymentTypeLogoKey": "paynow", - "deepQuery": { - "transactionType": "sell", - "currency": "SGD" - } - }, "----- Sorting -----", { "id": "sepa", diff --git a/src/envConfig.ts b/src/envConfig.ts index e590a27b17d..2850a7e5bde 100644 --- a/src/envConfig.ts +++ b/src/envConfig.ts @@ -155,6 +155,7 @@ export const asEnvConfig = asObject({ ), ionia: asOptional( asObject({ + authTokenUrl: asString, clientId: asString, clientSecret: asString, ioniaBaseUrl: asString, @@ -205,14 +206,6 @@ export const asEnvConfig = asObject({ simplex: undefined }) ), - WYRE_CLIENT_INIT: asOptional( - asObject({ - baseUri: asString - }), - () => ({ - baseUri: 'https://api.sendwyre.com' - }) - ), AZTECO_API_KEY: asNullable(asString), STAKEKIT_API_KEY: asNullable(asString), KILN_TESTNET_API_KEY: asNullable(asString), diff --git a/src/plugins/gui/providers/ioniaProvider.ts b/src/plugins/gui/providers/ioniaProvider.ts index aa9a63c1905..66c88902170 100644 --- a/src/plugins/gui/providers/ioniaProvider.ts +++ b/src/plugins/gui/providers/ioniaProvider.ts @@ -53,6 +53,7 @@ const ioniaBaseRequestOptions = { } const asIoniaPluginApiKeys = asObject({ + authTokenUrl: asString, clientId: asString, clientSecret: asString, ioniaBaseUrl: asString, @@ -145,7 +146,7 @@ export const makeIoniaProvider: FiatProviderFactory = { // OAuth Access Token Request: const fetchAccessToken = cleanFetch({ - resource: new URL(`https://auth.craypay.com/connect/token`), + resource: new URL(pluginKeys.authTokenUrl), options: { method: 'POST', headers: { diff --git a/src/theme/edgeConfig.ts b/src/theme/edgeConfig.ts index 53a748b5fd5..f9c51ff1a20 100644 --- a/src/theme/edgeConfig.ts +++ b/src/theme/edgeConfig.ts @@ -11,8 +11,6 @@ export const edgeConfig: AppConfig = { backupAccountSite: 'https://edge.app/light-account-creation/', configName: 'edge', darkTheme: edgeDark, - pendingTxLearnMoreUrl: - 'https://support.edge.app/hc/en-us/articles/43465958781723', zcashMigrationLearnMoreUrl: 'https://support.edge.app/articles/16111542', defaultWallets: [ { pluginId: 'bitcoin', tokenId: null }, diff --git a/src/theme/testConfig.ts b/src/theme/testConfig.ts index 2a5bae390a5..e12733f511a 100644 --- a/src/theme/testConfig.ts +++ b/src/theme/testConfig.ts @@ -11,8 +11,6 @@ export const testConfig: AppConfig = { backupAccountSite: 'https://support.testy.com/accountbackupinfo', configName: 'test', darkTheme: testDark, - pendingTxLearnMoreUrl: - 'https://support.edge.app/hc/en-us/articles/43465958781723', defaultWallets: [ { pluginId: 'bitcoin', tokenId: null }, { pluginId: 'fantom', tokenId: '6c021ae822bea943b2e66552bde1d2696a53fbb7' }, diff --git a/src/types/types.ts b/src/types/types.ts index 2ec12aa32be..f9bf6e81475 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -384,10 +384,6 @@ export interface AppConfig { referralAppShareUrl?: string disableSwaps?: boolean disableSurveyModal?: boolean - /** - * Support article for pending transactions "Learn more" link. - */ - pendingTxLearnMoreUrl?: string /** * Support article for the Zcash Orchard -> Ironwood migration card's * "Learn more" link.