diff --git a/library/src/com/anjlab/android/iab/v3/BillingProcessor.java b/library/src/com/anjlab/android/iab/v3/BillingProcessor.java index c8ebce16..ebfd44db 100644 --- a/library/src/com/anjlab/android/iab/v3/BillingProcessor.java +++ b/library/src/com/anjlab/android/iab/v3/BillingProcessor.java @@ -337,7 +337,15 @@ public boolean handleActivityResult(int requestCode, int resultCode, Intent data private boolean verifyPurchaseSignature(String productId, String purchaseData, String dataSignature) { try { - return Security.verifyPurchase(productId, signatureBase64, purchaseData, dataSignature); + /* + * Skip the signature check if the provided License Key is NULL and return true in order to + * continue the purchase flow + */ + if (TextUtils.isEmpty(signatureBase64)) { + return true; + } else { + return Security.verifyPurchase(productId, signatureBase64, purchaseData, dataSignature); + } } catch (Exception e) { return false; }