Implementing Android Market In-App Purchasing

Hi!

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.

Thanks a lot for your help!

I’m curious how you implemented in app purchasing?

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

I’m sure people would help you test your code :wink:

Count me in

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.

The .zip containing all this:

In-App Purchase

Any results of the testing or suggestions regarding the code are welcomed.

Thanks in advance! :wink:

did you get the test results back yet ?
I am trying to implement the in-app purchase but have no idea how, maybe you can help ?

I’m gonna download and test it in 24-48 hours (hopefully)
So I’m gonna get back to you ASAP

I’ll download it now and test it out. Will let you know how it goes.

many downloads , but no feedback at all ???
people seem to disappear right after they download, it might be a curse of some sort!!!

Oh, I thought I’ve posted this issue! I can’t seem to get the file from ge.tt servers! I don’t know why!

If you can upload it somewhere else, I’m gonna download and try it ASAP

Any chance we could purchase the code for this?

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 recently had a go at testing your in app plugin.

As said above, “is Billing Supported” does nothing for me.

But buying and refund work flawlessly.

Pat@RatRod,

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?

Thanks,
Larry

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.

Pat/ratrodstudio,

I tried calling the number in your signature and I get temp disconnected. Is there another way to get in contact?

Wow, that’s great, I got the previous file you posted, can you post the updated file after the fixes you made.

I want to get all your plugins, can you make a package with some discount ?

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.

I can’t show in-app purchase after i install your file. it show me message “the market billing services is not available” u can tell me why ?