Security Measures while Implementing In-App Purchases

Satya Pavan Kantamani
Programming Geeks
Published in
4 min readApr 19, 2021

--

Let's check basic security measures to be taken while implementing In-App Purchases in Android

Photo by Franck on Unsplash

Google Play in-app purchase is the simplest solution to sell digital products or content on Android apps. So many app developers who want to sell digital goods or offer premium membership to users can simply use the Google Play in-app billing process for smooth and easy checkouts. I have written an introductory article covering the points like What is Google In-App Purchase? How many types of products we can sell using In-App Purchases and Basic implementation so please check out my previous post on How to Implement In-App Purchases in Your Android App before further read.

In this article, let’s check a few basic security measures to be taken while implementing In-App purchases.

Security Measure 1

While implementing In-App purchases the first and foremost thing we need is the SKU list or the list of product id’s that we use either to query their details or initiate a purchase. So it’s one of the best practices to store the list of product id’s on the server-side and fetch them in any configs or launch API. Limiting the storage of potential details on the app side that can be decrypted to a possible extent will always be regarded as a best practice.

--

--

Satya Pavan Kantamani
Programming Geeks

Android Dev, Interested in Traveling, App development. Based in Hyderabad, India. Catch me at https://about.me/satyapavankumar