rajnish verma
rajnish verma

Reputation: 49

In app purchase in Android application, and test with sandbox account

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

Answers (4)

Muhammad Ans
Muhammad Ans

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

Raigex
Raigex

Reputation: 1215

As of today (or yesterday) Google has allowed "sandbox" testing for in app purchases. Please check out info here and here

Google Announcemnet

Upvotes: 5

adnan_it
adnan_it

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

Ashwani Tyagi
Ashwani Tyagi

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

Related Questions