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

Empty array returned from purchaseData #330

Open
waltermvp opened this issue Oct 28, 2020 · 1 comment
Open

Empty array returned from purchaseData #330

waltermvp opened this issue Oct 28, 2020 · 1 comment

Comments

@waltermvp
Copy link

waltermvp commented Oct 28, 2020

I always get an empty array when calling getPurchaseData with a validated receipt. I am using a sandbox account + actual device for testing.

    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);
          });
@NLueg
Copy link

NLueg commented Nov 3, 2020

I have the same issue for iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants