5

We are developing an App with Ionic and cordova-plugin-inapppurchase. We've been struggling more than a week as we get the following error when we try to restore a purchase:

RMStore: unknown product id com.company.appname.myID

{"errorMessage":"Unknown product identifier","errorCode":100}

productId = 'com.company.appname.myID';
Community
  • 1
  • 1
galgo
  • 734
  • 3
  • 17
  • 45
  • So far, this helped: http://stackoverflow.com/questions/30481475/submit-in-app-purchase-for-review-for-first-time – galgo Nov 04 '16 at 09:35
  • 2
    don't you hate when such a great question attracts 0 response? I got the same problem. – Average Joe Jul 19 '17 at 15:48

1 Answers1

3

This post is old, but I was able to fix this problem for myself tonight. Using Ionic v1 with the cordova-plugin-inapppurchase, my solution was to change com.company.appname.myID to just myID (the product id of the in app purchase).

I also had a few other problems causing the same exact error message. The main one was needing to inAppPurchase.getProducts(productIds) before attempting inAppPurchase.buy(productId). Also, make sure you're testing on a real device, with a test account created on iTunes connect, and logged out of any other apple ids on your device (I signed out through the iTunes Store app).

Good luck future readers!

Matt Goodrich
  • 4,875
  • 5
  • 25
  • 38
  • I love it when people answer old questions and especially when they give me multiple solutions. Thanks Matt. I'm sorry the OP isnt here to mark this as correct – Ian Steffy Feb 14 '18 at 10:43
  • 1
    I'm glad I could help Ian! It's no problem - helping others is the whole point. Good luck with your app. – Matt Goodrich Feb 14 '18 at 10:57
  • 1
    @MattGoodrich Thank you! I was struggling with this as well and didn't realize the getProducts call was needed first! – Kupe Nov 12 '19 at 18:00