Skip to content
Create account or Sign in
The Stripe Docs logo
/
Ask AI
Create accountSign in
Get started
Payments
Revenue
Platforms and marketplaces
Money management
Developer resources
APIs & SDKsHelp
OverviewAccept a paymentUpgrade your integration
Online payments
OverviewFind your use case
Use Payment Links
Build a payments page
Build a custom integration with Elements
    Overview
    Quickstart guides
    Stripe Elements
    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
      Shipping options
      Line items
      Trial durations
      Discounts
      Payment amounts
      Line item quantities
      Update customer
    Add discounts
    Collect taxes on your payments
    Collect surcharges
    Redeem credits
    Let customers pay in their local currency
    Save and retrieve customer payment methods
    Manually approve payments on your server
    Authorize and capture a payment separately
    Elements with Checkout Sessions API beta changelog
Build an in-app integration
Use Managed Payments
Recurring payments
In-person payments
Terminal overview
Availability
Readers
No code
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
Radar
Payouts
ReceiptsRefunds and cancellations
Advanced integrations
Custom payment flows
Flexible acquiring
Off-Session Payments
Multiprocessor orchestration
Beyond payments
Incorporate your company
Crypto
Agentic commerce
Financial Connections
Climate
Verify identities
United States
English (United States)
  1. Home/
  2. Payments/
  3. Build a custom integration with Elements

Dynamically update your Elements integration

Learn how to update the Checkout Session or Payment Intent as your customers make changes to the session.

Customize shipping options

Customize the shipping options based on a customer’s shipping address.

Update line items

Add, remove, or update line items based on a customer’s actions during checkout.

Update subscription trials

Update the trial length for a subscription based on promotional conditions or customer actions during checkout.

Update discounts

Apply and modify discounts, such as loyalty discounts, cart value promotions, time-sensitive offers, or customer-specific offers.

Update payment amounts

Update the payment amount when customers make changes to what they’re buying, the shipping method, or use of a discount code.

Make line item quantities adjustable

Allow your customers to adjust the quantity of items during checkout.

Update the customer during checkout

Support authentication during checkout by attaching an existing customer to a Checkout Session.

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