Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 2.1 KB

File metadata and controls

35 lines (22 loc) · 2.1 KB

Accept payments with Stripe Checkout (client-only integration)

You can create Checkout pages without a server by creating Products and Prices in the Stripe Dashboard before launching your integration. Then pass the Price ID of your Product to stripe.redirectToCheckout on the client when your customer checks out.

A flowchart of the Checkout flow

Setup

Run locally

From the project directory, navigate to this folder:

cd client-only/client

Since these are all static assets you can serve them locally with a simple web server, e.g.

python -m SimpleHTTPServer 4242

You can now view your page at http://localhost:4242

If you're getting an error running this command, see more detailed insturctions on MDN.

Go live