Stripe Subscription cancel with API

Does anyone have a step-by-step solution for being able to cancel a Stripe Subscription with the API. The component does not have this function.

The key is storing the subscription ID in the user table. Not easily achieved but it is possible.

If you get familiar with Stripe documentation then make a Custom Action to carry out the API call referencing the subscription ID.