fix(rcart): force Transak dark mode with colorMode param

Text inputs were rendering in light mode making text invisible against
the dark background. Added colorMode: 'DARK' to both Transak widget
endpoints.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-03 14:52:28 -07:00
parent 15990cc147
commit f9dc06394c
1 changed files with 2 additions and 0 deletions

View File

@ -1781,6 +1781,7 @@ routes.post("/api/payments/:id/transak-session", async (c) => {
partnerOrderId: `pay-${paymentId}`,
email,
themeColor: '6366f1',
colorMode: 'DARK',
hideMenu: 'true',
};
@ -1858,6 +1859,7 @@ routes.post("/api/payments/:id/card-session", async (c) => {
partnerOrderId: `pay-${paymentId}`,
email,
themeColor: '6366f1',
colorMode: 'DARK',
hideMenu: 'true',
};
// Derive fiat amount: use explicit fiatAmount, or infer from crypto amount for stablecoins