I have been looking for several days to find a way for the user to cancel his subscription with Stripe on Adalo by updating his true/false “subscription” status on the user table.
I tried several manipulations with zapier and custome action but without success.
If anyone could help me by putting a screenshot maxmium on his solution.
Add a parameter to your user collection called “Stripe Customer ID”
When a user creates a payment, add a custom action to grab the user’s stripe customer ID. Use the list all customers API and query by the logged-in user email. Update the user’s stripe customer ID with that value that’s returned from the API call.
Add a list of subscriptions and query the list by the logged-in user stripe customer ID.
thank you for these valuable tips but I do not understand how the delete “current stripe subscription” queries the Stripe database by canceling its subscription.
I guess you have to use custom actions and Zapier?
No, you do not need zapier. I just showed you how to do it step by step.
Did you create an external collection of stripe subscriptions?
Did you link the stripe customer ID to the user?
Did you add a list of subscriptions?
Did you filter the subscriptions list?
Thanks very much ! It’s good ! We are progressing step by step!
But I can’t follow through. I don’t know used custom actions and following your instructions.
When a user creates a payment, add a custom action to grab the user’s stripe customer ID. Use the list all customers API 1 and query by the logged-in user email. Update the user’s stripe customer ID with that value that’s returned from the API call.
Normally, after I understood the rest. Can you show me screenshots of your app please.
it’s good, everything works !!! Thank you very much !
In fact at the end I had a bug where I sometimes have to write Bearer like that or BEARER like that in my custom action and external collection. that’s why the custom action and the update didn’t work.
Anyway, thank you very much for your time and patience. Your help will be able to help me for the rest of the things!!
Without this function, my app could never see the light of day