fix(rcart): streamline Transak widget — skip exchange screen, auto-fill user data

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 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-03 16:04:59 -07:00
parent 42546c9a63
commit 5f2b3fd8d1
1 changed files with 6 additions and 0 deletions

View File

@ -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',