-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
validateReceiptIos() not working #2432
Comments
I was also facing the issue earlier but it was solved by making some changes to the way I was passing the parameter to the validateReceiptIos. before I was passing it as "RNIap.validateReceiptIos(receiptBody, true)". but now I have made the changes and called it like this "RNIap.validateReceiptIos({receiptBody: receiptBody, isTest: true})" and It started working properly . |
i think one of the reasons this issue is rising is because the docs are not giving the right suggestions.
|
Hi @hotaryuzaki can, i add the below code for Production in react-native iOS ? const verify = async purchase => { Please Help |
Description
I am trying to validate an iOS receipt on the device. I am following along what is written in the documentation here: https://react-native-iap.dooboolab.com/docs/guides/receipts. This should be pretty straigh forward. What I am actually getting as a response is a
{"status": 21002}
. When I validate the receipt with another library (https://github.com/sibelius/iap-receipt-validator) I am able to validate the receipt. I wonder why it is not working with react-native-iap.Expected Behavior
A validated receipt from Apple.
Screenshots
Environment:
To Reproduce
This does not work
This on the contrary works
The text was updated successfully, but these errors were encountered: