i\' having trouble implementing in app billing in my android app. i\'m getting a purchase signature verification failed. In a first time i tough it was the base64 key but i
You can use the test SKU's to do testing, as explained here. These are:
android.test.purchasedandroid.test.canceledandroid.test.refundedandroid.test.item_unavailableThese purchases will be successful (at least the android.test.purchased) even in test and debug scenario's, without the need to cancel the purchase.
In the verifyPurchase I changed return false to:
Log.e(TAG, "Purchase verification failed: missing data.");
if (BuildConfig.DEBUG) {
return true;
}
return false;
but you should be aware to use this only in test scenario's.
This will return true, if you have a debug build, and the signature data is missing. Since the BuildConfig.DEBUG will be false in a production build this should be OK. But better is to remove this code after everything is debugged.