Creates a payment intent with Stripe
Amount in cents
Currency code (e.g., 'eur')
Description of the payment
Number of surveys that will be added to the user's quota
ID of the user making the payment
The client secret for the payment intent
Error if payment creation fails
const payment = await createPaymentIntent(1000, 'eur', 'Pack 50 enquêtes', 50, 1); Copy
const payment = await createPaymentIntent(1000, 'eur', 'Pack 50 enquêtes', 50, 1);
Creates a payment intent with Stripe