# Stripe Card successfully charged callback / webhook?

**URL:** <https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447>\
**Category:** Plugins\
**Created:** [August 1, 2023, 1:25pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447 "2023-08-01T13:25:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![toby2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/toby2/32/99439_2.png) [@toby2](https://forum.bubble.io/u/toby2)\
**Post date:** [August 1, 2023, 1:25pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447/1 "2023-08-01T13:25:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [August 1, 2023, 1:30pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447/2 "2023-08-01T13:30:34Z")

</div>

Payment-intent.succeeded [Triggering actions with webhooks | Stripe Documentation](https://stripe.com/docs/payments/handling-payment-events?locale=en-GB)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 1, 2023, 1:30pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447/3 "2023-08-01T13:30:48Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![toby2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/toby2/32/99439_2.png) [@toby2](https://forum.bubble.io/u/toby2)\
**Post date:** [August 1, 2023, 1:33pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447/4 "2023-08-01T13:33:49Z")

</div>

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

I’m guessing this…

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/a/7a4b064c5f2e30d9078b24f16bc03e6799c845bd.png)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 1, 2023, 2:02pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447/5 "2023-08-01T14:02:19Z")

</div>

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

What are you trying to do exactly?

---

<div class="post-metadata">

**Author:** ![toby2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/toby2/32/99439_2.png) [@toby2](https://forum.bubble.io/u/toby2)\
**Post date:** [August 1, 2023, 7:36pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447/6 "2023-08-01T19:36:19Z")

</div>

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

T

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 1, 2023, 7:48pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447/7 "2023-08-01T19:48:26Z")

</div>

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.).

---

<div class="post-metadata">

**Author:** ![toby2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/toby2/32/99439_2.png) [@toby2](https://forum.bubble.io/u/toby2)\
**Post date:** [August 1, 2023, 8:54pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447/8 "2023-08-01T20:54:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 1, 2023, 10:48pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447/9 "2023-08-01T22:48:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![toby2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/toby2/32/99439_2.png) [@toby2](https://forum.bubble.io/u/toby2)\
**Post date:** [August 4, 2023, 2:42pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447/10 "2023-08-04T14:42:24Z")

</div>

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

T.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [August 4, 2023, 3:32pm UTC](https://forum.bubble.io/t/stripe-card-successfully-charged-callback-webhook/275447/11 "2023-08-04T15:32:10Z")

</div>

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