SlideShare uma empresa Scribd logo
1 de 23
By : Franky Wijanarko
PT. BUZOO INDONESIA
In-app Billing is a Google Play service that lets
you sell digital content from inside your
applications
 You can use In-app Billing to sell products as:
- Standard in-app products (one-time billing),
- Subscriptions, (recurring, automated billing)
 Any application that you publish through Google
Play can implement In-app Billing.

In-app Billing version 1 March 2011
 In-app Billing version 2 May 2012
 In-app Billing version 3 February 2013



Managed In-app Products
This means that the user's ownership of all in-app
item purchases is maintained by Google Play, and
your application can query the user's purchase
information when needed.
2 Types of Managed In-app Products :
◦ Non-consumable Items
Once purchased, these items will be permanently associated to
the user's Google account. An example of a non-consumable inapp product is a premium upgrade or a level pack.
◦ Consumable items
Implement consumption for items that can be made available for
purchase multiple times. Typically, these items provide certain
temporary effects. For example, the user's in-game character
might gain life points or gain extra gold coins in their inventory.


Subscriptions
A subscription is a product type offered in In-app
Billing that lets you sell content, services, or
features to users from inside your app with
recurring monthly or annual billing.


To implement In-app Billing in your application,
you need to do the following:
1.

Installing the Google Play Billing Library
Check whether or not the library is installed by
launching the Android SDK Manager by selecting the
Eclipse Window -> Android SDK Manager menu
option, scroll down to the Extras section and the Status
column next to the Google Play Billing Library
2. Adding Billing Permission to the Manifest File
3. Adding the IInAppBillingService.aidl File to the Project
4. Adding the Utility Classes to the Project
5. Obtaining the Public License Key for the Application



Create new Application
Click on the Services & APIs option to display the Base64encoded RSA public key for the application
6. Setting Up Google Play Billing in the Application
After success, we can add additional code to get an
inventory
of
stuff
we
own
:
mHelper.queryInventoryAsync(mGotInventoryListener);

mGotInventoryListener -> Listener that's called when
we finish querying the items and subscriptions we own
7. Initiating a Google Play In-app Billing Purchase

NOTE:


MainActivity.this -> A reference to the enclosing Activity instance from which the method is being
called



ITEM_SKU -> The SKU that identifies the product that is being purchased



10001 -> he request code which can be any positive integer value



mPurchaseFinishedListener -> The listener method to be called when the purchase is complete



"<payload>" -> The developer payload string. This can be any string value and can be used to
identify the purchase, or may be left empty
8. Implementing the onActivityResult Method
9.

Implementing the Purchase Finished Listener

If we use new Security.java, it cause a problem when using SKU testing. So we have to
replace verifyPurchase function with the old version of Security.java
10. Releasing the IabHelper Instance

11. Testing the In-app Billing Application
12. Creating a New In-app Product






We have to upload signed APK to Google Play Developer
Console.
Create a new product, set the product type to Managed
product, enter a Product ID (it wil be our ITEM_SKU).
In the second screen enter a title, description and price for
the item.
Change the menu at the top of the page to Activate.
Save
13. Adding In-app Billing Test Accounts


Google will not allow developers to make test purchases
from their own Google accounts.



In order to test in-app billing from this point on, it will be
necessary to setup other Google accounts as testing
accounts.



To add a test user account :


Click on the Settings icon located on the left hand side of your Google Play Developer Console
home screen and on the account details screen scroll down to the License Testing section. In the
Settings icon located on the left hand side of your Google Play Developer Console.



Scroll down to the License Testing.
As long as the application remains in draft status
within the Google Play Developer console, no charges
will be incurred by the user whilst testing the in-app
billing
Resource:
 Sprix Project
 http://developer.android.com/google/play/billing/index.html
 http://www.techotopia.com/index.php/Integrating_Goo
gle_Play_In-app_Billing_into_an_Android_Application_
%E2%80%93_A_Tutorial
Thank you

Mais conteúdo relacionado

Mais procurados

What is new in Firebase?
What is new in Firebase?What is new in Firebase?
What is new in Firebase?Sinan Yılmaz
 
Inter warehouse transfer in odoo
Inter warehouse transfer in odooInter warehouse transfer in odoo
Inter warehouse transfer in odooCeline George
 
Firebase Introduction
Firebase Introduction Firebase Introduction
Firebase Introduction 9xdot
 
Locator control in oracle inventory
Locator control in oracle inventoryLocator control in oracle inventory
Locator control in oracle inventorysheshito
 
Oracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order ManagementOracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order ManagementBoopathy CS
 
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...Boopathy CS
 
Oracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move OrdersOracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move OrdersBoopathy CS
 
1-Inventory Management Cloud Service.pdf
1-Inventory Management Cloud Service.pdf1-Inventory Management Cloud Service.pdf
1-Inventory Management Cloud Service.pdfWalidShoman3
 
Oracle Inventory – Inventory Controls
Oracle Inventory – Inventory ControlsOracle Inventory – Inventory Controls
Oracle Inventory – Inventory ControlsBoopathy CS
 
Oracle R12 Inventory – Defining Unit of Measure
Oracle R12 Inventory – Defining Unit of MeasureOracle R12 Inventory – Defining Unit of Measure
Oracle R12 Inventory – Defining Unit of MeasureBoopathy CS
 
Oracle depot-repair-ppt
Oracle depot-repair-pptOracle depot-repair-ppt
Oracle depot-repair-pptKrishna Nayak
 
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...KPIT
 
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Boopathy CS
 
Setting up Security in Your Salesforce Instance
Setting up Security in Your Salesforce InstanceSetting up Security in Your Salesforce Instance
Setting up Security in Your Salesforce InstanceSalesforce Developers
 
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Boopathy CS
 
Substitute Receipt (Oracle-Purchasing R12.2.0)
Substitute Receipt (Oracle-Purchasing R12.2.0)Substitute Receipt (Oracle-Purchasing R12.2.0)
Substitute Receipt (Oracle-Purchasing R12.2.0)FAHAD ULLAH
 
Inventory in Oracle apps
Inventory in Oracle apps Inventory in Oracle apps
Inventory in Oracle apps gbalagee
 

Mais procurados (20)

What is new in Firebase?
What is new in Firebase?What is new in Firebase?
What is new in Firebase?
 
Inter warehouse transfer in odoo
Inter warehouse transfer in odooInter warehouse transfer in odoo
Inter warehouse transfer in odoo
 
Firebase Introduction
Firebase Introduction Firebase Introduction
Firebase Introduction
 
Locator control in oracle inventory
Locator control in oracle inventoryLocator control in oracle inventory
Locator control in oracle inventory
 
Oracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order ManagementOracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order Management
 
Discrete Job Closure Process
Discrete Job Closure ProcessDiscrete Job Closure Process
Discrete Job Closure Process
 
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...
 
Oracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move OrdersOracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move Orders
 
1-Inventory Management Cloud Service.pdf
1-Inventory Management Cloud Service.pdf1-Inventory Management Cloud Service.pdf
1-Inventory Management Cloud Service.pdf
 
Oracle Inventory – Inventory Controls
Oracle Inventory – Inventory ControlsOracle Inventory – Inventory Controls
Oracle Inventory – Inventory Controls
 
Oracle R12 Inventory – Defining Unit of Measure
Oracle R12 Inventory – Defining Unit of MeasureOracle R12 Inventory – Defining Unit of Measure
Oracle R12 Inventory – Defining Unit of Measure
 
Oracle depot-repair-ppt
Oracle depot-repair-pptOracle depot-repair-ppt
Oracle depot-repair-ppt
 
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...
 
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
 
Setting up Security in Your Salesforce Instance
Setting up Security in Your Salesforce InstanceSetting up Security in Your Salesforce Instance
Setting up Security in Your Salesforce Instance
 
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
 
Install base
Install baseInstall base
Install base
 
