Stripe Subscription Question - How do i add this to my app?

I have an app that i need to have a subscription. I understand how to set up, but how do i check if the stripe subscription for a user is active? How do i ensure Adalo knows this and keeps them subscribed? How do I allow them to cancel?

You use stripe webhooks to watch events and then you can make call to Adalo API to update your user, using integromat or zapier etc

How do I check if a payment was made or good? Lets say a customers card is expires and the payment doesnt go through, how would adalo be updated?