I want to make an app that has in-app payment inside it. But i want to implement in-app payments completely independently and not use Google Play or other markets in-app payments service. Since all Android marketplaces have built in-app payment services alike, I have guessed that all markets use the same source code for their apps and this part of the market code is open source (all of them copy GooglePlay market source code). Can anyone give me useful information about creating in-app payment services? Also, I don't want to use inventive methods , and i seek to learn how android markets create built-in in-app payment service in their app and why all of them have same implementation (for users)!!!

  • 1
    "Is Google play billing service open source?" -- no, sorry. Oct 6, 2019 at 18:54
  • @CommonsWare thanks , but why all android markets have same code to implementing in-app purchase . all of them use this library as sample for in app billing : https://github.com/googlesamples/android-play-billing/tree/master/TrivialDrive
    – mhKarami
    Oct 6, 2019 at 19:06
  • 1
    I do not know what you consider "android markets" to mean. The sample that you linked to is three years old and might not work with Google's current in-app billing service. Oct 6, 2019 at 19:15

1 Answer 1


It's difficult to speak to "all Android marketplaces." To sell in-app products and subscriptions for apps published through the Google Play Store, your app needs to integrate/implement Google Play Billing. Google Play is a separate entity from Android and so the code for Google Play is not open source. However we do provide the Google Play Billing Library and the Google Play Developer API with documentation and samples. I hope this helps clarify.

  • Do you think that android app markets that have in-app payments similar to Google Play, have not used ready-made codes and designed their own in-app service separately? for example check this link link . this is an android market in-app billing documentation . its exactly the same of google play documentation just developer needs to change 3 line :payment permission , IabHelper Line 267 and 268 (service bind name and the market package name) .
    – mhKarami
    Oct 8, 2019 at 20:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.