Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

in app purchase, cannot connect iTunes store

$
0
0

Hi.

I want to add InAppPurchase module in my app. I add StoreKit module, and copy the following to my app. 1.StoreKit app.js function: requestProduct 2.StoreKit app.js eventLisnter: transactionState 3.other related followings.

var Storekit = require('ti.storekit');
//  Storekit.receiptVerificationSandbox = (Ti.App.deployType !== 'production');
    Storekit.receiptVerificationSandbox = true;
    Storekit.autoFinishTransactions = false;
    Storekit.bundleVersion = "1.0.3";
    Storekit.bundleIdentifier = "xxx"; 
    var verifyingReceipts = false;
And this is at last.
Storekit.addTransactionObserver();
And in the purchase button EventListener
requestProduct('test100', function (product) {
                                alert(product);
                                Storekit.purchase(product);
                            });
In itunes connect I made product.

But, I had a error. The message is "cannot connect iTunes store".

I debuged my app. This error occur in Storekit.requestProducts function in the requestProduct function. RequestProduct call back is not called, becase alert(product) function is not called. Both real iPhone iOS7 and iPhone Simulator iOS8 are same. What do I do? Pleses someone help me.


Viewing all articles
Browse latest Browse all 8068

Trending Articles