https://stripe.com/docs/payments/integration-builder
- Install the stripe php library via the composer.
composer require stripe/stripe-php
https://laravel.com/docs/8.x/billing#introduction
- Install the Cashier package for stripe using composer package manager.
composer require laravel/cashier
Billable Model https://laravel.com/docs/8.x/billing#billable-model
- Before using Cashier, add the Billable trait to your billable model definition.
use Billable;
https://laravel.com/docs/8.x/billing#api-keys
- Next, you should configure your Stripe API keys in your application's .env file.