05-24-2012 08:52 PM
Hello - I am a little confused by the payment system documentation. The 'basic app' example for AIR
shows the following arguments for paymentSystem.purchase:
In that same article, there is a link showing "Arguments for purchases", and that link lists the following (in this order):
digitalGoodSKU, digitalGoodID, digitalGoodName, metadata, purchaseAppName, purchaseAppIcon.
In the definitiions on that page it says that either sku or id are required, and if both are provided then id is used. It further defines the sku as an alphanumeric string but does not specify anything for the id (which I assume is the id provided in the app world - in my case a 6 digit number).
I have tried numerous combinations and permutations, but no luck in getting my in-app purchase to work. My questions:
1. Is the order of arguments (i) sku then id, or (ii) id then sku?
2. If I choose to use id and leave sku as null or blank, is id alphanumeric (eg Paymentsystem.purchase("123456")), or an int (eg paymentsystem.purchase(123456) )
Thanks for any info anyone can provide. Right now my potential purchasers are getting an error code 30242 which is triggered by trying to purchase a good that is not associated with the app.
05-25-2012 09:54 AM - edited 05-25-2012 10:03 AM
Thanks John. This is different than the documentation, or at least the example. For greater clarity:
What is id / where do you find it? is it a String or Int?
What is name? String? Is this the name of the digital good?
05-25-2012 11:29 AM