#Andrew Samir

1 messages · Page 1 of 1 (latest)

quick torrentBOT
bronze flint
#

Hi there!

#

What is your question?

formal lance
#

I have a page where users can pay with their existing payment methods i listed their payment methods and when i enter the page .... i create a payment intent from the backend .... and i need when the user click pay i confirm this payment from my backend .. so how can i handle this

bronze flint
#

That's correct! With which part of the flow you described you need help?

formal lance
#

The last part when the user click pay the current behavior now is i confirm from my frontend with confirmCardPayment method ... but i dont need that because i pass the payment_method_id in network so its not secure .. and i need to confirm this payment intent in backend

bronze flint
formal lance
#

So you mean the scenario will be
When user enter payment page he create payment intent with confirm: true or user will create payment_intent when he click pay

bronze flint
formal lance
#

and how can i select payment method in this case

#

i just pass the client secret

bronze flint
formal lance
#

So to wrap up what i understood:

  • first user will see all his listed payment methods and he select one
  • when the user click pay i make a payment intent and pass the pm_xxx id and create payment intent with this payment method id
  • then the response of the client secret will be passed in the ConfirmCardPayment function in frontend
#

Is that flow correct ?

bronze flint
#

Exactly!

formal lance
#

But how can i handle the authentication in that case ?

bronze flint
#

When you call ConfirmCardPayment on the frontend, the card authentification will be automatically handeled for you.

formal lance
#

Oh okay nice

#

May i ask one last question

#

How the authentication process happen
I mean is the page i redirected to is the bank page ? and when the authentication finish ... which page will i return to ?

bronze flint
formal lance
#

Okay

#

Thank you very much for your time