robotmedia / RMStore

A lightweight iOS library for In-App Purchases
Apache License 2.0
2.43k stars 450 forks source link

RMStore: invalid product with id myID #181

Open tienbao opened 8 years ago

tienbao commented 8 years ago

I call

requestProducts:[NSSet setWithObject:@"myId"]

and crash with log "RMStore: invalid product with id myId" Please help me, thanks so much.

zhangqinghe commented 8 years ago

Please check your "myId" in iTunes connect exit

dcvz commented 8 years ago

I'm getting the same issue with valid id's did something change?

vernondegoede commented 7 years ago

I'm having the same issue. Could this be related to https://github.com/AlexDisler/cordova-plugin-inapppurchase/issues/76? This plugin uses RMStore as a dependency.

galcivar commented 7 years ago

I have the same issue, tried with Apple's Support and Forum and nothing: Apple Suport Forums Also tried with Stack Overflow and nothing: iOS IAP cordova-plugin-inapppurchase iOS In-app purchase nightmare

galcivar commented 7 years ago

Did anybody figure this out?

mehulparmar4ever commented 7 years ago

I have same issue, anyone know how to resolve this?

galcivar commented 7 years ago

From Apple Support:

Nov 22 19:29:57 Gabriels-iPhone itunesstored(iTunesStore)[102] : ISStoreURLOperation: Making POST request, with service type: 0, for URL: https://sandbox.itunes.apple.com/WebObjects/MZFinance.woa/wa/inAppCheckDownloadQueue

This log statement tells me that the code is calling the addTransactionObserver method.

Like you’ve I’ve verified that the fetchSfotwareAddOns call is not present in the log.

So at this point, the question - why is the call not happening. Does your code make the SKProductsRequest call, or is this supposed to happen in the RMStore framework. I suspect that the call must be made in the framework. Do you have the source to the framework - if so, what triggers the log statement

If you don’t have the sources, I think your next step is to contact the RMStore development team for an explanation.

@hpique ?

stoconnor commented 7 years ago

Any updates on this issue? Facing this problem now with my app. Is there an alternative plugin to get IAP for iOS?

galcivar commented 7 years ago

@stoconnor nothing on my side, released the app without IAP until further notice.

stoconnor commented 7 years ago

I've fixed this problem, it's not an issue with RMStore. I added additional logging to RMStore.m and realized the product list is empty, so nothing to do with product identifiers.

You need to have a 'Paid Applications' contract in iTunes Connect for your Paid products to appear. To do this go to your iTunes Connect homepage and select 'Agreements, Tax, and Banking'. Fill out your Contact, Bank and Tax info. Submit the form and wait 15 minutes for contract to process.

A good way to test is to add a free consumable product, this does not need a 'Paid Applications' contract.