How to create a custom subscription cancellation flow without Stripe checkout when using Memberstack and Zapier?

Post author
Robert Navaille

I want to create my own subscription cancellation flow that does not pass through the stripe checkout page. I am using Zapier to handle my automations but it seems like Zapier does not have sufficient permission to cancel a subscription created by Memberstack (I did experiment with generating one-off subscriptions directly in stripe which I was able to cancel using zapier).

Does anyone have any ideas about how I can give Zapier the correct permissions or allow it to cancel Memberstack generated subscriptions?

Comments

3 comments

  • Comment author
    A J

    Hey Robert Navaille, have you tested cancelling the subscription via stripe module in Zapier? i.e. search for the stripe customer via member email / ID and cancel the subscription accordingly using stripe module. If you have tested this, does it show any error?

    0
  • Comment author
    Robert Navaille

    Ahhh I was able to get this to work after months of struggling, thank you for the idea! I ended up using Zapier webhooks (thanks chat gpt).

    Thank you you so much

    Here's how I did it in case anyone wants to give it a try

    Step 1: Add a Webhook by Zapier Action

    1. Action Event: In your Zap, add a new step with the app Webhooks by Zapier.
    2. Event Type: Select Custom Request as the action.

    Step 2: Configure the Webhook

    1. Method: Set the method to DELETE. Stripe uses DELETE to cancel subscriptions.
    2. URL: Use the following
      URL:https://api.stripe.com/v1/subscriptions/{{SubscriptionID}}
      - Replace {{SubscriptionID}} with the dynamic field from the previous Zap step that provides the subscription ID (e.g., {{StepName.Subscription ID}}).
    3. Headers:
      Add the following header to authenticate with Stripe:
    • Key: Authorization
    • Value: Bearer sk_test_YOUR_SECRET_KEY
    • Replace sk_test_YOUR_SECRET_KEY with your actual Stripe secret API key.

         4. Data Pass-Through:

    • Select No.
      You don’t need to include additional data for this action unless you’re customizing the cancellation.

         5. Request Body:
             Leave this empty since the DELETE request doesn’t require a body.

         6. Unflatten:

    • Set Unflatten to No.
    0
  • Comment author
    Euan Causer

    Hi Robert

    Thank you so much for posting your work around. I'm trying to do similar at the moment and set up a 6 month minimum payment term to subscription sign up. I will try this out.

    It was a little disappointing that memberstack hadn't brought minimum terms into the equation. I spoke to Stripe and they said it's easy to do in Stripe and possible for Memberstack to do. Hopefully they add it on going forward.

    0

Please sign in to leave a comment.