Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iphone: in-App Purchase Error

I am developing an application and using in-app purchases in it. i have created in-app products in iTunes Connect. till yesterday everything was working fine. but today. it started giving this error.

"Error: Payment requests are restricted to products returned as valid via Store Kit's didRecieveResponse method."

i have no idea what is the issue. please reply

like image 503
g.revolution Avatar asked Dec 04 '22 11:12

g.revolution


1 Answers

I suddenly started getting this also! The last time I tested the purchase code was the end of last week, and it was working fine then!

I even used a previous version to test, in order to ensure that no code changes were responsible. This version was working, and had been submitted to the store.

Something is definitely changed, and it appears to be from the app store side of things!

I will note that the "official" data flow for the store requires the app to retrieve the list of products available for purchase but I instead hard-coded the identifier once the purchase was defined in iTunes Connect. I checked if the purchase ID has changed and the answer there is that it hasn't.

To make this more confusing, I pulled the live app build down from iTunes, and the purchase went through fine. The differences between the two scenarios are 1. one was built using my development profile instead of deployment profile 2. one was running in the sandbox instead of "real" 3. one used a test account to do the purchase

To ensure it wasn't a bad test account, I just now created a new one and tried to test with it. It made no difference.

UPDATE -- I emailed Apple regarding this, received no reply (yet) but the error suddenly went away and everything started working as expected!?!

like image 144
software evolved Avatar answered Dec 19 '22 03:12

software evolved