Swiftystorekit: Purchase Failed, invalid product ID, but it is 100% correct

Created on 3 Apr 2017  路  7Comments  路  Source: bizz84/SwiftyStoreKit

Platform

  • iOS

In app purchase type

  • Non-consumable

Environment

  • Sandbox

Version

Most current

Report

Issue summary

When I press on my button to buy the nonrenewable it says that "Purchase Failed", "The purchase identifier was invalid" and in the debugger it tells me the same and prints out my product ID. Yet the product ID is totally correct.

Please help, am I doing something stupid?

duplicate

Most helpful comment

Just as a reminder to complete the 'Agreements, Tax and Banking' in iTunes connect first.
That was the problem for me.
image

All 7 comments

I've now directly copied the demo code in and obviously changed code where necessary and I still get the exact same error

@mrmasterwill Same here
My Non Consumable product is always listed under Invalid Product ID's

Please see #154. This has been discussed in detail there.

If this is still a problem please continue the discussion on #154. Closing as duplicate for now.

Hello, I was in the same situation as you guys, the solution for me was simple : The productID is not "BundleID.iAPProductID" but is simply "ProductID". Assuming that you have the correct app-secret , bundler identifier and iAP correctly configured in both developer portal and xcode , you should be able to test in sandbox environment before submitting to the appStore

Hi please if you got it working kindly assist with my issue https://github.com/bizz84/SwiftyStoreKit/issues/412 @DADOFKILL123

Just as a reminder to complete the 'Agreements, Tax and Banking' in iTunes connect first.
That was the problem for me.
image

Was this page helpful?
0 / 5 - 0 ratings