Open waltermvp opened 3 years ago
I always get an empty array when calling getPurchaseData with a validated receipt. I am using a sandbox account + actual device for testing.
getPurchaseData
iap .setup() .then(() => { iap .validate(receipt) .then(validatedData => { if (iap.isValidated(validatedData)) { var options = { ignoreCanceled: true, ignoreExpired: true, }; var purchaseData = iap.getPurchaseData(validatedData, options); //ALWAYS RETURNS [] resolve(purchaseData); } else { console.log("false"); } }) .catch(error => { resolve(error); });
I have the same issue for iOS.
I always get an empty array when calling
getPurchaseData
with a validated receipt. I am using a sandbox account + actual device for testing.