SlideShare a Scribd company logo
Monetize your app with Google
Subscriptions V3 services:
Benefits and best practices
Manohar Mahapatra
Intuit
Why choose Android
In-App Billing
Types of In-App Billing

• Standard in-app products (one-time billing)
• Subscriptions, (recurring, automated billing)
Its Hassle Free

• Google Play handles all credit card related
activities for the user of your app.
• Stores the card details along with Google
Wallet . No need to enter the data again
during the time of purchase.
• Charges the app user’s card and credits your
Google Merchant account.
Its Free for developers

• Any application that you publish through
Google Play can implement In-app Billing.
• No special account or registration is required
other than a Google Play Developer Console
account and a Google Wallet merchant
account.
Preparing Your In-app Billing
Application
Download the Sample
Application
• The sample files will be installed to
<sdk>/extras/google/play_billing/.
Add Your Application to the Developer
Console
• In the Services & APIs tab, find and make a
note of the public license key that Google Play
generated for your application
Add the In-app Billing Library
• To use the In-app Billing Version 3
features, you must add the
IInAppBillingService.aidl file to your Android
project.

• This Android Interface Definition Language
(AIDL) file defines the interface to the Google
Play service.
IInAppBillingService.aidl
Set the Billing Permission
• To have permission to communicate request
and response messages to the Google Play’s
billing service, add this line in your
AndroidManifest.xml manifest file:
• <uses-permission
android:name="com.android.vending.BILLING
" />
Initiate a Connection with Google Play
• You must bind your Activity to Google
Play’s In-app Billing service to send Inapp Billing requests to Google Play
from your application.
Establishing In-app Billing
Products for Sale
Specify In-app Products in Google Play

• Build a signed APK file for your In-app Billing
application. Make sure that you are using your
final (not debug) certificate and private key to
sign your application.

• Click on the APK tab then click on Upload new
APK. Don’t publish the app yet!
• Navigate to the uploaded app listing, and click
on In-app Products.
Monetize your app_with_google_subscriptions_v3_services_intuit
• Complete the form to specify the product
information such as the item’s unique product
ID (also called its SKU), description, price, and
country availability
• Once you have completed the form, activate
the product so that your application can
purchase.
Monetize your app_with_google_subscriptions_v3_services_intuit
Query Items Available for Purchase
• You can query Google Play to
programmatically retrieve details of the in-app
products that are associated with your
application (such as the product’s
price, title, description, and type)
Monetize your app_with_google_subscriptions_v3_services_intuit
Purchase an Item
• To start a purchase request from your
app, call launchPurchaseFlow(Activity, String,
int, OnIabPurchaseFinishedListener, String) o
n your IabHelper instance. You must make
this call from the main thread of your Activity.
Monetize your app_with_google_subscriptions_v3_services_intuit
Query Purchased Items
• To retrieve the user’s purchases from your
app, queryInventoryAsync(QueryInventoryFini
shedListener) on your IabHelper instance.
Consume a Purchase
• You must send a consumption request for the
item before Google Play makes it available for
purchase again. All managed in-app products
are consumable. Subscriptions need not be
consumed.
Testing Your In-app Billing
Application
Test with Static Responses
• Test your In-app Billing application with static
responses by using Google Play’s reserved
product IDs.
• There are four reserved product IDs for
testing static In-app Billing responses:
1.
2.
3.
4.

android.test.purchased
android.test.canceled
android.test.refunded
android.test.item_unavailable
Test with Your Own Product IDs
• In the Developer Console, add one or more
tester accounts to the developer account that
you are using to publish your application.
– Click Settings > Account details, then in
the License Testing section, add the Google
email addresses for your tester accounts.
• Build a signed and final (not debug) certificate
APK file for your In-app Billing.
• Make sure that you have uploaded the signed
APK for your application to the Developer
Console.You don't need to publish the
application on Google Play to test
• Install the APK file to your physical test device
by using the adb tool.
• Login to the test device by using a tester
account.
Important Security Considerations
• Perform signature verification tasks on a
server so that this makes it difficult for
attackers to break the verification process by
reverse engineering your .apk file.
• Modify all sample application code

• Set the developer payload string when making
purchase requests.
• Protect your Google Play public key.
Thank You

More Related Content

KEY
In-App Purchase
PPT
[Android] Google Play in app billing
PDF
Android In-app Billing @ Droidcon Murcia
KEY
Android in-app billing @ Google DevFest Barcelona 2012
KEY
Android In-App Billing @ Droidcon 2011
PDF
Infinum Android Talks #18 - In-app billing by Ivan Marić
PPT
Prestashop Advance Marketplace Module
ODP
Shopify Product Zipcode Validator
In-App Purchase
[Android] Google Play in app billing
Android In-app Billing @ Droidcon Murcia
Android in-app billing @ Google DevFest Barcelona 2012
Android In-App Billing @ Droidcon 2011
Infinum Android Talks #18 - In-app billing by Ivan Marić
Prestashop Advance Marketplace Module
Shopify Product Zipcode Validator

What's hot (15)

PPTX
Shopware-Akeneo-Connector
PPTX
Shopify Akeneo Connector
PPTX
OpenCart Amazon Connector Extension
PDF
Testing In App Billing
PPTX
20210326 slc users monthly class
PPTX
Odoo Akeneo Connector
PDF
Quip For Salesforce
PDF
Creating an app on Ribily Part 2 - forms creation
PPT
DataSynch for QuickBooks and Salesforce.com
PPTX
User Manual Guide: Case Management App on Salesforce AppExchange
PPS
inventory for Tailoring shops
PPTX
Magento 2 Quote Module
PPTX
AppFolio Mobile Inspections Module
PPTX
Recorded Webinar: AppFolio Mid-Year Feature Roundup
PPT
INTEGRATED SHOPPING ASSISTANCE WITH FREDGE AND MOBILE
Shopware-Akeneo-Connector
Shopify Akeneo Connector
OpenCart Amazon Connector Extension
Testing In App Billing
20210326 slc users monthly class
Odoo Akeneo Connector
Quip For Salesforce
Creating an app on Ribily Part 2 - forms creation
DataSynch for QuickBooks and Salesforce.com
User Manual Guide: Case Management App on Salesforce AppExchange
inventory for Tailoring shops
Magento 2 Quote Module
AppFolio Mobile Inspections Module
Recorded Webinar: AppFolio Mid-Year Feature Roundup
INTEGRATED SHOPPING ASSISTANCE WITH FREDGE AND MOBILE
Ad

Similar to Monetize your app_with_google_subscriptions_v3_services_intuit (20)

PDF
Mobi: "In-app Payments by Google & Apple"
PDF
In App Purchase - Transcript.pdf
PPTX
Monetising mobile apps, apppli ltd
PDF
OGDC 2014_User segmentation and Monetization_Mr. Phat hoang
PDF
Getjar App Commerce Overview
PPTX
In-App Purchase API
PPTX
Mobile payments at Droidcon Eastern Europe
PDF
Payments in Mobile Apps
PDF
Reverse engineering Java et contournement du mécanisme de paiement inapp Android
PDF
Advertsing Monetization Strategy
KEY
Android In-App Billing @ Barcelona GTUG
PPTX
AppSnips - Monetize Your App, Maximize Your Reach
PDF
Monetize Your Apps
PPTX
In-app purchases
PPTX
Solution for Gionee Regional Distributors
PDF
Making money with android applications
PDF
In app subscriptions
PPTX
Mobile Monetization
PPTX
The Hitchhiker's Guide to App Monetization
PDF
The Lean Startup Engines of Growth with Google's Platforms
Mobi: "In-app Payments by Google & Apple"
In App Purchase - Transcript.pdf
Monetising mobile apps, apppli ltd
OGDC 2014_User segmentation and Monetization_Mr. Phat hoang
Getjar App Commerce Overview
In-App Purchase API
Mobile payments at Droidcon Eastern Europe
Payments in Mobile Apps
Reverse engineering Java et contournement du mécanisme de paiement inapp Android
Advertsing Monetization Strategy
Android In-App Billing @ Barcelona GTUG
AppSnips - Monetize Your App, Maximize Your Reach
Monetize Your Apps
In-app purchases
Solution for Gionee Regional Distributors
Making money with android applications
In app subscriptions
Mobile Monetization
The Hitchhiker's Guide to App Monetization
The Lean Startup Engines of Growth with Google's Platforms
Ad

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
cuic standard and advanced reporting.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Approach and Philosophy of On baking technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
Teaching material agriculture food technology
PDF
NewMind AI Monthly Chronicles - July 2025
Advanced methodologies resolving dimensionality complications for autism neur...
Encapsulation_ Review paper, used for researhc scholars
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
“AI and Expert System Decision Support & Business Intelligence Systems”
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25 Week I
Diabetes mellitus diagnosis method based random forest with bat algorithm
Review of recent advances in non-invasive hemoglobin estimation
cuic standard and advanced reporting.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Approach and Philosophy of On baking technology
Chapter 3 Spatial Domain Image Processing.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Teaching material agriculture food technology
NewMind AI Monthly Chronicles - July 2025

