#AlterChase-Payment Elements

1 messages · Page 1 of 1 (latest)

echo sail
#

hey, could you please use the thread for the replies?

low plinth
#

Sure thing 👍

echo sail
#

I'm happy to answer as much questions as you need me to

low plinth
#

Well first question is

#

Can we authorise payment intents on server side using Payment Elements ?

echo sail
#

you can authorize Payment Intents on server side but not using Payment Elements

low plinth
#

Alright. Thank you. We will double check the link and see how we can implement it further

#

For the second question

#

If I set setup_future_usage= off_session for the payment intent (PI) used in PaymentElements, I will not be able to select Klarna as payment method.
If I set setup_future_usage= on_session, then I won’t be able to attach the PaymentMethod for the respective customer in Stripe.
How can I manage this situation in order to both have Klarna but also save the customers’ PMs when they select credit card / apple / google pay payment options?

echo sail
#

you can update the Payment Intent to use setup_future_usage = "on_session" when the client chooses Klarna

low plinth
#

Via client-side or only server-side ?

echo sail
#

server side

low plinth
#

Alright. Unfortunate that I have to add an extra request

#

Thank you for the help nonetheless. You helped me out in clarifying a bit on the architecutre

echo sail
#

you could use this event to trigger the change

#

value: { type: "card" }, would tell you what type of payment they chose and based on it you could choose to update the setup_future_usage of the PaymentIntent

echo sail
#

let me know if you need any more help