-
Copy
.env.example
to.env
-
Set
STRIPE_SECRET_KEY
andSTRIPE_PUBLISHABLE_KEY
in.env
. -
Download Composer into this project's directory.
-
From this project's directory, run
php composer.phar install
to install dependencies. -
Run
php artisan key:generate
-
Start the development web server with
php artisan serve
-
Navigate to http://localhost:8000/checkout
-
routes/web.php -- Creates the server-side CheckoutSession.
-
resources/views/checkout.blade.php -- Includes Stripe.js and sets up the Checkout button.
- Webhooks for handling checkout.session.completed events
- Receipt page that handles redirects from Checkout.