This module provides Stripe integration for WebFramework, offering a clean interface to interact with Stripe's API for handling payments, subscriptions, and webhooks.
- Stripe customer management
- Product and price creation
- Subscription handling
- Webhook verification
- Invoice retrieval
- Production and development environment support
- PHP 8.2 or higher
- WebFramework 8.x
- Stripe PHP SDK 7.128 or higher
Install via Composer:
composer require avoutic/web-framework-stripeMake sure the definitions file is included in your project by adding it to definition_files in your config.php file:
return [
'definition_files' => [
'../vendor/avoutic/web-framework/definitions/definitions.php',
'../vendor/avoutic/web-framework-stripe/definitions/definitions.php',
'app_definitions.php',
],
];If you are using the definition from definitions/defitinions.php. You can just add the following stripe.php to your auth config directory (config/auth):
<?php
return [
'api_key' => env('STRIPE_SECRET_KEY'),'your_stripe_secret_key',
'publishable_api_key' => env('STRIPE_PUBLISHABLE_KEY'),
'endpoint_secret' => env('STRIPE_WEBHOOK_SECRET')
]