#sarthak_29771
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- sarthak_29771, 15 hours ago, 31 messages
- sarthak_29771, 6 days ago, 10 messages
how can i help?
i want to discuss my process first so that you can understand whats the problem
what do you want to discuss?
user is booking a car for rental from my website then on the last page user clicks on button reserve and pay on this click customer is created on stripe dashboard and a payment intent is created using stripe api by giving these details :- customer: data.customerID,
setup_future_usage: 'off_session',
amount: priceInCents,
currency: data.currency,
description: 'car rental services',
automatic_payment_methods: {
enabled: true,
}, after this the user is redirected to payments page and make the payment. After successful payment the reservation is made, after this when the user returns the car we check on the vehicles for fines and calculate the total amount pending which i have to deduct automatically, so for this i make a payment intent for auto payment without customer in my flow using this amount: priceInCents,
currency: data.currency,
// automatic_payment_methods: { enabled: true },
customer: data.customerID,
payment_method: data.paymentMethodID,
payment_method_types: data.payment_method_types,
description: 'car rental services',
off_session: true,
confirm: true, but when i hit the api my stripe dashboard shows payment is failed and is declined by bank
what's the paymentIntent ID?
successful payment id pi_3OAQZiLW3jzjuzNo0weiQPNC
failed one
pi_3OAUpcLW3jzjuzNo1cVrLBWk
The card is declined because of transaction_not_allowed https://stripe.com/docs/declines/codes you can learn how to handle card declines in this page.
i get message from my bank saying transaction was declined as the transaction details were incorrect provided by merchant are incorrect