/laravel-in-app-purchases

Validate products and subscription receipts. Handle subscription lifecycle.

Primary LanguagePHPMIT LicenseMIT

Laravel In-app Purchase cover

Packagist PHP Version Support Latest Version on Packagist Total Downloads GitHub last commit CI

✅ App Store ✅ Google Play

Laravel In-App purchase

Google Play and App Store provide the In-App Purchase (IAP) services. IAP can be used to sell a variety of content, including subscriptions, new features, and services. The purchase event and the payment process occurs on and handled by the mobile application (iOS and Android), then your backend needs to be informed about this purchase event to deliver the purchased product or update the user's subscription state.

Laravel In-App purchase comes to help you to parse and validate the purchased products and handle the different states of a subscription, like New subscription , auto-renew, cancellation, expiration and etc.

Installation

Use composer to install the package:

composer require imdhemy/laravel-purchases

Sponsor this project 🙏

When I started this project, I used to have an Apple Developer Program membership, but now I don't have it anymore. The membership is required to test the Apple IAP Notifications, and it costs $99/year. If you find this package useful and you want to support this work, click on the sponsor button to the right.

Documentation

The documentation is available on Liap manual.

License

Laravel In-App purchase is licensed under the MIT license.