Skip to main content
Solved

INITIAL_PURCHASE event with expiration_at_ms=0


Forum|alt.badge.img+5
  • New Member
  • 1 reply

On one of our apps RevenueCat received the following event for a Play Store transaction:

{
  "app_user_id": "<redacted>",
  "currency": "EUR",
  "entitlement_ids": ["<redacted>"],
  "environment": "PRODUCTION",
  "event_timestamp_ms": 1596557712345,
  "expiration_at_ms": 0,
  "is_family_share": null,
  "period_type": "NORMAL",
  "price": 0,
  "price_in_purchased_currency": 0,
  "product_id": "<redacted>",
  "purchased_at_ms": 1627860712345,
  "store": "PLAY_STORE",
  "takehome_percentage": <redacted>,
  "transaction_id": "GPA.<redacted>"
}

(https://app.revenuecat.com/activity/9a2a29ee/event/32a3c4b0-2fad-464e-9f37-5c0151af98ee)

How can “expiration_at_ms” be zero?

From what I can tell this user had a yearly subscription, opted-out a year ago then enabled it back. Is this a RevenueCat bug?

Best answer by jazmine

Hey @caer :wave:

We have sent this post into our ticketing system, where our Support team will handle your request.

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

3 replies

jazmine
Forum|alt.badge.img+7
  • Dedicated Contributor
  • 122 replies
  • Answer
  • August 6, 2021

Hey @caer :wave:

We have sent this post into our ticketing system, where our Support team will handle your request.


Forum|alt.badge.img+1
  • New Member
  • 2 replies
  • September 5, 2021

@jazmine If it has to handle by support team then what is the use of creating this community if you can’t post the direct answer on the post.

I am also facing the same@caer how did you solve this?


Forum|alt.badge.img+5
  • Author
  • New Member
  • 1 reply
  • September 5, 2021

Their answer :

 

The error comes from the customer receipt from Google. That is causing the expiration date to come back as 0. 

 

Here is the customer receipt : 

 

    {

    "latest_receipts": [

        {

            "is_sandbox": false,

            "last_checked_at": "2021-08-xxxx",

            "last_refresh_reason": "ENDPOINT_SUBSCRIBERS",

            "receipt_fetch_error": "PlayStorePurchaseNoLongerAvailableException('Status = 410, Response = {\\n \"error\": {\\n \"code\": 410,\\n \"message\": \"The subscription purchase is no longer available for query because it has been expired for too long.\",\\n \"errors\": [\\n {\\n \"message\": \"The subscription purchase is no longer available for query because it has been expired for too long.\",\\n \"domain\": \"androidpublisher\",\\n \"reason\": \"subscriptionPurchaseNoLongerAvailable\"\\n }\\n ]\\n }\\n}\\n')",

            ... }

 

Google is returning this because the subscription has been expired for 60 days or more.

Their engineering team may make this a feature request to add more information to the dashboard. 


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