Product ID

Hey guy’s,

First off - wauv, Corona is amazing.

I’v used Titanium, Phonegap and others - but this one blows it all out of the water…just say’in :wink:

I’m doing a business/sport and leasure app - but have run into a bit of trouble with the inApp module.

The doc’s are really hard to get a grasp on, but I got it working as a test on Android now.

One question though - what the heck should my inApp product ID be in my store.purchase code ?

My app - in the Google Developer console is called “dk.datariet.thomas.test” - and my product ID is called is called “lc1”.

But if I write dk.datatriet.thomas.test.lc1 - I get an error "product not found from Google Play - and same goes if I write “lc1”. If I test with “android.test.purchase” everything runs smoothly and Google Play’s runs the purchase through as expected.

So please, what should store.purchase code call, boh on Android and iOS, in order to purchase my product ?

Best Wishes

/Thomas

In both cases, it’s a unique string that you enter into the vendor’s app portal.  Apple pretty much wants this to follow your bundle ID with an additional ID.

I use something like:  com.mydomain.mygame.product1, com.mydomain.mygame.product2

where of course mydomain is my domain and my game is the name of the app.  So basically it’s my Package Name/BundleID + .product1

You need to make sure you’ve enabled the products in the portal.  I think Google may have some additional rules about the app having to be in the store before you can add products to it.  Having it in Alpha or Beta should count.

Rob

Hey Rob,

Thank you very much for the fast reply.

I tried, on Android, to make a product with the following ID : dk.drf.dressur.lc1

And this throws the Google Play error “The product you where trying to purchase does not exist”.

However if I use the standart android test : android.test.purchased - everything runs smoothly.

The app is setup in Google Play developer Console, in Alpha and the Product is Active.

Any idears ?

Best Wishes

/Thomas

Alternatively - mayby someone knows, and could point me in the direction of, how to test on iOS.

I have inApp products setup in iTunes connect status : “Ready to submit” , and an App with the status “Prepare for uploade”

So now all I need to know is, how to test my code actually works :wink:

Any pointers would be greatly appriciated.

Best Wishes

/Thomas

In both cases, it’s a unique string that you enter into the vendor’s app portal.  Apple pretty much wants this to follow your bundle ID with an additional ID.

I use something like:  com.mydomain.mygame.product1, com.mydomain.mygame.product2

where of course mydomain is my domain and my game is the name of the app.  So basically it’s my Package Name/BundleID + .product1

You need to make sure you’ve enabled the products in the portal.  I think Google may have some additional rules about the app having to be in the store before you can add products to it.  Having it in Alpha or Beta should count.

Rob

Hey Rob,

Thank you very much for the fast reply.

I tried, on Android, to make a product with the following ID : dk.drf.dressur.lc1

And this throws the Google Play error “The product you where trying to purchase does not exist”.

However if I use the standart android test : android.test.purchased - everything runs smoothly.

The app is setup in Google Play developer Console, in Alpha and the Product is Active.

Any idears ?

Best Wishes

/Thomas

Alternatively - mayby someone knows, and could point me in the direction of, how to test on iOS.

I have inApp products setup in iTunes connect status : “Ready to submit” , and an App with the status “Prepare for uploade”

So now all I need to know is, how to test my code actually works :wink:

Any pointers would be greatly appriciated.

Best Wishes

/Thomas