Stripe Web Elements
Create your own checkout flows with prebuilt UI components.
Stripe Elements is a set of prebuilt UI components for building your web checkout flow. It’s available as a feature of Stripe.js, our foundational JavaScript library for building payment flows. Stripe.js tokenizes sensitive payment details within an Element without ever having them touch your server.
Global payment methods: Access to over 100 global payment methods, including wallets like Apple Pay.
Link: Help your customers check out faster by letting them select a saved payment method at checkout instead of entering payment information.
Saved payment methods: Save, reuse, and manage cards and bank accounts with built-in features.
Compliance: Stripe provides a globally compliant interface and handles requirements for displaying mandates and consent notices to customers.
Up-to-date forms: Localized forms with built-in error handling. Stripe keeps each payment method provider’s requirements up to date.
Address collection: Collect full or partial billing addresses with any payment method.
Appearance customization: Customize the look and feel of Elements to match the design of your site.
Additional features, such as CVC recollection and control over which card brands and funding types you accept.
The feature guides linked in this list describe how to use Elements with the Payment Intents API. If you use Elements with the Checkout Sessions API, start with the Elements quickstart and see the Stripe Checkout guides.
Get started
If you don’t see your Element below, find more in the Stripe.js API reference.
Compatible APIs
Stripe recommends using the Checkout Sessions API with the Payment Element. This integration lets you set up basic payments with price_ or full checkout logic with line items, tax, discounts, shipping, subscriptions, or Adaptive Pricing. Build a checkout page with the Checkout Sessions API.
If you need to own your checkout flow end-to-end and build these features yourself, you can use the Payment Intents API with the Payment Element. This integration lets you pass in a final amount and build all checkout logic yourself, including tax calculation, discounts, shipping, subscriptions, and currency conversion. Build a custom integration with the Payment Intents API.