Reputation: 49
I want to implement in app purchase in my app in android. Can anybody help me for best example for this, and how can I test with sandbox account?
Upvotes: 4
Views: 11766
Reputation: 11
https://developer.android.com/google/play/billing/billing_testing#prepare
You can check this link for test purchases
There are three reserved product IDs for testing static Google Play Billing responses:
android.test.purchased When you make an Google Play Billing request with this product ID, Google Play responds as though you successfully purchased an item. The response includes a JSON string, which contains fake purchase information (for example, a fake order ID).
Upvotes: 0
Reputation: 1215
As of today (or yesterday) Google has allowed "sandbox" testing for in app purchases. Please check out info here and here
Upvotes: 5
Reputation: 88
you can use test purchase package for testing inapp provided by google. use this product id for testing "com.test.purchased" it redirects you to test inapp product id .
Upvotes: 1
Reputation: 508
You can read this
http://developer.android.com/google/play/billing/billing_overview.html
For test your app you must publish this app on google play, There is no sandbox for in app purchase for android
Upvotes: 0