Now that I have finished Game Center integration, I have been playing around with In App Purchase for about a week and can’t get it to work. When I call store.init the transactionCallback that I have specified is not invoked.
There are a set of threads discussing similar issues, and I think I have tried many variations. My tax and bank info is cleared, I built with an AdHoc Provisionng Profile, the app items are cleared for sale (although now pending review as I also uploaded a binary). I read that people reject their own binary, I tried that too, but it didn’t help. I start to believe that it must be something very simple that I am missing!
What else could it be? Is there a debug guide for this somewhere? I put an alert box in the transactionCallback so that I would see when it get’s invoked, but it never does.
Okay, I figured it out and it was a silly mistake, but maybe other can benefit sometime in the future.
I had mistakenly (from a previous test) redefined the init callback further down in the code, and that one got invoked instead of the one I was looking at. cheez… :S
One tip I would give everyone having troubles with In App Purchase is to get it up and running with the InAppDemo sample! Then you know that everything in iTunesConnect is setup correctly. That’s how I figured that it must be something in my code - whereas I kept looking at the ITC settings.
Just to let you know. You don’t need to upload any binary to test in app purchase.
Just fill out the app form in itunes connect and when it says ready to upload binary you can setup you iap product. Leave the iap product in the waiting for screenshot state. Wait a couple of hours and the product is ready to be tested on device with your test user account.
Took me days to figure out iap. Apples system for this is such a pain.
[import]uid: 13632 topic_id: 21744 reply_id: 86449[/import]
The best tip I can give anyone is to start with the InAppDemo sample, and make that work first with your own items - so you know that ITC is setup correct.