PlayStore

class PlayStore()

CreatePlayStore()

GetBillingInfo(prodIDs, callback)
playStore.GetBillingInfo( prodIDs, OnStoreInfo );
//Show Play Store prices.
function OnStoreInfo( items )
{
    //Show prices.
    for( var i=0; i<items.length; i++ )
    {
        var prodId = items[i].productId;
        var price = items[i].price;
        alert( prodId + " = " + price );
    }
}
GetPurchases(callback)
playStore.GetPurchases(function(items){
    item = items[0];
    /* item.productId
     * item.purchaseState
     */
});
Purchase(prodID, token, callback)
playStore.Purchase( prodId, "xbxrandomxbx", OnPurchased );

//Handle completed purchase.
function OnPurchased( prodId )
{
    //Update purchase items array.
    purchases[prodId] = true;

    alert( "OnPurchased" + prodId );
}