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

Ti.StoreKit: requestProducts don't return Ti.Storekit.Product, return description?

$
0
0

Hi, SDK: 3.0.2GA, Ti.StoreKit: 1.6.2, IOS is 6.1. I try to make In-app Purchases App (Non-Consumed Item), But Ti.StoreKit 's requestProducts returns Product's description instead of Ti.Storekit.Product object.

var product = null;
var storeKit = require('ti.storekit');
storeKit.receiptVerificationSandbox = true;
storeKit.requestProducts([product_id], function (evt) {
    if (evt.success) {
        Ti.API.info(evt);
        product = evt.products[0];
 
    } else if (evt.invalid) {
        var dialog = Ti.UI.createAlertDialog({
            title: L('error'),
            message: L('product_payment_error')
        }).show();
    } else {
        var dialog = Ti.UI.createAlertDialog({
            title: L('error'),
            message: L('other_payment_error')
        }).show();
    }
});
Returned 'evt' is the followings.
{
    products =     (
        "You can to be use Full Function."
    );
    source = "[object TiStorekitProductRequest]";
    success = 1;
    type = callback;
}
This 'products' is description of In-App Purchased Item's description that I created in iTunes connect. I believe evt's product should be Ti.Storekit.Product object. What's wrong?

of couse, I recreated non-Consumed item some times, I finished contract setting. However I don't want to recreate app setting, because cannot reuse App' Name forever...

Anyone help me?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>