Quantcast
Channel: >devblog_ » iOS
Viewing all articles
Browse latest Browse all 2

Posting requesting multiple products with inAppPurchaseManager

$
0
0

Documentation for inAppPurchaseManager is poor at best. Here’s how to initialize with multiple products:
window.plugins.inAppPurchaseManager.requestProductsData(["myproduct1", "myproduct2", "myproduct3"], function(feedback)
{
for (var c=0; c<feedback[0].length; c++)
console.log(“Succeded: “+feedback[0][c]['id']);

for (var c=0; c<feedback[1].length; c++)
console.log(“Failed: “+feedback[1][c]);
});


Viewing all articles
Browse latest Browse all 2

Trending Articles