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

validateReceipt never returns #20

Open
itinance opened this issue Apr 23, 2018 · 1 comment
Open

validateReceipt never returns #20

itinance opened this issue Apr 23, 2018 · 1 comment

Comments

@itinance
Copy link
Contributor

For us it turns out that validateReceipt() from the README-example will never return.

This is our code:

import iapReceiptValidator from 'iap-receipt-validator';
const validateReceipt = iapReceiptValidator(password, production);
async function validate(receiptData) {
    try {
        console.log("Validate P1")
        const validationData = await validateReceipt(receiptData);
        console.log("Validate P2")

        console.log("Validation P3 Data", validationData)

        return validationData;
    } catch(err) {
        console.log(err.valid, err.error, err.message)
    }
}

We call this method like this:

const validationData = await validate(receiptData);

But it will never return. In the console-log we see "Validate P1", but "Validate P2" will never appear.

Have we missed something or has something big changed?

@akshetpandey
Copy link

Itunes servers were having some issues, is it still not working for you?

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