Skip to content

hamidval/stripe-checkout-php

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages