store.init - transactionCallback never invoked

Hi everyone,

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! :slight_smile:

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.

Any help or thoughts are much appreciated!

–wunderwuzzi [import]uid: 118947 topic_id: 21744 reply_id: 321744[/import]

One thing I noticed is that in the Console window in XCode I see this:

[text]Feb 11 13:15:10 unknown wifid[28] : WiFi:[35010.913628]: Client itunesstored is background application[/text]

Not sure what that means, and if it has to do anything with it, or could help determine the issue.

–wunderwuzzi [import]uid: 118947 topic_id: 21744 reply_id: 86348[/import]

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.

Anyway, now back to finishing the IAP! :slight_smile:

–wunderwuzzi [import]uid: 118947 topic_id: 21744 reply_id: 86383[/import]

Sorry no one was here to assist earlier - it’s Saturday/Sunday (depending on where you are).

Thanks for posting a follow up, I’m sure it will indeed help others in the future :slight_smile:

Good luck with finishing up IAP!

Peach [import]uid: 52491 topic_id: 21744 reply_id: 86433[/import]

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]

Thanks Peach and ojnab,

Yes, uploading the binary is not required.

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.

–wunderwuzzi [import]uid: 118947 topic_id: 21744 reply_id: 86669[/import]