Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Developer tools
Get started
Payments
Finance automation
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Overview
About Stripe payments
Upgrade your integration
Payments analytics
Online payments
OverviewFind your use caseManaged Payments
Use Payment Links
Build a checkout page
Build an advanced integration
Build an in-app integration
Payment Methods
Add payment methods
Manage payment methods
Faster checkout with Link
Payment interfaces
Payment Links
Checkout
Web Elements
    Overview
    Payment Element
    Express Checkout Element
    Address Element
    Currency Selector Element
    Link Authentication Element
    Payment Method Messaging Element
In-app Elements
Payment scenarios
Custom payment flows
Flexible acquiring
Orchestration
In-person payments
Terminal
Other Stripe products
Financial Connections
Crypto
Climate
HomePaymentsWeb Elements

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 buyers.
  • 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.
  • Other features: Additional features like CVC recollection and control over which card brands you accept.

Explore the demo

Get started

If you don’t see your Element below, find more in the Stripe.js API Reference.

Payment Element
Recommended
Accept a payment with one or multiple payment methods securely, including cards.
Express Checkout Element
Recommended
Display popular Wallets like Apple Pay, Google Pay, and PayPal.
Link Authentication Element
Link auto-fills your customers’ payment and shipping details to reduce friction and deliver an easy and secure checkout experience.
Address Element
Collect address information and display Link saved addresses.
Payment Method Messaging Element
Automatically inform customers about available Buy now, Pay later plans.
Checkout Session API only
Currency Selector Element
Let customers pay in their local currency with Adaptive Pricing.

Compatible APIs

Stripe offers two core payments APIs compatible with Elements that give you the flexibility to accept various types of payments from your customers. You can integrate these APIs into Stripe’s prebuilt payment interfaces. While we recommend using Checkout Sessions for most users, the APIs serve slightly different use cases depending on how you choose to structure your checkout flow and how much control you require. You can build a checkout page with the Checkout Session API or build an advanced integration with the Payment Intents API.

  • The Checkout Sessions API allows you to model your customer’s checkout flow. This includes the line items included in their purchase, billing and shipping addresses, applicable tax rates, and coupons or discounts. The Checkout Session allows you to create subscriptions, calculate tax rates with Stripe Tax, and initiate payments.
  • The Payment Intents API allows you to model the payments step. Unlike the Checkout Sessions API, which requires line item details, you only pass in the final amount you want to charge. This is suitable for payment flows, such as off-session payments. If you want to use Stripe to calculate applicable taxes or create subscriptions, you must integrate with the Stripe Tax API or Subscriptions API, respectively.
Checkout Sessions include customer information, shipping, tax, discounts, coupons, and payments integrations, while Payment Intents only handle payments integration.
Was this page helpful?
YesNo
Need help? Contact Support.
Join our early access programme.
Check out our changelog.
Questions? Contact Sales.
LLM? Read llms.txt.
Powered by Markdoc