Stripe Card successfully charged callback / webhook?

Is there a way to get the callback from Stripe when you successfully charge a card?

Aka Bubble is getting a webhook which is triggering the showing of ‘SUCCESS_CARD’ in language but there’s no away to capture that so that when you are seeing this message you can trigger something to happen or re-direct.

Toby

Payment-intent.succeeded Triggering actions with webhooks | Stripe Documentation

What do you mean, there’s no way to capture it?

You can do whatever you want once you receive the webhook…

OK - maybe it’s more… I don’t understand how to get it…

I’m guessing this…

Get what? what does that have to do with webhooks?..

What are you trying to do exactly?

Trying to get the callback from bubble or stripe that the payment has been processed.

T

Well if you’re talking about webhooks, that happens on the backend.

Just create an API workflow, set up your webhook in Stripe, and initialize it. Then you can do whatever you want on the backend once the webhook is received.

If you’re talking about doing something on the page (which, from your screenshots it looks like you are), then you’ll want to make an API call to Stripe to check whatever thing it is you need to check (the checkout session, the payment intent, invoice etc.).

1 Like

That’s my point - The basic stripe plugin should return this as it seems it does given how bubble reacts…but you can’t seem to capture this and do something about it.

T

Well the workflow will only complete if the payment went through.

If you’re using a checkout session, the success URL can contain the checkout session ID - so you can check the status of that on the page.

mmm using the stripe plugin you can’t configure the checkout URL, so I’m basing this off the stripe plugin.

T.

My general advice (to pretty much anyone) is to not use the Bubble Stripe plugin for anything other than the most basic implementations.