Skip to main content
Solved

SDK call straight after cancellation webhook still showing entitlement

  • December 21, 2021
  • 1 reply
  • 58 views

Forum|alt.badge.img+4

The current setup we’ve got is:

  1. We receive a webhook from RevenueCat letting us know subscriber info has changed (e.g. setup or cancelled a subscription)
  2. We call the RevenueCat Node SDK to get the up to date entitlements for that specific user
  3. We update our database with this new information

 

We currently have one entitlement. My understanding is that when we get a cancellation webhook request through, when we call out to the RevenueCat SDK, this should return an empty list of null. For some reason, when we call this after cancellation, it’s returning a list containing the entitlement that’s just been cancelled. Can anyone help me to understand why this is happening? This flow seems to work fine for setting up a subscription, but not for cancelling one.

Note: This is testing in Sandbox and this is the case for both EXPIRATION and CANCELLATION events

Best answer by Toby

Problem solved with filtering out the expired entitlements - my bad!

View original
Did this post help you find an answer to your question?
This post has been closed for comments

Forum|alt.badge.img+4
  • Helper
  • December 21, 2021

Problem solved with filtering out the expired entitlements - my bad!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings