I implemented the stripe plugin for tracking subscriptions status (one plan monthly and one plan yearly) and it does not always work. This is my setup:
In my backend I have an API workflow called “stripesubscription” link to a webhook in stripe “invoice.payment_succeeded”
Then based on that webhook I use the action “create new thing” in a data type called Payments
Then I need to link that data to the correct user. So I use the action “make change to a list of thing”, type “user”, list to change "Search for users"and I use a constraint so it only affect the user who have the same “stripe customer id” than in the webhook.
So first I wonder if it’s a good practice to proceed like that ?
Then I read in another post that sometimes the webhook is triggered before bubble stores the “stripe customer ID” and as a result I would need to run that API workflow in a loop. But I have no idea on how to do that.
So if a senior bubbler with experience on tracking stripe subscriptions status could enlight me it would be much appreciated.