From 4c1a4cfd1ad14da196e1cad8b32f82d5b434a2e3 Mon Sep 17 00:00:00 2001 From: Jon Tzeng Date: Wed, 21 Jan 2026 10:43:50 -0800 Subject: [PATCH] simplex debug --- CHANGELOG.md | 1 + src/plugins/ramps/simplex/simplexRampPlugin.ts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80d992df10a..7b51cd0d5c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - added: `chooseCaip19Asset` EdgeProvider API for precise wallet selection using CAIP-19 identifiers - added: Pass OS and app version details to core context for v2/coreRollup endpoint - changed: Append chain names to token codes in RampCreateScene +- fixed: Simplex buy/sell success status detection ## 4.42.0 (staging) diff --git a/src/plugins/ramps/simplex/simplexRampPlugin.ts b/src/plugins/ramps/simplex/simplexRampPlugin.ts index 0638fe3d737..ceb31a3f876 100644 --- a/src/plugins/ramps/simplex/simplexRampPlugin.ts +++ b/src/plugins/ramps/simplex/simplexRampPlugin.ts @@ -679,12 +679,21 @@ export const simplexRampPlugin: RampPluginFactory = ( const token = await fetchJwtToken(state.jwtTokenProvider, data) const url = `${widgetUrl}/?partner=${state.partner}&t=${token}` + console.log(`[Simplex DEBUG] Opening external webview: ${url}`) + await openExternalWebView({ url, deeplink: { direction: 'buy', providerId: pluginId, handler: async link => { + // This handler is ONLY called if a Universal Link deeplink is received + console.log(`[Simplex DEBUG] Deeplink handler called!`) + console.log(`[Simplex DEBUG] link.uri: ${link.uri}`) + console.log( + `[Simplex DEBUG] link.query: ${JSON.stringify(link.query)}` + ) + if (link.direction !== 'buy') return const orderId = link.query.orderId ?? 'unknown'