Alin
Alin

Reputation: 14581

Implement two types of in app purchase in android app

I have a pretty complex project, it uses a lot of custom views and image manipulation. I want to have in it 2 type of in app purchases, one for Google Play and one for Amazon.

I want to be able to easily maintain code for both, so from what I see I have some options:

Which approach would be better and why ?

Upvotes: 0

Views: 483

Answers (1)

sergej shafarenka
sergej shafarenka

Reputation: 20426

Go for the first option.

If the app you uploaded to Google Play uses Google Play for in-app billing, then you have no issues whatsoever, even if there is coding and permissions etc. for Amazon payment inside the app. Google doesn't analysis this. And event if they would, you are on the save side, as you only use Google Play's in-app billing.

You can even improve this option by using Android Studio and Gradle build. It allows to package only those artefacts, that you need for certain build variant. In your case, you can have a single version of project and configure Gradle in a way, that it creates two apk-files: one for Google Play and one for Amazon with respective payment logic in them.

Upvotes: 1

Related Questions