Skip to content

anitapeppercorn/Simple-Stripe-Checkout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-Stripe-Checkout

Simple Stripe Checkout Demo using react. leveraged from Stripe original documentations and further simplified.

This is Tested and deployed on Heroku and works. https://heroku-stripe-simple.herokuapp.com/

To try, clone repo and setup a .env in /server folder and include items below. visit this site to generate your stripe API key - https://stripe.com/docs/keys npm i and npm start in directory ..

DOMAIN="http://localhost:3000" 
//(in production this will be the url)

PAYMENT_METHODS="card"

PRICE=price_XXXXXXXXXXXX

STATIC_DIR="../client"

STRIPE_PUBLISHABLE_KEY="pk_test_XXXXXXXXXXXX"

STRIPE_SECRET_KEY="sk_test_XXXXXXXXXXXXXX"

XXXXXX is your test specific key information

example PRICE=price_1HiPxg2eZvKYlo2C5g3rIPkx

example STRIPE_PUBLISHABLE_KEY="pk_test_TYooMQauvdEDq54NiTphI7jx"

example STRIPE_SECRET_KEY="sk_test_4eC39HqLyjWDarjtT1zdp7dc"

MIT license and original authored by @thorsten-stripe This project was bootstrapped with Create React App.

About

Simple Stripe Checkout Demo using react.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published