Server-side verification of Google Play In-app billing version 3 purchase

where do I get the signature from ? Have a look at official docs, It says that inside your onActivityResult() method you can get following data as shown in example, @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == 1001) { int responseCode = data.getIntExtra(“RESPONSE_CODE”, 0); String purchaseData = data.getStringExtra(“INAPP_PURCHASE_DATA”); String … Read more

onIabPurchaseFinished never called.

Try adding this to the Activity that calls mHelper.launchPurchaseFlow(..): @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { Log.d(TAG, “onActivityResult(” + requestCode + “,” + resultCode + “,” + data); // Pass on the activity result to the helper for handling if (!mHelper.handleActivityResult(requestCode, resultCode, data)) { // not handled, so handle it ourselves (here’s … Read more

Android in app purchase: Signature verification failed

This problem is still going on in the current Google billing version. Basically the android.test.purchased is broken; After you buy android.test.purchased the verifyPurchase function in Security.java will always fail and the QueryInventoryFinishedListener will stop at the line if (result.isFailure()); this is because the android.test.purchased item always fails the TextUtils.isEmpty(signature) check in Security.java as it is … Read more

How to verify purchase for android app in server side (google play in app billing v3)

It sounds what you’re looking for is a way to check if the user has premium features enabled on their account, so this is where I would start; Ensure there is a flag of some sort on your database indicating if the user has premium features and include that in the API response payload when … Read more

Google In-App billing, IllegalArgumentException: Service Intent must be explicit, after upgrading to Android L Dev Preview

I had the same problem and explicitly setting the package solved it. Similar to Aleksey’s answer, but simpler: Intent intent = new Intent(“com.android.vending.billing.InAppBillingService.BIND”); // This is the key line that fixed everything for me intent.setPackage(“com.android.vending”); getContext().bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);

This version of the application is not configured for billing through Google Play

This error may be caused by several reasons. Here is the list of requirements for the Google IAB testing. Prerequisites: AndroidManifest must include “com.android.vending.BILLING” permission. APK is built in release mode. APK is signed with the release certificate(s). (Important: with “App Signing by Google Play” it only works if you download directly from GooglePlayStore!) APK … Read more

tech