How to handle webhook events when subscription plans auto-renews? Answered

Post author
Anton Khabaiev

Hey, folks, I'm trying to figure out a particular webhook situation, here's my what's going on:

  1. User subscribes to a plan
  2. I receive a webhook member.plan.added with the plan and member data
  3. 30 days pass and plan renews automatically, would I receive the webhook member.plan.added again on the renewal date?

Comments

6 comments

  • Comment author
    Marko Guzvic

    I have a plan you can purchase multiple times, and each time you purchase it the webhook fires and it's set up to member plan added(MAKE module preset). Not sure but I'm guessing it does.

    0
  • Comment author
    Anton Khabaiev

    But what happens when the plan renews? Does the webhook fire again?

    0
  • Comment author
    Raquel Lopez

    You should use member.plan.update to track payment renewals

    https://developers.memberstack.com/docs/dom-front-end-package#member.plan.updated

    0
  • Comment author
    Anton Khabaiev

    Thank you! It's not very clear from the docs, but I will setup my api to handle those now, thanks!

    0
  • Comment author
    Ajithkumar S

    Do anyone has the sample webhook responses for member and plan events ?

    0
  • Comment author
    A J

    You can find sample webhook payload for the various events in Memberstack dashboard --> Dev tools --> Scroll down to the Webhook section to view the event catalog. Hope this helps.

    0

Please sign in to leave a comment.