Skip to content
Create account or Sign in
The Stripe Docs logo
Search/Ask AI
Create accountSign in
  • Get started
  • Payments
  • Revenue
  • Risk
  • Data
  • Money management
  • Stablecoins
  • Embedded finance
  • Developer resources
More
APIs & SDKsHelp
OverviewAccept a payment
Online payments
OverviewFind your use case
Use Payment Links
Build a payments page
Build an in-app integration
Use Managed Payments
Recurring payments
Process off-session payments
Migrate legacy integrations
In-person payments
OverviewHow Terminal worksAvailability
Readers
Encryption
Ready-made apps
Custom integration
Payment methods
Add payment methods
Manage payment methods
Faster checkout with Link
Payment operations
Analytics
Balances and settlement time
Compliance and security
Currencies
Declines
Disputes
Settlement and Payouts
ReceiptsRefunds and cancellations
Advanced integrations
Elements with Payment Intents
    Quickstart
    Stripe Elements
      Payment Element
      Express Checkout Element
      Address Element
      Contact Details Element
      Payment Method Messaging Element
      Tax ID Element
    Compare Checkout Sessions and PaymentIntents
    Design an advanced integration
    Customize look and feel
    Manage payment methods
    Collect additional information
    Build a subscriptions integration
    Dynamic updates
    Collect taxes on your payments
    Let customers pay in their local currency
    Save and retrieve customer payment methods
    Authorize and capture a payment separately
Custom payment flows
Flexible acquiring
Multiprocessor orchestration
Beyond payments
Incorporate your company
Agentic commerce
Financial Connections
Climate
United States
English (United States)
  1. Home/
  2. Payments/
  3. Elements with Payment Intents

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.

Explore the demo

Get started

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

Payment Element
Accept a payment with one or multiple payment methods securely, including cards.
Express Checkout Element
Display popular Wallets like Apple Pay, Google Pay, and PayPal.
Contact Details 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.
Tax ID Element
Collect business tax IDs for invoices and VAT refunds.

Compatible APIs

Stripe recommends using the Checkout Sessions API with the Payment Element. This integration lets you set up basic payments with price_data 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.

Was this page helpful?
YesNo
  • Need help? Contact Support.
  • Chat with Stripe developers on Discord.
  • Check out our changelog.
  • Questions? Contact Sales.
  • LLM? Read llms.txt.
  • Powered by Markdoc