Reputation: 191
I am integrating stripe payment gateway on wix website. Below are the steps i followed to integrate the payment.
On checkout page it is showing perfect. Issue that when user submit credit card details, it says technical error.
Inside stripe account in all payments it is showing that transaction incomplete: ** the customer has not entered their payment method **
One thing here is worthy to mention that, stripe account currency is in Indian Rupee, and on website user is paying in USD. Is this creating any issue? i think stripe automatically converts the currencies.
Please let me know your answers, opinions and suggestions. Thank you
Upvotes: 2
Views: 3294
Reputation: 11
enter image description here const paymentIntent = await stripe.paymentIntents.create({ amount: total, currency: "usd", });
In your code change currency to your default currency that is showing on stripes, For Example, if your default currency on stripes is in INR(Indian Rupees), then change your code to:-
const paymentIntent = await stripe.paymentIntents.create({
amount: total,
currency: "inr",
});
Upvotes: 0