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:
parent
42546c9a63
commit
5f2b3fd8d1
|
|
@ -1786,6 +1786,9 @@ routes.post("/api/payments/:id/transak-session", async (c) => {
|
||||||
defaultCryptoAmount: effectiveAmount,
|
defaultCryptoAmount: effectiveAmount,
|
||||||
partnerOrderId: `pay-${paymentId}`,
|
partnerOrderId: `pay-${paymentId}`,
|
||||||
email,
|
email,
|
||||||
|
isAutoFillUserData: 'true',
|
||||||
|
hideExchangeScreen: 'true',
|
||||||
|
paymentMethod: 'credit_debit_card',
|
||||||
themeColor: '6366f1',
|
themeColor: '6366f1',
|
||||||
colorMode: 'DARK',
|
colorMode: 'DARK',
|
||||||
hideMenu: 'true',
|
hideMenu: 'true',
|
||||||
|
|
@ -1864,6 +1867,9 @@ routes.post("/api/payments/:id/card-session", async (c) => {
|
||||||
defaultCryptoAmount: effectiveAmount,
|
defaultCryptoAmount: effectiveAmount,
|
||||||
partnerOrderId: `pay-${paymentId}`,
|
partnerOrderId: `pay-${paymentId}`,
|
||||||
email,
|
email,
|
||||||
|
isAutoFillUserData: 'true',
|
||||||
|
hideExchangeScreen: 'true',
|
||||||
|
paymentMethod: 'credit_debit_card',
|
||||||
themeColor: '6366f1',
|
themeColor: '6366f1',
|
||||||
colorMode: 'DARK',
|
colorMode: 'DARK',
|
||||||
hideMenu: 'true',
|
hideMenu: 'true',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue