How to implement in-app purchase of application Android? - android

I have created a android application. Subscription is free. However I have put ads inside application. Now I want provide option within app where people can buy ad-free version. And also provide option to restore purchase.
I went through Android docs didn't understand anything. Please provide a good tutorial.

Hey I had worked on InApp Purchase recently and I've successfully integrated in my existing app and ready to make it live. Initially when i had started doing this I've downloaded google InApp Billing Example called "Trivial Drive" from here.
But it didn't help me much as it has lots of issues and bugs, So I've decided do it on my own from scratch using new v3 api which you can find here. This tutorial has clear explanation that would help you and also if you have time, see this youtube video where google employee had explained clearly how to integrate it.
Also if you want quick example, I've a sample app which you can download from here.
The following video also explains how to integrate InApp Purchase. Please go through it.
https://www.youtube.com/watch?v=-h2ESH71hAI
Thank you

Refer this question on SO Implementing In App purchases in Android?. Also for official documentation of The In-app Billing Version 3 API refer this link http://developer.android.com/google/play/billing/api.html

This is how you create In app purchase inside your app.
1) In your developers console, go to your application and create a in app product(Name it as Ad-Free Access or what ever).(Note: to create a in app product you need to have a merchant account).
2) If you have a merchant account ready, create a InApp Product with the type of Subscription(One time or monthly or yearly) and price.
3) Once you have created the InApp product successfully, you can prompt the user to purchase an InApp product by quering a list of in app products in your app and ask user to purchase them.
Here is a link to query the InApp products:
4) Once a user purchase the product, based on the purchase status of the product, you can disable the ads in your app.

The Simple and very easy way to implement in-app through a library anjilab.
Just add the dependecy
implementation 'com.anjlab.android.iab.v3:library:1.0.44'
Add Permission, implement methods and you done.
For any issues you can see here
issues

Related

Flutter IAP subscription

I'm trying to setup a subscription IAP for my app. I have managed to purchase the sub via my app. The next stage is being able to edit the subscription and display details on the subscription via the app. I can't find much details on this here, or in the in_app_purchase documentation.
Does anyone know how to do this, or what the best practices are?
Many thanks.
The Google play billing guide gives a comprehensive guide on how to handle this.
Essentially, let the user edit their subscription via Google Play.
I did this simply using the url_launcher package as follows:
launch("https://play.google.com/store/account/subscriptions")

Android In-App billing only one time on PayPal SDK

I'm building an android app, but I have a problem on PayPal SDK. Pratically, I want to pay the app only one time, like a managed item on official Google In-App Billing. So, if I change the device, I don't want pay again!
I'm reading the official docs, but I can't find something about this...
Actually, I'm following the "Single payment" but is like a unmanaged item on official Google In-App Billing...
How can I manage this?
Thanks!

How to add in app purchase in one feature of an application of android?

I have prepared an application which has several features. To one feature of them, I want to add in app purchase option. Can anyone inform me the simplest way to implement this? As far I know it can't be tested using emulator. Then How can I test it after adding this option?
you can make a test account in your developer console under setting, upload the apk with in-app billing permissions but don't publish it.
Add in-app products in developer console.
Login with the same test account you have added in developer console as primary account to your android device.
then install the signed apk into your device
and you are ready for testing
you can also refer to android.developer for more details
http://developer.android.com/google/play/billing/billing_testing.html
At last, I have implemented in app purchase in my application with the help of bellow's website which contains brief but clear explanation of in app purchase with a simple example. Possibly this site will be helpful for the novice android programmers to learn how to implement in app purchase.
techotopia-In app purchase

Implementing google in-app subscription

The developer guide gives the sample for in-app billing, and for the subscription it takes for the same sample application, and saying to modify it for subscription.I want to modify this "Dungeons" sample application for subscription, But in the developer guide there is no info for modifying this sample to subscription. What should i change for same.I want to know complete steps for modifying this sample. Please help.
Thanks in advance.
if you implement your InApp Product Purchase with old billing API.
then
update the billing API code to version 2
not much change in the InApp subscription. other then mBillingService.requestPurchase(productId, Consts.ITEM_TYPE_SUBSCRIPTION, null)
To check subscribed items, you can use Restore purchases. In App subscriptions also act as a `InApp Products'
I hope it helps you.

Google Checkout for Android

I want to develop a shopping cart type application in android where the user
needs to purchase the products from the list of products. Once the
user selects the product, the payment should be made by opening Google Checkout.
Please let me know what you people think about this.
Hope to get the answer quickly.
It looks like you're interested in more information about in-app purchase frameworks.
For Android apps have a look at the Android Market In-app Billing:
http://developer.android.com/guide/market/billing/index.html
For Web apps have a look at Google In-App Payments:
http://code.google.com/apis/inapppayments/docs/index.html

Categories

Resources