Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Ti.Storekit

Hi,

I am using the great Ti.Storekit module, and I got the example working kind of, but on load it gives me an error message alert:

 "Getting Products: undefined"

Right now, I am basically just loading the example js file into a new project and replacing it with the default app.js and then adding the module to tiapp.xml. I get an empty tableview and I also get in the Console:

[ERROR] received error Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo=0x8dd5ec0 {NSLocalizedDescription=Cannot connect to iTunes Store}

Then, I relaunched and I didn't get that popup, and the console said this instead:

[INFO] Found products: 

[INFO] Invalid: <<YOUR PRODUCTS HERE>>

Then I clicked "Restore your past purchases" and I get the following:

[ERROR] Failed to restore all completed transactions: Error Domain=SSServerErrorDomain Code=1005 "This is not a Test User account." UserInfo=0x8d307a0 {NSLocalizedDescription=This is not a Test User account.}

[INFO] Finished restoring past purchases!

And an alert that said:

This is not a Test User account. Please create a new account in the Sandbox Environment.

I also tried replacing the app.js code I had in the project I actually wanted to use the module in, and I got a different error message: "Cannot make payments to in-app purchase store". This might be because I am using an actualy app ID with in-app purchasing available, but how would Titanium know this? And also, I only got a blank white screen this way.

Where do I define the in-app purchases available? Is there something else I need to do-Am I missing a step or something?

Any help would be greatly appreciated!

— asked August 16th 2011 by Connor Zwick
  • ti.storekit
0 Comments

1 Answer

  • Accepted Answer

    This looks like you've not setup your test store correctly on iTunes.
    Also, remember you need to use the sandbox for testing and you must use sandbox accounts. More information can be found at the Apple Store Kit documentation

    — answered August 16th 2011 by Jeff Haynie
    permalink
    1 Comment
    • Thanks! I will check that out.

      — commented August 16th 2011 by Connor Zwick
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.