My app is determining valid membership if a patron’s pledge is “valid”. I have a case where a patron signed up for a year long subscription, cancelled the subscription, but still has remaining time left until expiration, however they are not getting excess to the app, which tells me their pledge status is not valid. The Patreon dashboard shows this user’s subscription as still active, shouldn’t that also mean the pledge status coming from the API is valid? I’m still trying to determine exactly what their pledge status is so I can follow up if I can get that info. Thanks!
Depends on how you check for the pledge status. The patron cancels a pledge, the pledge is gone. But the payment exists. Check for currently_entitled_amount_cents or currently_entitled_tiers.
Thanks for the response. I’ve been using https://www.patreon.com/api/oauth2/api/current_user?fields[pledge]=status and have recently switched to /v2/identity?include=memberships to get the patron_status and check for active_patron. I can’t yet confirm if this solves my issue, but should patron_status match what the Patreon dashboard shows for a user’s active status?
Yes it should. A better way to check for entitlement would be checking currently_entitled_amount_cents and currently_entitled_tiers.