IAP Apple & Google
Cody P Christian
NativePHP^3.0 || ^4.0iOS18.2+Android26+
Auto-renewing subscriptions and in-app purchases from PHP — StoreKit 2 on iOS and Google Play Billing 8 on Android — with a unified synchronous API across both platforms.
Features
- Subscription management — auto-renewing subscriptions on iOS and Android
- Server-side verification — signed transaction tokens (iOS) and purchase tokens (Android)
- Restored purchases and entitlement checking
- Base plan selection for Android multi-plan products
- Automatic acknowledgment — Play purchases acknowledged within the 3-day requirement
- Synchronous PHP surface wrapping asynchronous native operations
- Consistent error handling — normalized responses across platforms
Installation
composer config repositories.nativephp-plugins composer https://plugins.nativephp.com
composer config http-basic.plugins.nativephp.com your@email.com your-license-key
php artisan vendor:publish --tag=nativephp-plugins-provider
composer require codypchristian/nativephp-iap
php artisan native:plugin:register codypchristian/nativephp-iap
php artisan native:install --force