Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Stop hinting a currency to Stripe checkout (#3307)
Luke Vellabb8e45311ac8
diff --git a/apps/web/src/features/billing/actions.ts b/apps/web/src/features/billing/actions.tsindex 94bc781ee..1be3f4c21 100644--- a/apps/web/src/features/billing/actions.ts+++ b/apps/web/src/features/billing/actions.ts@@ -119,14 +119,9 @@ export const upgradeToProAction = authActionClientaddress: "auto",},mode: "subscription",- // The currency the user saw on the pay wall; without it Stripe picks- // one from the IP and the two can disagree. A currency the price no- // longer carries (stale pay wall cache) is dropped rather than failing- // the session, so Stripe localizes as it would without the hint.- currency:- currency && currency in proPricingData.currencies- ? currency- : undefined,+ // No currency hint: the pay wall price is indicative. Stripe picks the+ // currency from the customer's billing history or their location, and+ // rejects any hint that disagrees with a customer's existing currency....discount.session,billing_address_collection: "auto",tax_id_collection: {