Skip to main content
This is the most flexible way to accept payments. Your server creates a payment intent for each order, so the price can’t be changed in the browser, and you can add split payments, coupons, saved customers and your own references.

Complete example

A small Express app: a checkout button, a page to come back to, and a webhook endpoint.
Run it with your test key and webhook secret, then use the CLI to get webhooks on your machine:

Why the price comes from the server

The browser only sends “I want to check out”. Your server decides the amount. Nobody can change the price by editing your page.

Going further

All payment intent options

Customers, coupons, payment methods, callbacks and more.

Charge a wallet directly

Skip the checkout page and send the request to the customer’s phone.

Split the payment

Send part of each payment to a partner.

Refund

Give money back, in full or in part.