Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Latest commit

 

History

History

2019-08-14-auto-confirm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Office Hours 2019-08-14

Walk through the basics of building a simple one-time SCA compliant payment flow with the Stripe API and PHP following this guide.

🎬 Watch on YouTube

Getting Started

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.

Prerequisites

Step by step

  1. 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.

  1. Start the server
cd server/php
composer install
composer start
  1. Listen for webhooks (in another tab)
stripe listen --forward-to http://localhost:4242/webhooks
  1. Run the demo

Open http://localhost:4242

More Resources