Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purchase Failed, invalid product ID, but it is 100% correct #177

Closed
mrmasterwill opened this issue Apr 3, 2017 · 8 comments
Closed

Purchase Failed, invalid product ID, but it is 100% correct #177

mrmasterwill opened this issue Apr 3, 2017 · 8 comments

Comments

@mrmasterwill
Copy link

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?

@mrmasterwill
Copy link
Author

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

@vaibhav-varshaaweblabs
Copy link

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

@bizz84
Copy link
Owner

bizz84 commented Apr 19, 2017

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

@bizz84
Copy link
Owner

bizz84 commented Apr 24, 2017

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

@bizz84 bizz84 closed this as completed Apr 24, 2017
@DADOFKILL123
Copy link

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

@AdieOlami
Copy link

Hi please if you got it working kindly assist with my issue #412 @DADOFKILL123

@soenkegissel
Copy link

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

@VictorZhang2014
Copy link

The problem was solved by App Store Connect itself. It was a new app submitted to App Store, after approved, there was only one non-renewal consumable item could work.
Originally, the app has 6 items with non-renewal consumable plan. After it approved, I thought my code was wrong somewhere, but 8 hours later, all 6 items could work, and the process of In-App Purchases was running well. I guess this is the time in force without doubtlessly.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants