https://github.com/revenuecat/purchases-android
Android in-app purchases and subscriptions made easy.
https://github.com/revenuecat/purchases-android
android hacktoberfest iap receipt-validation
Last synced: 3 months ago
JSON representation
Android in-app purchases and subscriptions made easy.
- Host: GitHub
- URL: https://github.com/revenuecat/purchases-android
- Owner: RevenueCat
- License: mit
- Created: 2018-03-29T20:59:15.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T10:50:44.000Z (over 1 year ago)
- Last Synced: 2024-10-29T11:55:17.172Z (over 1 year ago)
- Topics: android, hacktoberfest, iap, receipt-validation
- Language: Kotlin
- Homepage: https://www.revenuecat.com/
- Size: 11.6 MB
- Stars: 253
- Watchers: 12
- Forks: 52
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.latest.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
😻 In-App Subscriptions Made Easy 😻
[](https://github.com/RevenueCat/purchases-android/blob/main/LICENSE)
[](https://github.com/RevenueCat/purchases-android/releases)
RevenueCat is a powerful, reliable, and free to use in-app purchase server with cross-platform support. Our open-source framework provides a backend and a wrapper around StoreKit and Google Play Billing to make implementing in-app purchases and subscriptions easy.
Whether you are building a new app or already have millions of customers, you can use RevenueCat to:
* Fetch products, make purchases, and check subscription status with our [native SDKs](https://docs.revenuecat.com/docs/installation).
* Host and [configure products](https://docs.revenuecat.com/docs/entitlements) remotely from our dashboard.
* Analyze the most important metrics for your app business [in one place](https://docs.revenuecat.com/docs/charts).
* See customer transaction histories, chart lifetime value, and [grant promotional subscriptions](https://docs.revenuecat.com/docs/customers).
* Get notified of real-time events through [webhooks](https://docs.revenuecat.com/docs/webhooks).
* Send enriched purchase events to analytics and attribution tools with our easy integrations.
Sign up to [get started for free](https://app.revenuecat.com/signup).
## Purchases
*Purchases* is the client for the [RevenueCat](https://www.revenuecat.com/) subscription and purchase tracking system. It is an open source framework that provides a wrapper around `BillingClient` and the RevenueCat backend to make implementing in-app subscriptions in `Android` easy - receipt validation and status tracking included!
## Migration Guides
| Description | Link |
| --- | --- |
| Migrating from v4.x.x to v5.x.x | [V5 API Migration Guide](./migrations/v5-MIGRATION.md) |
| Migrating from v5.x.x to v6.x.x | [V6 API Migration Guide](./migrations/v6-MIGRATION.md) |
## RevenueCat SDK Features
| | RevenueCat |
| --- | --- |
✅ | Server-side receipt validation
➡️ | [Webhooks](https://docs.revenuecat.com/docs/webhooks) - enhanced server-to-server communication with events for purchases, renewals, cancellations, and more
🎯 | Subscription status tracking - know whether a user is subscribed whether they're on iOS, Android or web
📊 | Analytics - automatic calculation of metrics like conversion, mrr, and churn
📝 | [Online documentation](https://docs.revenuecat.com/docs) up to date
🔀 | [Integrations](https://www.revenuecat.com/integrations) - over a dozen integrations to easily send purchase data where you need it
💯 | Well maintained - [frequent releases](https://github.com/RevenueCat/purchases-android/releases)
📮 | Great support - [Help Center](https://revenuecat.zendesk.com)
## Getting Started
For more detailed information, you can view our complete documentation at [docs.revenuecat.com](https://docs.revenuecat.com/docs).
Please follow the [Quickstart Guide](https://docs.revenuecat.com/docs/) for more information on how to install the SDK.
Or view / build our Android sample app:
- [MagicWeather](examples/MagicWeather) (open it on a different Android Studio window)
## Codelab
1. [RevenueCat Google Play Integration](https://revenuecat.github.io/codelab/google-play/codelab-1-google-play-integration/index.html#0): In this codelab, you'll learn how to:
- Properly configure products on Google Play.
- Set up the RevenueCat dashboard and connect it to your Google Play products.
- Understanding Product, Offering, Package, and Entitlement.
- Create paywalls using the [Paywall Editor](https://www.revenuecat.com/docs/tools/paywalls/creating-paywalls#using-the-editor).
2. [Android In-App Purchases & Paywalls](https://revenuecat.github.io/codelab/android/codelab-2-android-sdk/index.html#0): In this codelab, you will:
- Integrate the Android RevenueCat SDK into your project
- Implement in-app purchases in your Android application
- Learn how to distinguish between paying and non-paying users
- Build a paywall screen, which is based on server-driven UI approach
## Requirements
- Java 8+
- Kotlin 1.8.0+
- Minimum target: Android 5.0+ (API level 21+)
## SDK Reference
Our full SDK reference [can be found here](https://sdk.revenuecat.com/android/index.html).
## Contributing
Contributions are always welcome! To learn how you can contribute, please see the [Contributing Guide](./CONTRIBUTING.md).