I’m trying to work out the SCA checkout with Bubble’s Plugin. Functionality seems fine. I’m having trouble storing the customer_id in order for me to update the customer’s data with Webhooks.
The action to subscribe the user to a plan doesn’t generate a subscription ID. Has anyone here worked this out? If not, I’ll just have to create a custom UI with Stripe.js.
The subscription ID in step 1 seems to be empty. There is an alternative to update the client’s customer_ID by checking with Bubble’s built-in external data from Stripe but it relies on (re)loading the page causing the webhook to fail.
Would be interesting to know how I can attach a newly created Customer to my Current user without having to create a new Customer on Stripe for the initial subscription checkout on SCA hosted payment page.
I think Bubble does this automatically, if you choose “Current User” then it will show the Subscription ID and Customer ID. It’s a little different than the other Stripe Plugins. Does that answer your question?
You might not even need to save it to the User since it’s already accessible to you via Current User.
You can access the Subscription ID or the Customer ID from there:
Oh boy… smart one. It worked. Thanks so much man. Initially doing a search for the user with Bubble’s built in Stripe_ID is a smart one.
Do you happen to know how I can send the Current User’s email to the SCA checkout? On the inital checkout it stays blank. I guess that happens because the current user doesn’t have a stripe_id.
The Stripe documentation refers to a Customer, before checking out the customer doesn’t exist. When I create a Stripe Customer with an action workflow, it doesn’t attach that Customer to my User, resulting in duplicate Customers.
Are you checking if they have a subscription before allowing them to access your site? Or what is the reason? There might be another way of doing this.
I might have some more time tomorrow or later on to troubleshoot with you. I have to prepare for a class I have today at the moment. I will check in again later if you haven’t figured it out yet.