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

InAppUtils.receiptData returns base64 string thats Malformed #187

Open
yashyadav opened this issue Jul 30, 2018 · 1 comment
Open

InAppUtils.receiptData returns base64 string thats Malformed #187

yashyadav opened this issue Jul 30, 2018 · 1 comment

Comments

@yashyadav
Copy link

After a successful payment in sandbox env for auto renewable subscription, I am trying to get receipt data that I can use to validate the transaction. The string returned gives me malformed error when I try to validate it using iap-receipt-validator and it can't be decoded either. I looked at some sample base64 strings provided by apple which were properly being decoded. Here is the code I used:

InAppUtils.loadProducts(products, (error, products) => {
      InAppUtils.receiptData((error, receiptData)=> {
        //this.validate(receiptData);
        console.log(receiptData)
      });
    });

Is anyone else experiencing the same problem?

@mrcwerfar
Copy link

yes, calling InAppUtils.receiptData((error, receiptData)=> ... give undefined for receiptData, any solutions?

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