Commercial Integrations / Stripe
Payments
A closer look at Payments.
Photo by Yosuke Ota on Unsplash
Accepting payments with Stripe Checkout
Stripe Checkout hosts the payment UI on Stripe's domain: your server creates a Session, the browser redirects, and webhooks confirm the sale. This runbook wires Checkout into Express for one-time Prices with success and cancel pages.
Custom payment forms with the Payment Element
When Checkout's hosted page is not enough, embed the Payment Element: your server creates a PaymentIntent, the browser mounts Stripe.js UI, and confirmPayment finishes authentication. This runbook compares that path with Checkout for Express apps.
Subscriptions in Stripe
Subscriptions bill Customers on a recurring Price, generate Invoices, and change state over time. This chapter uses Checkout in subscription mode, syncs access through webhooks, and touches upgrades, trials, and the Customer Portal.