Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.24 KB

File metadata and controls

41 lines (27 loc) · 1.24 KB

Accept payments with Stripe Checkout (React client-only)

This is a React version of the HTML + Vanilla JavaScript client implementation. It works with any of the backends in the server folder.

Setup

cp .env.example .env

In the newly created .env file, set the values:

  • Set the price ID that you created in the Dashboard for REACT_APP_PRICE_ID
  • Copy your publishable key from: https://dashboard.stripe.com/apikeys and set it as the value for REACT_APP_STRIPE_PUBLISHABLE_KEY
  • Set REACT_APP_BASE_PRICE and REACT_APP_CURRENCY to match your sku details from the Dashboard

How to run

  1. Install the dependecies
npm install
  1. Start the React client
npm start

Credits