How to report bugs
How to report bugsHow to report bugs
How to report bugs
 
Substitute Receipt (Oracle-Purchasing R12.2.0)
Substitute Receipt (Oracle-Purchasing R12.2.0)Substitute Receipt (Oracle-Purchasing R12.2.0)
Substitute Receipt (Oracle-Purchasing R12.2.0)
 
Inventory in Oracle apps
Inventory in Oracle apps Inventory in Oracle apps
Inventory in Oracle apps
 

Destaque

Clean code lecture part I
Clean code lecture part IClean code lecture part I
Clean code lecture part IJun Shimizu
 
Android In-app Billing @ Droidcon Murcia
Android In-app Billing @ Droidcon MurciaAndroid In-app Billing @ Droidcon Murcia
Android In-app Billing @ Droidcon MurciaRobot Media
 
CIS 2015 SAML-IN / SAML-OUT - Scott Tomilson & John Dasilva
CIS 2015 SAML-IN / SAML-OUT - Scott Tomilson & John DasilvaCIS 2015 SAML-IN / SAML-OUT - Scott Tomilson & John Dasilva
CIS 2015 SAML-IN / SAML-OUT - Scott Tomilson & John DasilvaCloudIDSummit
 
Android in-app billing @ Google DevFest Barcelona 2012
Android in-app billing @ Google DevFest Barcelona 2012Android in-app billing @ Google DevFest Barcelona 2012
Android in-app billing @ Google DevFest Barcelona 2012Robot Media
 
Infinum Android Talks #18 - In-app billing by Ivan Marić
Infinum Android Talks #18 - In-app billing by Ivan MarićInfinum Android Talks #18 - In-app billing by Ivan Marić
Infinum Android Talks #18 - In-app billing by Ivan MarićInfinum
 
핑그래프(Fingra.ph) 모바일 광고 적용 사례
핑그래프(Fingra.ph) 모바일 광고 적용 사례핑그래프(Fingra.ph) 모바일 광고 적용 사례
핑그래프(Fingra.ph) 모바일 광고 적용 사례Fingra.ph
 
Design Pattern with Burger
Design Pattern with BurgerDesign Pattern with Burger
Design Pattern with BurgerJun Shimizu
 
Canadian Anti-Spam Legislation(CASL) & New Marketing Strategies
Canadian Anti-Spam Legislation(CASL) & New Marketing StrategiesCanadian Anti-Spam Legislation(CASL) & New Marketing Strategies
Canadian Anti-Spam Legislation(CASL) & New Marketing StrategiesDalia Asterbadi
 
realSociable Social Prospecting & Increasing Earned Value in Media
realSociable Social Prospecting & Increasing Earned Value in MediarealSociable Social Prospecting & Increasing Earned Value in Media
realSociable Social Prospecting & Increasing Earned Value in MediaDalia Asterbadi
 
Slicing Up the Mobile Services Revenue Pie
Slicing Up the Mobile Services Revenue PieSlicing Up the Mobile Services Revenue Pie
Slicing Up the Mobile Services Revenue PieSam Gellar
 
Final Presentation-KUHN
Final Presentation-KUHNFinal Presentation-KUHN
Final Presentation-KUHNshippensville
 

Destaque (13)

Clean code lecture part I
Clean code lecture part IClean code lecture part I
Clean code lecture part I
 
Android In-app Billing @ Droidcon Murcia
Android In-app Billing @ Droidcon MurciaAndroid In-app Billing @ Droidcon Murcia
Android In-app Billing @ Droidcon Murcia
 
CIS 2015 SAML-IN / SAML-OUT - Scott Tomilson & John Dasilva
CIS 2015 SAML-IN / SAML-OUT - Scott Tomilson & John DasilvaCIS 2015 SAML-IN / SAML-OUT - Scott Tomilson & John Dasilva
CIS 2015 SAML-IN / SAML-OUT - Scott Tomilson & John Dasilva
 
