Cancel subscription stripe with update true/false user

Create an external collection of your stripe subscriptions. (Stripe API reference – List subscriptions – curl)

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.

Then, link to a subscription detail screen where you can delete the subscription with a “delete” action.