From 5f2b3fd8d140f1e55d5c43a80b84a7c7d222a518 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Fri, 3 Apr 2026 16:04:59 -0700 Subject: [PATCH] =?UTF-8?q?fix(rcart):=20streamline=20Transak=20widget=20?= =?UTF-8?q?=E2=80=94=20skip=20exchange=20screen,=20auto-fill=20user=20data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added hideExchangeScreen, isAutoFillUserData, and paymentMethod params to both Transak endpoints. This skips the initial exchange screen (we already provide all required fields) and auto-fills email for Lite KYC, reducing friction for small transactions. Co-Authored-By: Claude Opus 4.6 --- modules/rcart/mod.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/rcart/mod.ts b/modules/rcart/mod.ts index e67a3d7..a1e0d63 100644 --- a/modules/rcart/mod.ts +++ b/modules/rcart/mod.ts @@ -1786,6 +1786,9 @@ routes.post("/api/payments/:id/transak-session", async (c) => { defaultCryptoAmount: effectiveAmount, partnerOrderId: `pay-${paymentId}`, email, + isAutoFillUserData: 'true', + hideExchangeScreen: 'true', + paymentMethod: 'credit_debit_card', themeColor: '6366f1', colorMode: 'DARK', hideMenu: 'true', @@ -1864,6 +1867,9 @@ routes.post("/api/payments/:id/card-session", async (c) => { defaultCryptoAmount: effectiveAmount, partnerOrderId: `pay-${paymentId}`, email, + isAutoFillUserData: 'true', + hideExchangeScreen: 'true', + paymentMethod: 'credit_debit_card', themeColor: '6366f1', colorMode: 'DARK', hideMenu: 'true',