React-native-iap: Invalid Product ID error on IOS

Created on 16 Jul 2018  ·  6Comments  ·  Source: dooboolab/react-native-iap

Version of react-native-iap

"react-native-iap": "^0.3.24",

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

IOS

Expected behavior

buying a product

Actual behavior

returns always invalid product Id error.

Tested environment (Emulator? Real Device?)

Emulator.

Steps to reproduce the behavior

I added my first in app purchase feature and i waited for a week but it always returns Invalid Product Id error.

screen shot 2018-07-16 at 20 41 58
screen shot 2018-07-16 at 20 43 19

Most helpful comment

I sill have this issue. Can receive consumable products and subscriptions without any problems. Even buying subscriptions is working pretty well. Only the RNIap.buyProduct('any sku even the ones from .getProducts()'); result in:

IAP: Error Error: Invalid product ID.
    at createErrorFromErrorData (NativeModules.js:123)
    at NativeModules.js:80
    at MessageQueue.__invokeCallback (MessageQueue.js:400)
    at MessageQueue.js:139
    at MessageQueue.__guardSafe (MessageQueue.js:316)
    at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:138)
    at t (RNDebuggerWorker.js:1)

Do you have any idea? Have no pending contracts, the in app purchases are "Ready to submit" and I am using a working sandbox account.

All 6 comments

@ilysorc That is expected behavior. You can't test the actual purchase in the simulator. Also refer to medium, your iap status should be Ready to submit.

@dooboolab thank for your reply. i checked medium now. first step says "You need to complete the Payments and Financial Reports" but i clicked this menu i only see reports. How can i configure these steps?
screen shot 2018-07-17 at 21 34 15

Oops. I meant you need to complete the Agreements, Tax and Banking. Sorry for that.

@dooboolab thank you. that is fixed problem.

I guess the issue was resolved. I am closing this issue.

I sill have this issue. Can receive consumable products and subscriptions without any problems. Even buying subscriptions is working pretty well. Only the RNIap.buyProduct('any sku even the ones from .getProducts()'); result in:

IAP: Error Error: Invalid product ID.
    at createErrorFromErrorData (NativeModules.js:123)
    at NativeModules.js:80
    at MessageQueue.__invokeCallback (MessageQueue.js:400)
    at MessageQueue.js:139
    at MessageQueue.__guardSafe (MessageQueue.js:316)
    at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:138)
    at t (RNDebuggerWorker.js:1)

Do you have any idea? Have no pending contracts, the in app purchases are "Ready to submit" and I am using a working sandbox account.

Was this page helpful?
0 / 5 - 0 ratings