Android In-App Billing : Security.java says “Signature Verification Failed”
I have implemented a test app with Android's In-App Billing. I have filled in my Public Key in the Security.java file. Everything works, but when I submit the payment, the app crashes. I receive an error in LogCat that says "Signature Verification Failed", which corresponds to this bit of code: if (!sig.verify(Base64.decode(signature))) { Log.e(TAG, "Signature verification failed."); return false; } If I change that bit to return true instead of return false, then everything works properly - I can submit payment and safely return to the app - but I am assuming that something else is wrong,