#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, 6 days ago, 10 messages
Sure, what's the issue?
I am trying to make an intent which directly deducts the amount from a card both domestic and international without customer in the flow
i run the api and in the stripe dashboard i recieved a failed payment with this message
This payment failed because the issuing bank declined it. Find more details on the payment timeline.
??
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
this particular failed api is not available in developers error
Yeah then I guess the payment was declined unfortunately, not sure what else to suggest
I can't really understand why without an ID of sorts
can i explain you my flow
Sure
user books a car for rent from my website and on the click of reserve and pay i create the customer on stripe and then a payment intent of that customer with off_session true so that i can do future payment with customer cards without his interference if there is fines on the vehicle and then the payment portal opens and customer pays
now if there are fine on the vehicle i want to deduct the money from that customer card after informing him on call
this would be my process
after the first payment
when i try to make a new intent for autopayment i recieved payment failed in my stripe dshboard
with off_session true so that i can do future payment with customer cards without his interference
That's the wrong parameter which may explain your issue. You should be usingsetup_future_usage: 'off_session': https://stripe.com/docs/payments/payment-intents#future-usage
yes i have given this only
Then in subsequent payments you'd pass off_session: true
Can you share an example of the initial PI you create via the API?
{
customer: data.customerID,
setup_future_usage: 'off_session',
amount: priceInCents,
currency: data.currency,
description: 'car rental services',
automatic_payment_methods: {
enabled: true,
},
initial
A pi_xx ID would be great
pi_3OAQZiLW3jzjuzNo0weiQPNC