Walk through the basics of building a simple one-time SCA compliant payment flow with the Stripe API and PHP following this guide.
Follow these instructions to spin-up a copy of this demo project up on your local machine for development and testing purposes. This is meant to be a guide to show you how to go about building an SCA ready one-time payment flow.
- Configure your keys
Copy the example .env
file and update those values with your Stripe API keys.
cp .env.example .env
Then, be sure to update the publishable key (pk_xxx) in client/index.html.
- Start the server
cd server/php
composer install
composer start
- Listen for webhooks (in another tab)
stripe listen --forward-to http://localhost:4242/webhooks
- Run the demo