Does the New play billing library in android need base64EncodedPublicKey?

Viewed 450

I'm just explore the New Google Play Billing Library

using google codelabs sample , it works without base64EncodedPublicKey.

I don't no how it works without base64EncodedPublicKey, in android docs they not mention about the base64EncodedPublicKey in New Play Billing Library, can anyone explain what the advantage of using New Play Billing Library & how to works

1 Answers

That key is needed to verify purchase signature on the client. You can see the example inside the updated TrivialDrive_v2 sample. But keep in mind, that this is not a very secure approach since your app could be decompiled.

So for security you should also introduce a backend mechanism to verify your purchases as described here.

Related