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-11-21-checkout

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Stripe Checkout 2019-11-21

Learn how to collect one-time Payments and setup Subscriptions with Stripe Checkout.

🎬 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 a Stripe Checkout payment flow for one time and recurring payments.

Prerequisites

Step by step

  1. Configure your keys

Set your secret API key and webhook signing secret in the index.php file.

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. Run the demo

For test cards see https://stripe.com/docs/testing#cards.

Step 1: Saving card details

Browse to http://localhost:4242 and click "Buy"

*Step 2: Complete Checkout and view payment status

More Resources

Demo