Monetize your app_with_google_subscriptions_v3_services_intuit

  • 1. Monetize your app with Google Subscriptions V3 services: Benefits and best practices Manohar Mahapatra Intuit
  • 3. Types of In-App Billing • Standard in-app products (one-time billing) • Subscriptions, (recurring, automated billing)
  • 4. Its Hassle Free • Google Play handles all credit card related activities for the user of your app. • Stores the card details along with Google Wallet . No need to enter the data again during the time of purchase. • Charges the app user’s card and credits your Google Merchant account.
  • 5. Its Free for developers • Any application that you publish through Google Play can implement In-app Billing. • No special account or registration is required other than a Google Play Developer Console account and a Google Wallet merchant account.
  • 6. Preparing Your In-app Billing Application
  • 7. Download the Sample Application • The sample files will be installed to <sdk>/extras/google/play_billing/.
  • 8. Add Your Application to the Developer Console • In the Services & APIs tab, find and make a note of the public license key that Google Play generated for your application
  • 9. Add the In-app Billing Library • To use the In-app Billing Version 3 features, you must add the IInAppBillingService.aidl file to your Android project. • This Android Interface Definition Language (AIDL) file defines the interface to the Google Play service.
  • 11. Set the Billing Permission • To have permission to communicate request and response messages to the Google Play’s billing service, add this line in your AndroidManifest.xml manifest file: • <uses-permission android:name="com.android.vending.BILLING " />
  • 12. Initiate a Connection with Google Play • You must bind your Activity to Google Play’s In-app Billing service to send Inapp Billing requests to Google Play from your application.
  • 14. Specify In-app Products in Google Play • Build a signed APK file for your In-app Billing application. Make sure that you are using your final (not debug) certificate and private key to sign your application. • Click on the APK tab then click on Upload new APK. Don’t publish the app yet! • Navigate to the uploaded app listing, and click on In-app Products.
  • 16. • Complete the form to specify the product information such as the item’s unique product ID (also called its SKU), description, price, and country availability • Once you have completed the form, activate the product so that your application can purchase.
  • 18. Query Items Available for Purchase • You can query Google Play to programmatically retrieve details of the in-app products that are associated with your application (such as the product’s price, title, description, and type)
  • 20. Purchase an Item • To start a purchase request from your app, call launchPurchaseFlow(Activity, String, int, OnIabPurchaseFinishedListener, String) o n your IabHelper instance. You must make this call from the main thread of your Activity.
  • 22. Query Purchased Items • To retrieve the user’s purchases from your app, queryInventoryAsync(QueryInventoryFini shedListener) on your IabHelper instance.
  • 23. Consume a Purchase • You must send a consumption request for the item before Google Play makes it available for purchase again. All managed in-app products are consumable. Subscriptions need not be consumed.
  • 24. Testing Your In-app Billing Application
  • 25. Test with Static Responses • Test your In-app Billing application with static responses by using Google Play’s reserved product IDs. • There are four reserved product IDs for testing static In-app Billing responses: 1. 2. 3. 4. android.test.purchased android.test.canceled android.test.refunded android.test.item_unavailable
  • 26. Test with Your Own Product IDs • In the Developer Console, add one or more tester accounts to the developer account that you are using to publish your application. – Click Settings > Account details, then in the License Testing section, add the Google email addresses for your tester accounts. • Build a signed and final (not debug) certificate APK file for your In-app Billing.
  • 27. • Make sure that you have uploaded the signed APK for your application to the Developer Console.You don't need to publish the application on Google Play to test • Install the APK file to your physical test device by using the adb tool. • Login to the test device by using a tester account.
  • 28. Important Security Considerations • Perform signature verification tasks on a server so that this makes it difficult for attackers to break the verification process by reverse engineering your .apk file. • Modify all sample application code • Set the developer payload string when making purchase requests. • Protect your Google Play public key.

Editor's Notes

  • #4: In-app Billing is a Google Play service that lets you sell digital content from inside your applications. You can use the service to sell a wide range of content, including downloadable content such as media files or photos, virtual content such as game levels or potions, premium services and features, and more. 
  • #8: Open the Android SDK Manager.In the SDK Manager, expand the Extras section.Select Google Play Billing Library.Click Install packages to complete the download.The sample files will be installed to &lt;sdk&gt;/extras/google/play_billing/.