From 4f878074388af74101e6b8ee99c07a811f946296 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Fri, 3 Apr 2026 03:02:19 +0000 Subject: [PATCH] fix(rcart): use defaultCryptoAmount for Transak widget Transak rejects `cryptoAmount` when combined with fiatCurrency params. Use `defaultCryptoAmount` which pre-fills the amount without conflicting. Co-Authored-By: Claude Opus 4.6 (1M context) --- modules/rcart/mod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rcart/mod.ts b/modules/rcart/mod.ts index 9c359f2..e7a14f6 100644 --- a/modules/rcart/mod.ts +++ b/modules/rcart/mod.ts @@ -1773,7 +1773,7 @@ routes.post("/api/payments/:id/transak-session", async (c) => { defaultCryptoCurrency: p.token, walletAddress: p.recipientAddress, disableWalletAddressForm: 'true', - cryptoAmount: effectiveAmount, + defaultCryptoAmount: effectiveAmount, partnerOrderId: `pay-${paymentId}`, email, themeColor: '6366f1',