React-native-iap: verifyReceipt always 21002 IOS

Created on 9 Jan 2021  ·  3Comments  ·  Source: dooboolab/react-native-iap

Version of react-native-iap

5.0.1

Version of react-native

0.63.3

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

IOS

Expected behavior

Normal response from https://sandbox.itunes.apple.com/verifyReceipt

Actual behavior

Response "status": 21002

Tested environment (Emulator? Real Device?)

Emulator

Steps to reproduce the behavior

I try to use validateReceiptIos, but get status: 21002
I tried REST Client, parameters password, and receipt-data, but nothing.

Please help.
Снимок экрана 2021-01-09 в 22 27 34
Снимок экрана 2021-01-09 в 22 25 39

Most helpful comment

If you are using storekit on xcode it won't return valid receipts. I used an actual device and it should work!

All 3 comments

I'm facing this issue too. Can anyone help?

If you are using storekit on xcode it won't return valid receipts. I used an actual device and it should work!

@pockiii thanks, helped.

Was this page helpful?
0 / 5 - 0 ratings