Accept payments with Stripe Checkout (client and server integration) The CheckoutSessions API allows for dynamic amounts and line items but requires a server to create the session.