I’ve finally managed to implement all the code required to set up In-App purchases, on the Android Market. It should all be working just fine, but I have one small problem.
It seems the Google guys don’t allow testing the in-app purchases in all countries where you can’t buy paid apps. I’m from Romania, so I can’t do it.
Do you think you guys could help, and check if the code I did actually works?
I could send you the .apk, with a few OnGui buttons, which simply test if the response from the Android Market is the right one.
If your interested in the code I can share it with you, but will you test for me the test application I made? It’s only a matter of pushing a few buttons and taking a picture of the output
Here is the .apk that needs testing, the instructions how to test it are in the Instructions.pdf file.
U just need the install the app on a phone and follow the instructions.
The test program uses Android Markets static responses so no money is needed to make the test purchases.
I also included the Eclipse project for the Java plugin and the Unity project.
Instructions about implementing real In-App Purchase are also included.
Don’t know if it is still current, I will post my experiences anyway. I’m using a Motorola Milestone 2 (Droid 2):
Installation was no problem.
“Is Billing supported” doesn’t do anything.
“Dummy Purchased” opens the android store with the checkout for android.test.purchased. After that, a message from google appears about getting some approval for the purchase. This one never goes away, have to “kill” it with the hardware back button. After that, in the big window at the bottom, the following lines appear: Dummy bought sent succesul. android.test.purchased: sending purchase request.
“Dummy Refund” Same as the one above. Problem: The wording of the buying page indicates, that I am buying the item android.test.refund, instead of getting a refund. Not sure if this is normal. Have to kill the message again.
“Check bought Items”: OwnedItemsCount: 0
At some point in the process a message appeared in this top bar of android about a succesul refund.
When i clicked on it, the app, which i had minimized in the meantime, reappeared again and showed the message android.test.refunded REFUNDED
I’m interested in all of the plugins you mentioned above.
My most immediate need is for a implementation of in-app purchase that supports atomic ‘transactions’ that include a REST call to our servers that credits virtual currency to the user’s account. This REST call requires as a parameter the JSON returned from GET_PURCHASE_INFORMATION, so the REST call needs to occur after GET_PURCHASE_INFORMATION <= PURCHASE_STATE_CHANGED.
Does your plugin support atomic transactions that include an external REST call as described above?
Lorana, Thank you for testing the app, meanwhile In-App Purchasing became available in Romania to, so I managed to test the app myself and fix all the bugs.
Dear All
I just develop in Android App but i can’t success with in-purchase testing with android market. every time testing show me “The Market billing service is not available at this time.”
please tell me if you know?
My location is Cambodia Country that Develop it.