Hi,
I am building a SaaS based CRM and have created a Data Type Subscription but unable to get the workflow right.
While the customer card gets charged in Stripe test mode, the data though captured ( checked from debugger) it doesn’t get propagated/ stored into subscription datatype. What am I doing wrong?
I am struggling for long !
Best, Narayan:)
Hello!
This video is excellent and have also gone through and referred to it. The issue I am facing is because I haven’t added subscription fields in User datatype but seperately . Hence this issue I am facing !
I see.
If you are using the Bubble Stripe plugin you can take advantage of Bubble’s deep integration with Stripe. A subscription status is informed by Bubble and you do not need to monitor this in the dB.
If you do opt to handle this in the dB (…. again … no real need for this due to the above) what may be happening is that Stripe has not yet provided a subscription status back to Bubble so fast since the user just subscribed. Give it a few seconds and do that update then.
To test what I am talking about try subscribing a user and then show in a text element the user’s stripe customer subscription’s subscription id as shown below:
And here the subscription status as well:
The different Stripe subscription statuses are as follows:
Carlos, this is amazing! As text it works !! How do I get the same in db? Thanks so much you made my day
Just save it to the dB with the same expression
… but I insist … why? … Bubble is doing this for you … 
Carlos, the view any details of the subscription I would then need to go to the Stripe dashboard to check details of a subscriber. Hence wanted to store these details in the db
I see.
What I would do is check for the user stripe status using the expression above …. If active or inactive