# Retrieve charge success from stripe

**URL:** <https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166>\
**Category:** APIs\
**Created:** [January 1, 2017, 1:30pm UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166 "2017-01-01T13:30:35Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisschrade](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chrisschrade/32/241480_2.png) [@chrisschrade](https://forum.bubble.io/u/chrisschrade)\
**Post date:** [January 1, 2017, 1:30pm UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/1 "2017-01-01T13:30:35Z")

</div>

Wondering if there is an easier way that I am missing…

I charge a customer in stripe, stripe says the order is successful…but I need to retrieve some kind of confirmation that this is done in order to create workflows based off success or failure of the charge.

I set up a webhook in stripe based off charge.succeded - I thought once this condition was true then the app would navigate would navigate to the endpoint URL…wrong.

I downloaded the bubble API connector…I assume I have to set up a API call through this, which I execute in a workflow (perhaps the same workflow where I “Charge the current user” or “Subscribe current user to plan”) which calls Stripe and retrieves the info I’m looking for?

Am I on the right track? Is there an easier way? Any insight would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![muradamod](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/muradamod/32/2407_2.png) [@muradamod](https://forum.bubble.io/u/muradamod)\
**Post date:** [January 1, 2017, 11:06pm UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/2 "2017-01-01T23:06:57Z")

</div>

Not sure if this will help but you could try triggering a custom event after the “charge the current user”.

---

<div class="post-metadata">

**Author:** ![chrisschrade](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chrisschrade/32/241480_2.png) [@chrisschrade](https://forum.bubble.io/u/chrisschrade)\
**Post date:** [January 2, 2017, 12:27pm UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/3 "2017-01-02T12:27:29Z")

</div>

Hi @muradamod - I could virtually do anything in the workflow after “charge the current user” - but I need something from Stripe to trigger the next part of my App.

For instance - IF charge succeeds then navigate to page A - IF charge fails then navigate to page B.

You see, I need that commmand from Stripe before I can make the next move.

---

<div class="post-metadata">

**Author:** ![muradamod](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/muradamod/32/2407_2.png) [@muradamod](https://forum.bubble.io/u/muradamod)\
**Post date:** [January 2, 2017, 5:49pm UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/4 "2017-01-02T17:49:53Z")

</div>

If the charge fails nothing after the ‘‘charge the current user’’ runs.

You could create sometime of data (example ‘‘set state’’) before and after the ‘‘charge the current user’’ and if the second data is not created then you will know that the charge failed.

---

<div class="post-metadata">

**Author:** ![mishav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mishav/32/6420_2.png) [@mishav](https://forum.bubble.io/u/mishav)\
**Post date:** [January 2, 2017, 11:29pm UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/5 "2017-01-02T23:29:30Z")

</div>

> [@muradamod](#):
>
> If the charge fails nothing after the ‘‘charge the current user’’ runs.

This is correct for the Stripe plugin, but it looks like @chrisschrade is using the API connector, so needs to rely on the response from the stripe API.

---

<div class="post-metadata">

**Author:** ![chrisschrade](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chrisschrade/32/241480_2.png) [@chrisschrade](https://forum.bubble.io/u/chrisschrade)\
**Post date:** [January 3, 2017, 1:49am UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/6 "2017-01-03T01:49:57Z")

</div>

I only got the API connector because I thought that is what I needed to get this confirmation back of a successful charge. Would rather be able to do everything from the plugin.

Doesn’t there still need to be a trigger to change the state? @muradamod - are you saying that nothing will happen if the charge is declined, therefore I need to change the state based on something timing out perhaps?

I don’t see any conditions in Bubbles options of the stripe plugin that would allow me to go on with subsequent workflows after a success or decline of a card.

---

<div class="post-metadata">

**Author:** ![mishav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mishav/32/6420_2.png) [@mishav](https://forum.bubble.io/u/mishav)\
**Post date:** [January 3, 2017, 11:06am UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/7 "2017-01-03T11:06:02Z")

</div>

From the reference:

> **[Introduction](https://manual.bubble.io/)**
>
> Welcome to the Bubble Docs.

> The response from Stripe (Stripe charge ID, amount, confirmation, etc.) can be accessed in the subsequent actions as ‘Result of previous step’. In case of a failed transaction, the workflow will stop running.

So workflow actions can be something like this for success:  
 ![](https://us1.discourse-cdn.com/bubble/original/2X/9/93c9e4efa4c42616961266189f00f1754374dc5c.png)

And this for failure:  
 ![](https://us1.discourse-cdn.com/bubble/original/2X/b/b51689aedd633b127c6073fafcc6423414e560ac.png)

---

<div class="post-metadata">

**Author:** ![chrisschrade](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chrisschrade/32/241480_2.png) [@chrisschrade](https://forum.bubble.io/u/chrisschrade)\
**Post date:** [January 3, 2017, 1:55pm UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/8 "2017-01-03T13:55:51Z")

</div>

@mishav - This makes sense and looks good, thank you. Will try this in the next day or 2 and reply back.

Thank you again.

---

<div class="post-metadata">

**Author:** ![chrisschrade](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chrisschrade/32/241480_2.png) [@chrisschrade](https://forum.bubble.io/u/chrisschrade)\
**Post date:** [January 4, 2017, 3:34am UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/9 "2017-01-04T03:34:34Z")

</div>

That did the trick…thank you @mishav and @muradamod for the help!

---

<div class="post-metadata">

**Author:** ![faisalkarimstubapp](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@faisalkarimstubapp](https://forum.bubble.io/u/faisalkarimstubapp)\
**Post date:** [February 24, 2020, 5:14pm UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/10 "2020-02-24T17:14:42Z")

</div>

Hi mishav,

I have encountered a little bit of problem when I am using Stripe’s Subscribe a user to a plan. I am using Bubble Stripe plugin.

I can’t retrieve the paid amount as the result of the subscription step (refer image). Can you help me out?

 ![Screenshot 2020-02-25 at 1.27.23 AM](https://us1.discourse-cdn.com/bubble/original/3X/4/2/425ba0b1ee3419cd0edc98b267a68bad0c12f5f2.png)

---

<div class="post-metadata">

**Author:** ![mishav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mishav/32/6420_2.png) [@mishav](https://forum.bubble.io/u/mishav)\
**Post date:** [February 25, 2020, 11:48am UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/11 "2020-02-25T11:48:57Z")

</div>

> [@faisalkarimstubapp](#):
>
> retrieve the paid amount as the result of the subscription step

Hi @faisalkarimstubapp

If you pick Items, each item should have its amount. A subscription is a potentially complex object to navigate, good luck!

---

<div class="post-metadata">

**Author:** ![faisalkarimstubapp](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@faisalkarimstubapp](https://forum.bubble.io/u/faisalkarimstubapp)\
**Post date:** [February 25, 2020, 12:39pm UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/12 "2020-02-25T12:39:11Z")

</div>

I’ve tried all but with no luck. Thank you for your reply though.

---

<div class="post-metadata">

**Author:** ![mishav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mishav/32/6420_2.png) [@mishav](https://forum.bubble.io/u/mishav)\
**Post date:** [February 25, 2020, 1:20pm UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/13 "2020-02-25T13:20:48Z")

</div>

If you’re not getting what you need from the response, you could make the call using the API connector instead.

---

<div class="post-metadata">

**Author:** ![faisalkarimstubapp](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@faisalkarimstubapp](https://forum.bubble.io/u/faisalkarimstubapp)\
**Post date:** [February 25, 2020, 1:33pm UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/14 "2020-02-25T13:33:15Z")

</div>

That is something that I haven’t mastered and dive into ( I am not from developer background).

Meaning i create API using Bubble API Connector, and call Stripe API?

---

<div class="post-metadata">

**Author:** ![loh.cher.e](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@loh.cher.e](https://forum.bubble.io/u/loh.cher.e)\
**Post date:** [February 26, 2020, 5:19am UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/15 "2020-02-26T05:19:56Z")

</div>

yup correct.

---

<div class="post-metadata">

**Author:** ![faisalkarimstubapp](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@faisalkarimstubapp](https://forum.bubble.io/u/faisalkarimstubapp)\
**Post date:** [February 27, 2020, 8:30am UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/16 "2020-02-27T08:30:04Z")

</div>

Thank you @loh.cher.e . I will study the method. Might take a while though, or hire people can that do that for me while I learn.

---

<div class="post-metadata">

**Author:** ![ryanck](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@ryanck](https://forum.bubble.io/u/ryanck)\
**Post date:** [April 20, 2020, 10:06am UTC](https://forum.bubble.io/t/retrieve-charge-success-from-stripe/9166/17 "2020-04-20T10:06:13Z")

</div>

Hello,

How can you retrieve the success from Stripe on subscription based.

First time you can retrieve the success but what about the next times the user gets charged?

How do you get a notification or event so you can create for example an invoice after the user has been charged on a monthly bases only when user got charged his subscription?

Thanks a lot.
