Stripe - how to show status in Bubble?

I have a Webhook enabled in Stripe for customer.source.expiring so that Stripe can update my Bubble app when one of my customers has a credit/debit card that is set to expire at the end of the month.

Does anyone know how to display a message when this occurs? I don’t see the option to refer to customer.source.expiring in the dropdown? Also, where do these dropdown options come from, I’m assuming they are automatically installed with the Stripe plugin…

They are the values that are generated from calls that have been implemented into the Stripe plugin.

Your webhook should have the data sent through…if you’ve set it up in the backend you should have the detect request data giving you a list of values and one of those should be the status. From that detect request data you likely get the customer id as well and then you’ll need to match it to the right user in your DB.

1 Like

Thanks @boston85719.

I’ve created a field in the User datatype called “Stripe Subscription End” and in Bubble’s backend workflows I have a new API Workflow called “subscription_end”. When I try and Request Data from Stripe I am seeing Request Data is not in. I was expecting to see a long list of Stripe plugin options to choose from?

Also, I have set up a Webhook for when a users card is expiring soon, Stripe is listening for customer.source.expiring. I’ve created a field in the User datatype called “Stripe Card Expiring” and now I want to show a Text group when the card is expiring, but what do I choose from the dropdown below? How does Stripe know that the DB field “Stripe Card Expiring” means customer.source.expiring?

3

I know that Stripe can send out emails to users who’s card has failed/expiring but I want to also show a message in my apps dashboard.

check what values come back from Stripe Card Expiring and then you’ll have an idea of how to work with those values…might be a date, might be a text as a ‘status’…I’m not 100% sure what type of data that is.

Good idea. I want to force a test credit card to expire but I am finding this difficult. I have written to Stripe for help.

One thing Stripe said was that they will send a customer.subscription.updated event when a user/customer unsubscribes to their current subscription assuming that you set “Cancel at the end of billing period” on your settings.

Any chance you can translate that into ‘dummy speak’ for me? I mean, where do they send it? Do I need a webhook to “get it”. Where do I set “Cancel at the end of billing period” ?

As you can see, I just don’t understand the basic concept and need an overview. Help appreciated!

Google search for Stripe test cards…I don’t have the link saved…they have all sorts of test cards available for different purposes and one I think is for an about to expire.

Feel free to check out my course on Stripe API

Thank you I will take a look.

Did you successfully set up a webhook for this event in Bubble? If so, how did intialize the API return values?