All Projects → akshaaatt → Google-IAP

akshaaatt / Google-IAP

Licence: GPL-3.0 license
Android Library for easing Google Play Billing to your apps with support for Subscriptions, In-App Purchases and Consumables with a beautiful sample app.

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Google-IAP

RxBilling
Rx wrapper for Billing Library with connection management
Stars: ✭ 79 (-38.76%)
Mutual labels:  purchase, billing, subscriptions, inapppurchase
In App Purchase
A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows.
Stars: ✭ 868 (+572.87%)
Mutual labels:  subscription, purchase, billing
Stripe
A comprehensive PHP Library for the Stripe.
Stars: ✭ 256 (+98.45%)
Mutual labels:  subscription, billing
Chip
A drop-in subscription billing UI for Laravel
Stars: ✭ 91 (-29.46%)
Mutual labels:  subscription, billing
cashier-paystack
Cashier provides an expressive, fluent interface to Paystack's subscription billing services.
Stars: ✭ 44 (-65.89%)
Mutual labels:  billing, subscriptions
Android-MonetizeApp
A sample which uses Google's Play Billing Library and it makes In-app Purchases and Subscriptions.
Stars: ✭ 149 (+15.5%)
Mutual labels:  subscription, inapppurchase
PurchaseHelper
Sample app to explain the In-App purchase implementation in Android using Play-billing library
Stars: ✭ 30 (-76.74%)
Mutual labels:  subscription, purchase
recurly
A Recurly API client written in golang. Actively maintained and unit tested. No external dependencies.
Stars: ✭ 40 (-68.99%)
Mutual labels:  subscription, billing
Qonversion Ios Sdk
iOS SDK for cross-platform in-app purchase and subscription infrastructure, revenue analytics, engagement automation, and integrations
Stars: ✭ 206 (+59.69%)
Mutual labels:  purchase, subscriptions
DYFStoreKit
([Swift] https://github.com/chenxing640/DYFStore) A lightweight and easy-to-use iOS library for In-App Purchases (Objective-C). DYFStoreKit uses blocks and notifications to wrap StoreKit, provides receipt verification and transaction persistence and doesn't require any external dependencies.
Stars: ✭ 52 (-59.69%)
Mutual labels:  purchase, iap
cordova-plugin-purchases
Cordova in-app purchases and subscriptions made easy.
Stars: ✭ 52 (-59.69%)
Mutual labels:  subscription, iap
subscribie
Collect recurring payments online - subscription payments collection automation
Stars: ✭ 36 (-72.09%)
Mutual labels:  subscription, billing
drf-stripe-subscription
An out-of-box Django REST framework solution for payment and subscription management using Stripe.
Stars: ✭ 42 (-67.44%)
Mutual labels:  subscription, billing
google-play-billing-validator
Npm module for Node.js to validate In-app purchases and Subscriptions on your backend
Stars: ✭ 72 (-44.19%)
Mutual labels:  subscription, purchase
tg-inviter
Generate personal invite links for Telegram channels
Stars: ✭ 26 (-79.84%)
Mutual labels:  subscription, subscriptions
Apphudsdk
Build, Measure and Grow iOS subscription business
Stars: ✭ 93 (-27.91%)
Mutual labels:  subscription, purchase
Flutter iap
Flutter iap plugin
Stars: ✭ 101 (-21.71%)
Mutual labels:  purchase, billing
Premiumer
Premiumer makes removing ads with a single in-app purchase on Android as easy as pie.
Stars: ✭ 153 (+18.6%)
Mutual labels:  purchase, billing
killbill-stripe-plugin
Kill Bill plugin for Stripe
Stars: ✭ 16 (-87.6%)
Mutual labels:  billing, subscriptions
kbcli
GO client library for Kill Bill
Stars: ✭ 22 (-82.95%)
Mutual labels:  billing, subscriptions

Google-IAP (Play Billing Library Version 5.0.0)

GitHub issues GitHub last commit GitHub issues GitHub pull requests

FeaturesDevelopmentUsageLicenseContribution


Google-IAP


ezgif-com-gif-maker-3.gif

IAP is an Android library to handle In-App purchases with minimal code.

Features

  • Written in Kotlin
  • No boilerplate code
  • Easy initialization
  • Supports InApp & Subscription products
  • Simple configuration for consumable products

Gradle Dependency

  • Add the JitPack repository to your project's build.gradle file
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  • Add the dependency in your app's build.gradle file
dependencies {
    implementation 'com.github.akshaaatt:Google-IAP:1.2.2'
}

Development

  • Prerequisite: Latest version of the Android Studio and SDKs on your pc.
  • Clone this repository.
  • Use the gradlew build command to build the project directly or use the IDE to run the project to your phone or the emulator.

Usage

Establishing connection with Play console

 val iapConnector = IapConnector(
            context = this, // activity / context
            nonConsumableKeys = nonConsumablesList, // pass the list of non-consumables
            consumableKeys = consumablesList, // pass the list of consumables
            subscriptionKeys = subsList, // pass the list of subscriptions
            key = "LICENSE KEY" // pass your app's license key
            enableLogging = true // to enable / disable logging
        )

Receiving events

 iapConnector.addPurchaseListener(object : PurchaseServiceListener {
            override fun onPricesUpdated(iapKeyPrices: Map<String, DataWrappers.SkuDetails>) {
                // list of available products will be received here, so you can update UI with prices if needed
            }

            override fun onProductPurchased(purchaseInfo: DataWrappers.PurchaseInfo) {
               // will be triggered whenever purchase succeeded
            }

            override fun onProductRestored(purchaseInfo: DataWrappers.PurchaseInfo) {
                // will be triggered fetching owned products using IapConnector
            }
        })

 iapConnector.addSubscriptionListener(object : SubscriptionServiceListener {
            override fun onSubscriptionRestored(purchaseInfo: DataWrappers.PurchaseInfo) {
                // will be triggered upon fetching owned subscription upon initialization
            }

            override fun onSubscriptionPurchased(purchaseInfo: DataWrappers.PurchaseInfo) {
                // will be triggered whenever subscription succeeded
            }

            override fun onPricesUpdated(iapKeyPrices: Map<String, DataWrappers.SkuDetails>) {
                // list of available products will be received here, so you can update UI with prices if needed
            }
        })

Making a purchase

iapConnector.purchase(this, "<sku>")

Making a subscription

iapConnector.susbcribe(this, "<sku>")

Removing a subscription

iapConnector.unsubscribe(this, "<sku>")

Sample App

  • Add your products to the developer console

  • Replace the key with your App's License Key

Apps Using this Library

License

This Project is licensed under the GPL version 3 or later.

Contribution

You are most welcome to contribute to this project!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].