Android in-app billing @ Google DevFest Barcelona 2012
Android in-app billing @ Google DevFest Barcelona 2012Android in-app billing @ Google DevFest Barcelona 2012
Android in-app billing @ Google DevFest Barcelona 2012
 
Infinum Android Talks #18 - In-app billing by Ivan Marić
Infinum Android Talks #18 - In-app billing by Ivan MarićInfinum Android Talks #18 - In-app billing by Ivan Marić
Infinum Android Talks #18 - In-app billing by Ivan Marić
 
핑그래프(Fingra.ph) 모바일 광고 적용 사례
핑그래프(Fingra.ph) 모바일 광고 적용 사례핑그래프(Fingra.ph) 모바일 광고 적용 사례
핑그래프(Fingra.ph) 모바일 광고 적용 사례
 
Verma sons
Verma sonsVerma sons
Verma sons
 
Design Pattern with Burger
Design Pattern with BurgerDesign Pattern with Burger
Design Pattern with Burger
 
Canadian Anti-Spam Legislation(CASL) & New Marketing Strategies
Canadian Anti-Spam Legislation(CASL) & New Marketing StrategiesCanadian Anti-Spam Legislation(CASL) & New Marketing Strategies
Canadian Anti-Spam Legislation(CASL) & New Marketing Strategies
 
The beatles
The beatlesThe beatles
The beatles
 
realSociable Social Prospecting & Increasing Earned Value in Media
realSociable Social Prospecting & Increasing Earned Value in MediarealSociable Social Prospecting & Increasing Earned Value in Media
realSociable Social Prospecting & Increasing Earned Value in Media
 
Slicing Up the Mobile Services Revenue Pie
Slicing Up the Mobile Services Revenue PieSlicing Up the Mobile Services Revenue Pie
Slicing Up the Mobile Services Revenue Pie
 
Final Presentation-KUHN
Final Presentation-KUHNFinal Presentation-KUHN
Final Presentation-KUHN
 

Semelhante a [Android] Google Play in app billing

Monetize your app_with_google_subscriptions_v3_services_intuit
Monetize your app_with_google_subscriptions_v3_services_intuitMonetize your app_with_google_subscriptions_v3_services_intuit
Monetize your app_with_google_subscriptions_v3_services_intuitManohar Mahapatra
 
Testing In App Billing
Testing In App BillingTesting In App Billing
Testing In App BillingRyan Harter
 
Payments in Mobile Apps
Payments in Mobile AppsPayments in Mobile Apps
Payments in Mobile AppsCleveroad
 
Angular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginAngular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginKaty Slemon
 
Hospital app project (how to upload app)
Hospital app project (how to upload app)Hospital app project (how to upload app)
Hospital app project (how to upload app)MAHFUZ RAIHAN
 
How to make money with the Windows Store
How to make money with the Windows StoreHow to make money with the Windows Store
How to make money with the Windows StoreMicrosoft Schweiz
 
How to submit ios app in Appstore
How to submit ios app in AppstoreHow to submit ios app in Appstore
How to submit ios app in AppstoreNandini Gautam
 
Online shopping ecommerce java project
Online shopping ecommerce java projectOnline shopping ecommerce java project
Online shopping ecommerce java projectTutorial Learners
 
Google analytics for iOS
Google analytics for iOSGoogle analytics for iOS
Google analytics for iOSPawan Ramteke
 
Flutter Android / iOS Build Preparation
Flutter Android / iOS Build PreparationFlutter Android / iOS Build Preparation
Flutter Android / iOS Build Preparation9 series
 
Google external login setup in ASP (1).pdf
Google external login setup in ASP  (1).pdfGoogle external login setup in ASP  (1).pdf
Google external login setup in ASP (1).pdffindandsolve .com
 
Grocery Mangement Project in C
Grocery Mangement Project in CGrocery Mangement Project in C
Grocery Mangement Project in CMahmudul Alam
 
Develpment of an electronics website Case Study
Develpment of an electronics website Case StudyDevelpment of an electronics website Case Study
Develpment of an electronics website Case StudyElinext
 
