Skip to content

xiaoshen-stripe/demo-qr-code-stripe-checkout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stripe Developer Office Hours - Checkout with QR code

🎬 Watch on YouTube

Deployed demo app

Requirements

How to run Server

This project uses Express web framework for Node.js as its server. Here's how to run it after cloning.

  1. Create and populate a .env file. There's a sample .env file in server/. Paste in the API keys for your account and 3 price IDs.

  2. Install dependencies, and start up the backend server.

cd server/
npm install
npm start

How to run Client

This project uses React as its client. Here's how to run it after cloning.

  1. [Customize the look and feel of Checkout in the Stripe Dashboard] by going to Brand Settings(https://stripe.com/docs/payments/checkout/customization#branding).

  2. Create 3 products and prices using the Stripe Dashboard.

  3. Install dependencies, and start up the React client.

cd client/
npm install
npm start
  1. Go in your browser http://localhost:3000 to see the demo

A gif of contactless payment using QR code

Note

If you would like to try this out end-to-end using your own phone, you would need to either 1) deploy this app (e.g. using Heroku) so it has an publically accessible url, and update this info in the .env file. Or 2) use tools such as ngrok.

More resources

About

Contactless payment demo with Stripe Checkout using React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published