#raxkumar

1 messages · Page 1 of 1 (latest)

shut haloBOT
limpid badge
#

👋 happy to help

#

could you elaborate more?

bold stratus
#

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?

limpid badge
#

do you need to collect the payment details from the customer?

#

or do you have already a PaymentMethod attached to the customer

bold stratus
#

I have already attached payment method

limpid badge
#

is it a card?

bold stratus
#

Yes

limpid badge
#

does it require 3DS?

bold stratus
#

I have not sure of 3ds

#

Will confirm payment intent api work ?
I had that doubt ?

limpid badge
#

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

bold stratus
#

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 ?

limpid badge
#

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