Browse: Home / Classes /



A SetupIntent guides you through the process of setting up and saving a customer’s payment credentials for future payments. For example, you could use a SetupIntent to set up and save your customer’s card without immediately collecting a payment. Later, you can use PaymentIntents to drive the payment flow.

Description #

Create a SetupIntent as soon as you’re ready to collect your customer’s payment credentials. Do not maintain long-lived, unconfirmed SetupIntents as they may no longer be valid. The SetupIntent then transitions through multiple <a href="”>statuses as it guides you through the setup process.

Successful SetupIntents result in payment credentials that are optimized for future payments. For example, cardholders in <a href="/guides/strong-customer-authentication">certain regions may need to be run through <a href="”>Strong Customer Authentication at the time of payment method collection in order to streamline later <a href="”>off-session payments. If the SetupIntent is used with a <a href="”>Customer, upon success, it will automatically attach the resulting payment method to that Customer. We recommend using SetupIntents or <a href="”>setup_future_usage on PaymentIntents to save payment methods in order to prevent saving invalid or unoptimized payment methods.

By using SetupIntents, you ensure that your customers experience the minimum set of required friction, even as regulations change over time.

Related guide: Setup Intents API.

Source #

File: includes/lib/stripe-php/lib/SetupIntent.php

Methods #