Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Missing PurchaseToken in AdaptyProfile #114

Open
Aximem opened this issue Mar 18, 2024 · 0 comments
Open

Android Missing PurchaseToken in AdaptyProfile #114

Aximem opened this issue Mar 18, 2024 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@Aximem
Copy link

Aximem commented Mar 18, 2024

Description

For Android, In onPurchaseCompleted and AdaptyProfile there is no field purchaseToken.
We want to keep Google server notifications webhook on our side but we need this field to perform Google API call on purchases.subscriptions.get

This is what AdaptyProfile looks like on a "sandbox" subscription:

{
  "accessLevels": {
    "premium": {
      "activatedAt": "2024-03-18T08:02:26.000Z",
      "expiresAt": "2024-03-18T09:02:24.000Z",
      "id": "premium",
      "isActive": true,
      "isInGracePeriod": false,
      "isLifetime": false,
      "isRefund": false,
      "renewedAt": "2024-03-18T08:32:24.000Z",
      "store": "play_store",
      "vendorProductId": "XX",
      "willRenew": true,
      "android": {}
    }
  },
  "segmentHash": "not implemented",
  "customAttributes": {},
  "nonSubscriptions": {},
  "profileId": "767c2a48-a906-416d-ae85-44056a709466",
  "subscriptions": {
    "XX": {
      "isActive": true,
      "isLifetime": false,
      "vendorProductId": "XX",
      "store": "play_store",
      "vendorTransactionId": "GPA.XX",
      "vendorOriginalTransactionId": "GPA.XX",
      "activatedAt": "2024-03-18T08:02:26.000Z",
      "willRenew": true,
      "isInGracePeriod": false,
      "isRefund": false,
      "isSandbox": true,
      "renewedAt": "2024-03-18T08:32:24.000Z",
      "expiresAt": "2024-03-18T09:02:24.000Z"
    }
  }
}

For iOS it's OK since we only need transactionId.

How can I retrieve the purchaseToken from Adapty ? I couldn't find a way to.

System info

No response

@Aximem Aximem added the question Further information is requested label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants