#raxkumar
1 messages · Page 1 of 1 (latest)
Basically I don't want to click any button like pay now, to initiate payment i want to use api call which will confim my payment
I want to achieve the payment successful thing with api call is it possible?
do you need to collect the payment details from the customer?
or do you have already a PaymentMethod attached to the customer
I have already attached payment method
is it a card?
Yes
does it require 3DS?
it depends
if the PaymentMethod (PM) was created with setup_future_usage: off_session then there's the chance where it would work
without having to do 3DS one more time
Understood
So if i create the pm with the off_session
Then using confirm payment intent api i can confirm the payment and move to status to successful ryt ?
yes but you need to pass off_session: true and confirm: true and payment_method: 'pm_xxx'
if you do so then you would have created what we call an off_session payment that is automatically confirmed (if you prefer manual confirmation you can remove confirm:true)
this will let the issuing bank know that this is an off_session payment and upon the discretion of the issuing bank it might (or not) let you collect the payment without 3DS
if the status of the PI after confirmation is requires_action then this means that the issuing bank demanded 3DS and you would have to let the customer know to go back to your website and reauthenticate the payment