I’m building an integration, and I’m looking for some advice on handling the members:pledge:delete webhook.
From my tests it seems the event fires immediately when the user cancels their pledge, but the event’s body still contains active currently_entitled_tiers. Is it because the user has paid up to the end of the month, so their membership is still active?
If that’s right, will another webhook trigger at the end of the month when the tier becomes inactive, or is it my responsibility to track and handle the membership expiry date?
If it’s my responsibility, how do I calculate it? Is it just member.next_charge_date?
2 - Yes, it should be tracked. But rather than tracked, checking for the patron status at that point in time already should tell that that patron is no longer a valid patron.
3 - If you need to calculate it, yes, using fields like next charge. If you are locking/showing content to patrons, you can do a live check at that point in time when you need to lock/show a post.