Dodaii Detail English -tokyocamp-
Dodaii Detail English -tokyocamp-Dodaii Detail English -tokyocamp-
Dodaii Detail English -tokyocamp-feynman
 
iPhone first App Store submission
iPhone  first App Store submissioniPhone  first App Store submission
iPhone first App Store submissionPragati Singh
 
What’s new in android o
What’s new in android oWhat’s new in android o
What’s new in android oAhmed Nabil
 
Introduction to Digital Analytics for Apps - Trusted Conf
Introduction to Digital Analytics for Apps - Trusted ConfIntroduction to Digital Analytics for Apps - Trusted Conf
Introduction to Digital Analytics for Apps - Trusted ConfIn Marketing We Trust
 
Mobi: "In-app Payments by Google & Apple"
Mobi: "In-app Payments by Google & Apple"Mobi: "In-app Payments by Google & Apple"
Mobi: "In-app Payments by Google & Apple"MobileMonday Estonia
 

Semelhante a [Android] Google Play in app billing (20)

Monetize your app_with_google_subscriptions_v3_services_intuit
Monetize your app_with_google_subscriptions_v3_services_intuitMonetize your app_with_google_subscriptions_v3_services_intuit
Monetize your app_with_google_subscriptions_v3_services_intuit
 
Testing In App Billing
Testing In App BillingTesting In App Billing
Testing In App Billing
 
Payments in Mobile Apps
Payments in Mobile AppsPayments in Mobile Apps
Payments in Mobile Apps
 
Angular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginAngular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-login
 
Hospital app project (how to upload app)
Hospital app project (how to upload app)Hospital app project (how to upload app)
Hospital app project (how to upload app)
 
How to make money with the Windows Store
How to make money with the Windows StoreHow to make money with the Windows Store
How to make money with the Windows Store
 
Grocery App
Grocery AppGrocery App
Grocery App
 
How to submit ios app in Appstore
How to submit ios app in AppstoreHow to submit ios app in Appstore
How to submit ios app in Appstore
 
Online shopping ecommerce java project
Online shopping ecommerce java projectOnline shopping ecommerce java project
Online shopping ecommerce java project
 
Google analytics for iOS
Google analytics for iOSGoogle analytics for iOS
Google analytics for iOS
 
Flutter Android / iOS Build Preparation
Flutter Android / iOS Build PreparationFlutter Android / iOS Build Preparation
Flutter Android / iOS Build Preparation
 
Google external login setup in ASP (1).pdf
Google external login setup in ASP  (1).pdfGoogle external login setup in ASP  (1).pdf
Google external login setup in ASP (1).pdf
 
Grocery Mangement Project in C
Grocery Mangement Project in CGrocery Mangement Project in C
Grocery Mangement Project in C
 
Develpment of an electronics website Case Study
Develpment of an electronics website Case StudyDevelpment of an electronics website Case Study
Develpment of an electronics website Case Study
 
Dodaii Detail English -tokyocamp-
Dodaii Detail English -tokyocamp-Dodaii Detail English -tokyocamp-
Dodaii Detail English -tokyocamp-
 
iPhone first App Store submission
iPhone  first App Store submissioniPhone  first App Store submission
iPhone first App Store submission
 
What’s new in android o
What’s new in android oWhat’s new in android o
What’s new in android o
 
Introduction to Digital Analytics for Apps - Trusted Conf
Introduction to Digital Analytics for Apps - Trusted ConfIntroduction to Digital Analytics for Apps - Trusted Conf
Introduction to Digital Analytics for Apps - Trusted Conf
 
SmartVision Android App
SmartVision Android AppSmartVision Android App
SmartVision Android App
 
Mobi: "In-app Payments by Google & Apple"
Mobi: "In-app Payments by Google & Apple"Mobi: "In-app Payments by Google & Apple"
Mobi: "In-app Payments by Google & Apple"
 

