#sarthak_29771

1 messages · Page 1 of 1 (latest)

desert depotBOT
#

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.

dense dagger
#

Sure, what's the issue?

crystal lichen
#

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.

#

??

dense dagger
crystal lichen
#

this particular failed api is not available in developers error

dense dagger
#

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

crystal lichen
#

can i explain you my flow

dense dagger
#

Sure

crystal lichen
#

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

dense dagger
crystal lichen
#

yes i have given this only

dense dagger
#

Then in subsequent payments you'd pass off_session: true

crystal lichen
#

setup_future_usage: 'off_session':

#

yes i have used this as well

dense dagger
#

Can you share an example of the initial PI you create via the API?

crystal lichen
#

{
customer: data.customerID,
setup_future_usage: 'off_session',
amount: priceInCents,
currency: data.currency,
description: 'car rental services',
automatic_payment_methods: {
enabled: true,
},

#

initial

dense dagger
#

A pi_xx ID would be great

crystal lichen
#

pi_3OAQZiLW3jzjuzNo0weiQPNC

desert depotBOT
turbid spoke
#

👋 taking over for my colleague. Let me catch up.

#

taking a look