#Michael Frost - EPS, Klarna payment intents

1 messages ยท Page 1 of 1 (latest)

blazing blade
#

Hello, happy to help. Can you tell me a bit more about what is happening and what you need advice on?

forest jay
#

Hi!

#

I'm working on the checkout process of a platform that allows connected accounts to sell tickets for events.

#

When a customer adds a ticket to his cart I update the payment intent from the backend.

#

On the payment page we use the "Stripe Elements" in our NextJS frontend.

blazing blade
#

Gotcha. So you you create and update the intent, the customer starts their checkout, then they go back and decide to change their cart again?

#

Are you getting an error when you try to update the payment intent again?

forest jay
#

So when the customer selects a payment method and is redirected to EPS or Klarna and opens our ticket shop in 2nd tab his cart is still visible because of the session. Now the customer can add more tickets and we update the payment intent again.
What happens when the customer then goes back to the first tab/window and comletes his pyament on the Klarna or EPS page?

#

Sorry for the delay, I missed hitting enter.

fleet stream
#

Hello ๐Ÿ‘‹
Give me a moment to catch up here and I'll respond as soon as I can ๐Ÿ™‚ Thanks

forest jay
#

Hi! Great, thanks!

fleet stream
#

Not sure I completely understand your flow but shouldn't your app prevent customers from adding more tickets to the payment intent if you've already initiated the payment?

forest jay
#

Ok, that would make sense. What do you mean with "if you've already initiated the payment"? Do you mean if a payment intent has been created?

fleet stream
#

Sorry, what I meant was if they've already been redirected to Klarna or EPS page

forest jay
#

How would I detect that?

fleet stream
#

You could disable elements on your page when user gets redirected to Klarna or EPS