Checkout Sessions
Checkout Elements
A custom checkout page on a Checkout Session. The order summary, quantity, and promotion code all read from and write to the session through useCheckoutElements.
- CheckoutElementsProvider
- useCheckoutElements
- PaymentElement
- BillingAddressElement
Creating a Checkout Session…
Test data
- 4242 4242 4242 4242Succeeds · Any future date and any CVC
- 4000 0025 0000 3155Requires 3D Secure · Complete or fail the test authentication
- 4000 0000 0000 9995Declined · Fails with insufficient funds
Promotion codes must exist in the Stripe account first. Create one under Product catalog, Coupons in the test Dashboard.
Interact with the demo to see element events here.