I have an app that can be downloaded from google play using In-app purchase.
-
I am using sample product id
android.test.purchasedto purchase product from google play. I am able to purchase the product and getting toast messageThank you. Your item will appear shortlybut i am unable to see logcat messages and item what i purchased . this is the code i am usingpublic Handler mTransactionHandler = new Handler() { public void handleMessage(android.os.Message msg) { Log.i(TAG, "Transaction complete"); Log.i(TAG, "Transaction status: " + BillingHelper.latestPurchase.purchaseState); Log.i(TAG, "Item purchased is: " + BillingHelper.latestPurchase.productId); if (BillingHelper.latestPurchase.isPurchased()) { Log.i(TAG, " is purchased completed "); showItem(); } };};
-
If i use my own product Id for purchase, is it necessary to give original credit card details ?
To purchase products, i am using test account as primary account in the device.
Docs says that, to purchase own product for testing it is necessary to give original credit card details although funding (transaction of money) wont happens overthere..It seems to be virtual transaction from testing account..