Question

Getting the linkedPurchaseToken returned by the google play store

  • 20 February 2024
  • 1 reply
  • 36 views

Badge +4

Hi,

We wanted to use Google’s cancel subscription API and need the token (linkedPurchaseToken) for the same.

Our Android app makes purchases as per this documentation.

Checked the payload that of the request that is made when a purchase event happens but don’t see it there. 

Is there any way we can get linkedPurchaseToken when a purchase is made?

 

Thanks


This post has been closed for comments

1 reply

Userlevel 4
Badge +8

Hi, you cannot get this value via RevenueCat’s SDK. You’ll need to get this using Google’s API. That being said, we actually have implemented Google’s cancel subscription API here where you just need the RevenueCat app user id and then the store transaction id: https://www.revenuecat.com/docs/api-v1#tag/transactions/operation/cancel-a-google-subscription