Do you know how to use Ti.Storekit module to purchase multiple 'Consumable' items at once? (payment.quantity)

You must Login before you can answer or comment on any questions.

He guys I succesfully implemented the wonderfull Ti.Storekit module. I am running all the latest versions: Mountain Lion, iOS 6, Ti 2.1.3. GA. I am looking into using the storekit module to sell consumable 'Coins' which on their part enable users to buy content.

Currently I have one product.id on Itunes Connect: app.name.com.product_coin1: A consumable good, representing 1 coin in my app.

In the iOS Storekit an actual purchase can have multiple quantities of 1 'consumable' item: so I can purchase 7 times the 1 coin good, thus enabling me to dynamically increase/decrease product pricing without having to change the app.

This is what iOS Sdk docs say about multiple quantities: > To create a SKPayment object with a quantity greater than 1, create a SKMutablePayment object, adjust its quantity property and then add it to the payment queue. >

like so:

SKMutablePayment *myPayment = [SKMutablePayment paymentWithProduct: myProduct];
myPayment.quantity = 2;
[[SKPaymentQueue defaultQueue] addPayment:myPayment];
source: Apple Developer site

Do you know if its possible somehow to implement the quantity parameter via the Ti.Storekit module as well?

— asked 8 months ago by Roeland P
0 Comments

1 Answer

Not sure if the TI.Storekit supports a quantify property. But, my app has the same general need and I'm offering different denominations of my "tokens" as different products. Just a thought ...

Your Answer

Think you can help? Login to answer this question!