#Jonas Reif - Checkout

1 messages ยท Page 1 of 1 (latest)

spring hound
#

Hi ๐Ÿ‘‹

worthy geyser
#

Hi ๐Ÿ™‚

spring hound
#

Let me test this out

#

Okay just confirmed what i thought. The checkout page will keep the user on-session if the payment does not authenticate.

#

With a helpful error message that they need to try a different payment method

worthy geyser
#

Sorry I was away for some minutes.

I mean for example:

  1. User make a successful purchase via Stripe Checkout
  2. After 1/2 days payment fails for some reason (e.g. because something went wrong, not enough money etc.)

Then we get a webhook event which informs us about the failed payment.
And then we want to send the user a new "link" in some cases, where he could update the payment method.

spring hound
#

Which event do you receive in this case?

worthy geyser
#

charge.failed for example?

spring hound
#

That is only going to have information about the actual charge object. It would be hard to re-create the checkout session based on that.

worthy geyser
#

ok.
So there is no way of updating the payment method?

spring hound
#

You would need to re-create the checkout session and then redirect the customer.

worthy geyser
#

Alright thanks ๐Ÿ‘