Accept a Payment

Build a simple checkout form to collect payment details. Included are some basic build and run scripts you can use to start up the application.

Running the sample

  1. Build the application
npm install
  1. Configuration
Copy .env.example to .env , add your current stripe secret and public key from yon stripe dashboard, and your redirect URL for payment confirmation
  1. Run the application
npm start
  1. Go to http://localhost:3000/checkout
Stripe Documentation
  1. Go to https://stripe.com/docs

  2. Stripe Quick start https://stripe.com/docs/payments/quickstart