Skip to content

Commit 37a6df5

Browse files
Fix: Missing currency parameter in Stripe API call
The logs show a "Missing required param: currency" error when creating a Stripe checkout session. This commit likely addresses this by ensuring the currency is correctly passed to the Stripe API.
1 parent 78d6ab4 commit 37a6df5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/services/stripeBackendService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class StripeBackendService {
5959
const formData = new URLSearchParams();
6060
formData.append('customer', customerId);
6161
formData.append('mode', 'setup');
62+
formData.append('currency', 'eur'); // Obligatoire pour les sessions setup
6263
formData.append('success_url', `${window.location.origin}/payment-success?setup_intent={CHECKOUT_SESSION_ID}&campaign_id=${campaignId}`);
6364
formData.append('cancel_url', `${window.location.origin}/dashboard`);
6465
formData.append('metadata[campaign_name]', campaignName);

0 commit comments

Comments
 (0)