React-native-iap: Wanted to know that on testflight the receipt is sent to the test server or the production server to be validated?

Created on 26 Apr 2019  ·  3Comments  ·  Source: dooboolab/react-native-iap

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

📱 iOS 🙏 help wanted

Most helpful comment

@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.

All 3 comments

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?

@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.

@bethshook simple and do the job, thanks !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jvandenaardweg picture jvandenaardweg  ·  4Comments

MacMillan13 picture MacMillan13  ·  3Comments

coldfins picture coldfins  ·  3Comments

makarsky picture makarsky  ·  3Comments

Gribadze picture Gribadze  ·  4Comments