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

Wanted to know that on testflight the receipt is sent to the test server or the production server to be validated? #468

Closed
HamzaIkram2727 opened this issue Apr 26, 2019 · 3 comments
Labels
🙏 help wanted Extra attention is needed 📱 iOS Related to iOS

Comments

@HamzaIkram2727
Copy link

Version of react-native-iap

Version of react-native

0.58.2

Platforms you faced the error (IOS or Android or both?)

Expected behavior

Actual behavior

Tested environment (Emulator? Real Device?)

Steps to reproduce the behavior

@HamzaIkram2727
Copy link
Author

So i am using Rniap for in-app purchases. The thing is everything works well when i am testing on my machine but when I upload the app on testflight and log in as a sandbox tester and invoke receipt validationios I always get status 27001. Any ideas?

@hyochan hyochan added 🙏 help wanted Extra attention is needed 📱 iOS Related to iOS labels Apr 26, 2019
@bethshook
Copy link

@HamzaIkram2727 The way I handle this is that when I validate the iOS receipt, I first assume it's going to the production environment. Then I check the response and if it's 21007, I validate again by sending to sandbox environment.

@martinezguillaume
Copy link

@bethshook simple and do the job, thanks !

@hyochan hyochan closed this as completed Jun 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏 help wanted Extra attention is needed 📱 iOS Related to iOS
Projects
None yet
Development

No branches or pull requests

4 participants