Último

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Último (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

[Android] Google Play in app billing

  • 1. By : Franky Wijanarko PT. BUZOO INDONESIA
  • 2. In-app Billing is a Google Play service that lets you sell digital content from inside your applications  You can use In-app Billing to sell products as: - Standard in-app products (one-time billing), - Subscriptions, (recurring, automated billing)  Any application that you publish through Google Play can implement In-app Billing. 
  • 3. In-app Billing version 1 March 2011  In-app Billing version 2 May 2012  In-app Billing version 3 February 2013 
  • 4.  Managed In-app Products This means that the user's ownership of all in-app item purchases is maintained by Google Play, and your application can query the user's purchase information when needed.
  • 5. 2 Types of Managed In-app Products : ◦ Non-consumable Items Once purchased, these items will be permanently associated to the user's Google account. An example of a non-consumable inapp product is a premium upgrade or a level pack. ◦ Consumable items Implement consumption for items that can be made available for purchase multiple times. Typically, these items provide certain temporary effects. For example, the user's in-game character might gain life points or gain extra gold coins in their inventory.
  • 6.  Subscriptions A subscription is a product type offered in In-app Billing that lets you sell content, services, or features to users from inside your app with recurring monthly or annual billing.
  • 7.  To implement In-app Billing in your application, you need to do the following: 1. Installing the Google Play Billing Library Check whether or not the library is installed by launching the Android SDK Manager by selecting the Eclipse Window -> Android SDK Manager menu option, scroll down to the Extras section and the Status column next to the Google Play Billing Library
  • 8.
  • 9. 2. Adding Billing Permission to the Manifest File
  • 10. 3. Adding the IInAppBillingService.aidl File to the Project
  • 11. 4. Adding the Utility Classes to the Project
  • 12. 5. Obtaining the Public License Key for the Application   Create new Application Click on the Services & APIs option to display the Base64encoded RSA public key for the application
  • 13. 6. Setting Up Google Play Billing in the Application
  • 14. After success, we can add additional code to get an inventory of stuff we own : mHelper.queryInventoryAsync(mGotInventoryListener); mGotInventoryListener -> Listener that's called when we finish querying the items and subscriptions we own
  • 15.
  • 16. 7. Initiating a Google Play In-app Billing Purchase NOTE:  MainActivity.this -> A reference to the enclosing Activity instance from which the method is being called  ITEM_SKU -> The SKU that identifies the product that is being purchased  10001 -> he request code which can be any positive integer value  mPurchaseFinishedListener -> The listener method to be called when the purchase is complete  "<payload>" -> The developer payload string. This can be any string value and can be used to identify the purchase, or may be left empty
  • 17. 8. Implementing the onActivityResult Method
  • 18. 9. Implementing the Purchase Finished Listener If we use new Security.java, it cause a problem when using SKU testing. So we have to replace verifyPurchase function with the old version of Security.java
  • 19. 10. Releasing the IabHelper Instance 11. Testing the In-app Billing Application
  • 20. 12. Creating a New In-app Product      We have to upload signed APK to Google Play Developer Console. Create a new product, set the product type to Managed product, enter a Product ID (it wil be our ITEM_SKU). In the second screen enter a title, description and price for the item. Change the menu at the top of the page to Activate. Save
  • 21. 13. Adding In-app Billing Test Accounts  Google will not allow developers to make test purchases from their own Google accounts.  In order to test in-app billing from this point on, it will be necessary to setup other Google accounts as testing accounts.  To add a test user account :  Click on the Settings icon located on the left hand side of your Google Play Developer Console home screen and on the account details screen scroll down to the License Testing section. In the Settings icon located on the left hand side of your Google Play Developer Console.  Scroll down to the License Testing.
  • 22. As long as the application remains in draft status within the Google Play Developer console, no charges will be incurred by the user whilst testing the in-app billing Resource:  Sprix Project  http://developer.android.com/google/play/billing/index.html  http://www.techotopia.com/index.php/Integrating_Goo gle_Play_In-app_Billing_into_an_Android_Application_ %E2%80%93_A_Tutorial