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

Latest commit

 

History

History

2020-10-08-accept-a-payment

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Developer Office Hours

Stripe Developer Office Hours - Accept a payment

🎬 Watch on YouTube

Requirements

How to run

This project uses Sinatra as its server. Here's how to run it after cloning.

  1. Create and populate a .env file. There's a starter example you can copy in server/.
cp server/.env.example server/.env
# Then open server/.env in your text editor and paste in the API keys for your account and a Price ID.
  1. Install dependencies and start up the server.
cd server/
bundle install
ruby server
  1. Go in your browser http://localhost:4242 to see the demo

More resources