Skip to main content

PurchaserInfo{
  entitlements: EntitlementInfos{
    all: {
      10People: EntitlementInfo{
        identifier: 10People,
        isActive: false,
        willRenew: false,
        periodType: PeriodType.normal,
        latestPurchaseDate: 2021-11-05T18: 47: 21.000Z,
        originalPurchaseDate: 2021-11-05T18: 47: 21.000Z,
        expirationDate: 2021-11-05T19: 17: 18.000Z,
        store: Store.playStore,
        productIdentifier: 10_annual,
        isSandbox: true,
        unsubscribeDetectedAt: 2021-11-05T19: 07: 07.000Z,
        billingIssueDetectedAt: null
      },
      20People: EntitlementInfo{
        identifier: 20People,
        isActive: true,
        willRenew: true,

        periodType: PeriodType.normal,
        latestPurchaseDate: 2021-11-07T22: 48: 18.000Z,
        originalPurchaseDate: 2021-11-07T22: 16: 23.000Z,
        expirationDate: 2021-11-07T23: 18: 18.000Z,
        store: Store.playStore,
        productIdentifier: 20_annual,
        isSandbox: true,
        unsubscribeDetectedAt: null,
        billingIssueDetectedAt: null
      },
      50People: EntitlementInfo{
        identifier: 50People,
        isActive: true,
        willRenew: true,

        periodType: PeriodType.normal,
        latestPurchaseDate: 2021-11-07T23: 08: 49.000Z,
        originalPurchaseDate: 2021-11-07T23: 08: 49.000Z,
        expirationDate: 2021-11-07T23: 40: 43.000Z,
        store: Store.playStore,
        productIdentifier: 50_annual,
        isSandbox: true,
        unsubscribeDetectedAt: null,
        billingIssueDetectedAt: null
      }
    },
    active: {
      20People: EntitlementInfo{
        identifier: 20People,
        isActive: true,
        willRenew: true,
        periodType: PeriodType.normal,
        latestPurchaseDate: 2021-11-07T22: 48: 18.000Z,
        originalPurchaseDate: 2021-11-07T22: 16: 23.000Z,
        expirationDate: 2021-11-07T23: 18: 18.000Z,
        store: Store.playStore,
        productIdentifier: 20_annual,
        isSandbox: true,
        unsubscribeDetectedAt: null,
        billingIssueDetectedAt: null
      },
      50People: EntitlementInfo{
        identifier: 50People,
        isActive: true,
        willRenew: true,
        periodType: PeriodType.normal,
        latestPurchaseDate: 2021-11-07T23: 08: 49.000Z,
        originalPurchaseDate: 2021-11-07T23: 08: 49.000Z,
        expirationDate: 2021-11-07T23: 40: 43.000Z,
        store: Store.playStore,
        productIdentifier: 50_annual,
        isSandbox: true,
        unsubscribeDetectedAt: null,
        billingIssueDetectedAt: null
      }
    }
  },
  latestExpirationDate: 2021-11-07T23: 40: 43.000Z,
  allExpirationDates: {
    10_Annual: 2021-11-04T11: 28: 46.000Z,
    20_Annual: 2021-11-06T07: 57: 53.000Z,
    50_Annual: 2021-11-05T07: 36: 02.000Z,
    10_annual: 2021-11-05T19: 17: 18.000Z,
    50_annual: 2021-11-07T23: 40: 43.000Z,
    20_annual: 2021-11-07T23: 18: 18.000Z
  },
  allPurchaseDates: {
    10_Annual: 2021-11-04T10: 28: 46.000Z,
    20_Annual: 2021-11-06T06: 57: 53.000Z,
    50_Annual: 2021-11-05T06: 36: 02.000Z,
    10_annual: 2021-11-05T18: 47: 21.000Z,
    50_annual: 2021-11-07T23: 08: 49.000Z,
    20_annual: 2021-11-07T22: 48: 18.000Z
  },
  activeSubscriptions: -
    50_annual,
    20_annual
  ],
  allPurchasedProductIdentifiers: l
    10_Annual,
    20_Annual,
    50_Annual,
    10_annual,
    50_annual,
    20_annual
  ],
  firstSeen: 2021-10-06T13: 57: 26.000Z,
  originalAppUserId: LFVq5sxz1,
  requestDate: 2021-11-07T23: 08: 54.000Z,
  originalApplicationVersion: null,
  originalPurchaseDate: 2013-08-01T07: 00: 00.000Z,
  managementURL: https: //play.google.com/store/account/subscriptions,
  nonSubscriptionTransactions: t
    
  ]
}

 

I upgraded from 20 People to 50 People, but then I see two active subscriptions! How can I know which is the latest valid subscription?

Found the answer. I was not passing the upgradeInfo object to the purchase function. Once I tried this it worked seamlessly on Android.  


Reply