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) <noreply@anthropic.com>
This commit is contained in:
parent
f469f3f40d
commit
4f87807438
|
|
@ -1773,7 +1773,7 @@ routes.post("/api/payments/:id/transak-session", async (c) => {
|
||||||
defaultCryptoCurrency: p.token,
|
defaultCryptoCurrency: p.token,
|
||||||
walletAddress: p.recipientAddress,
|
walletAddress: p.recipientAddress,
|
||||||
disableWalletAddressForm: 'true',
|
disableWalletAddressForm: 'true',
|
||||||
cryptoAmount: effectiveAmount,
|
defaultCryptoAmount: effectiveAmount,
|
||||||
partnerOrderId: `pay-${paymentId}`,
|
partnerOrderId: `pay-${paymentId}`,
|
||||||
email,
|
email,
|
||||||
themeColor: '6366f1',
|
themeColor: '6366f1',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue