#joy-paymentintent-savedcard

1 messages · Page 1 of 1 (latest)

vital basaltBOT
analog phoenix
#

@sour canyon I'm sorry I don't understand what you are asking at all. Can you share some code and a clear example of the issue?

sour canyon
#

in connect:

wanna do : perform a charge on saved card

what i did:
step 1 : saved the card details with a customer
step 2 : want to charge the customer ,.so create a payment intent like below but it returned status as 'requires_confirmation',

const paymentIntent = await stripe.paymentIntents.create({
amount: 100,
currency: 'inr',
customer: "cus_OzgiHSmvptNgbb",
setup_future_usage : "off_session",
payment_method: 'pm_1OBhM6SAS10rymn4lYPpWgvj',
transfer_data: {
destination: "acct_1O9uNbSDmkHU41aw",
},
automatic_payment_methods: {
enabled: true,
allow_redirects:"always",
},
})

step 3: do know what do to get the required confirmation ????

analog phoenix
#

this explains what to do

sour canyon
#

this only explains the offsession payments i wanna know what happes with onsession payments when the payment intent asks for confirmation

thats OTP from bank etc.,,

analog phoenix
#

I'm sorry this is really unclear so I am struggling to help you

sour canyon
#

if i am not too harsh ,..can you forward it to some technical person

please🥺

analog phoenix
#

I'm an engineer and I know our API inside out. I'm really sorry but right now most of what you explained doesn't really make sense to me. You talk about OPT and banks but didn't explain anything concrete yet

#

I shared the exact doc that tells you exactly what to do server-side to charge a card off session that was saved before

sour canyon
analog phoenix
#

I'm sorry I won't listen to a 2 minutes audio file

sour canyon
#

i am explaining my problem here clearly

#

you will clearly understand my problem

#

could you listen please

#

🥺 🥺 🥺

analog phoenix
#

I understand but I'm helping a ton of other developers in parallel. I can't really listen to a 2 minutes conversation to yourself I'm sorry. Please explain clearly and simply in words what the problem is with your question. The doc I shared earlier explains exactly how to charge a saved payment method and you never explain what the problem was

sour canyon
#

the created payment intent with the customer and card details,..returns confirmation requird

#

how to procced and get users confirmation

analog phoenix
#

Please, take the time to write a clear and understandable sentence.

#

PaymentIntents are a state machine with various states and you move through them as needed. All your code did earlier is create the PaymentIntent, you never confirmed it (which again that doc tells you exactly how to do)

sour canyon
#

thats why i sent the audio explaining clearly,..i am trying to explain but i could not able to convey it clearly

analog phoenix
#

your code never confirmed that PaymentIntent. You created it but didn't confirm
When you collected the card details the first time you did confirm client-side right? That is an explicit separate step.

#

So what you need to do here is confirm the PaymentIntent. You do it server-side with confirm :true or you do it client-side with confirmPayment(), that's the step I am telling you that you are missing

sour canyon
#

will try that,..thanks for your patience

analog phoenix
#

of course

#

joy-paymentintent-savedcard