WagnerMatos / stripe-orders-nextjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom checkout flow quickstart

Build a checkout form with Orders and Elements to automatically calculate sales tax, VAT, and GST and complete a payment using various payment methods. 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
npx playwright install
  1. Add .env

Copy .env.local.example to .env.local and add your stripe testing key.

  1. Run the application
npm run dev
  1. Go to http://localhost:3000

Testing

Shut down any active servers, then run:

npm run test

About


Languages

Language:TypeScript 87.1%Language:CSS 12.3%Language:JavaScript 0.6%