ashkanab/in-app-purchase-laravel

Your package description

1.1.1 2025-03-18 13:14 UTC

This package is auto-updated.

Last update: 2025-04-18 13:25:57 UTC


README

Laravel App Store In-App Purchase Package

Streamline your iOS app's in-app purchase integration with our robust Laravel package. Designed for developers seeking a reliable and easy-to-use solution for handling App Store in-app purchases server-side.

Key Features:

  • Seamless Integration: Easily incorporate App Store in-app purchases into your Laravel application.
  • Receipt Validation: Securely validate receipts with Apple's servers to prevent fraud.
  • Subscription Management: Effortlessly handle subscription lifecycles, including renewals and expirations.

Technical Specifications:

  • Requires Laravel 9.0+
  • PHP 8.2 or higher

Getting Started

  1. Install via Composer:composer require ashkanab/in-app-purchase-laravel
  2. Publish the configuration file and migration file: php artisan vendor:publish --provider="AppStore\InAppPurchase\PurchaseServiceProvider"
  3. Set up your App Store Connect credentials in published config file named purchase.php.
  4. (optional) use HasSubscription trait and implement Subscriptionable interface in your user model.