voltrue2 / in-app-purchase

A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows.
http://iap.gracenode.org
Other
1.05k stars 289 forks source link

No expirationDate in validated subscription? #358

Closed pierroo closed 1 year ago

pierroo commented 1 year ago

Following the doc, I call from the server:

const validationResponse = await iap.validate(receipt)

=> everything works smoothly for that, however I have absolutely zero information about the end of the subscription? I don't know if user took the 1 month or 1 year subscription from the validated response, since they are both under the same productId

Even when I immediately call getPurchaseData right after with the validationResponde, the result also does not contain any info about expiration date.

Help? Google, test mode

pierroo commented 1 year ago

FIXED: I needed to follow the steps under "Google In-app-Billing Set Up"