Class SetupIntent
- All Implemented Interfaces:
HasId
,MetadataStore<SetupIntent>
,StripeActiveObject
,StripeObjectInterface
Create a SetupIntent when you're ready to collect your customer's payment credentials. Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid. The SetupIntent transitions through multiple 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 certain regions might need to be run through Strong Customer Authentication during payment method collection to streamline later off-session payments. If you use the SetupIntent with a Customer, it automatically attaches the resulting payment method to that Customer after successful setup. We recommend using SetupIntents or setup_future_usage on PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
Related guide: Setup Intents API
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
The type of the microdeposit sent to the customer.static class
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncancel()
You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.cancel
(RequestOptions options) You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.cancel
(SetupIntentCancelParams params) You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.cancel
(SetupIntentCancelParams params, RequestOptions options) You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.cancel
(Map<String, Object> params, RequestOptions options) You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.protected boolean
confirm()
Confirm that your customer intends to set up the current or provided payment method.confirm
(RequestOptions options) Confirm that your customer intends to set up the current or provided payment method.confirm
(SetupIntentConfirmParams params) Confirm that your customer intends to set up the current or provided payment method.confirm
(SetupIntentConfirmParams params, RequestOptions options) Confirm that your customer intends to set up the current or provided payment method.Confirm that your customer intends to set up the current or provided payment method.confirm
(Map<String, Object> params, RequestOptions options) Confirm that your customer intends to set up the current or provided payment method.static SetupIntent
create
(SetupIntentCreateParams params) Creates a SetupIntent object.static SetupIntent
create
(SetupIntentCreateParams params, RequestOptions options) Creates a SetupIntent object.static SetupIntent
Creates a SetupIntent object.static SetupIntent
create
(Map<String, Object> params, RequestOptions options) Creates a SetupIntent object.boolean
Get ID of expandableapplication
object.Get expandedapplication
.If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.Settings for dynamic payment methods compatible with this Setup Intent.Reason for cancellation of this SetupIntent, one ofabandoned
,requested_by_customer
, orduplicate
.The client secret of this SetupIntent.Time at which the object was created.Get ID of expandablecustomer
object.Get expandedcustomer
.An arbitrary string attached to the object.Indicates the directions of money movement for which this payment method is intended to be used.getId()
Unique identifier for the object.The error encountered in the previous SetupIntent confirmation.Get ID of expandablelatestAttempt
object.Get expandedlatestAttempt
.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Get ID of expandablemandate
object.Get expandedmandate
.Set of key-value pairs that you can attach to an object.If present, this property tells you what actions you need to take in order for your customer to continue payment setup.String representing the object's type.Get ID of expandableonBehalfOf
object.Get expandedonBehalfOf
.Get ID of expandablepaymentMethod
object.Information about the payment method configuration used for this Setup Intent.Get expandedpaymentMethod
.Payment method-specific configuration for this SetupIntent.The list of payment method types (e.g.Get ID of expandablesingleUseMandate
object.Get expandedsingleUseMandate
.Status of this SetupIntent, one ofrequires_payment_method
,requires_confirmation
,requires_action
,processing
,canceled
, orsucceeded
.getUsage()
Indicates how the payment method is intended to be used in the future.int
hashCode()
static SetupIntentCollection
list
(SetupIntentListParams params) Returns a list of SetupIntents.static SetupIntentCollection
list
(SetupIntentListParams params, RequestOptions options) Returns a list of SetupIntents.static SetupIntentCollection
Returns a list of SetupIntents.static SetupIntentCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of SetupIntents.static SetupIntent
Retrieves the details of a SetupIntent that has previously been created.static SetupIntent
retrieve
(String intent, RequestOptions options) Retrieves the details of a SetupIntent that has previously been created.static SetupIntent
retrieve
(String intent, SetupIntentRetrieveParams params, RequestOptions options) Retrieves the details of a SetupIntent that has previously been created.static SetupIntent
Retrieves the details of a SetupIntent that has previously been created.void
setApplication
(String id) void
setApplicationObject
(Application expandableObject) void
setAttachToSelf
(Boolean attachToSelf) If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.void
setAutomaticPaymentMethods
(SetupIntent.AutomaticPaymentMethods automaticPaymentMethods) Settings for dynamic payment methods compatible with this Setup Intent.void
setCancellationReason
(String cancellationReason) Reason for cancellation of this SetupIntent, one ofabandoned
,requested_by_customer
, orduplicate
.void
setClientSecret
(String clientSecret) The client secret of this SetupIntent.void
setCreated
(Long created) Time at which the object was created.void
setCustomer
(String id) void
setCustomerObject
(Customer expandableObject) void
setDescription
(String description) An arbitrary string attached to the object.void
setFlowDirections
(List<String> flowDirections) Indicates the directions of money movement for which this payment method is intended to be used.void
Unique identifier for the object.void
setLastSetupError
(StripeError lastSetupError) The error encountered in the previous SetupIntent confirmation.void
void
setLatestAttemptObject
(SetupAttempt expandableObject) void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMandate
(String id) void
setMandateObject
(Mandate expandableObject) void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
setNextAction
(SetupIntent.NextAction nextAction) If present, this property tells you what actions you need to take in order for your customer to continue payment setup.void
String representing the object's type.void
setOnBehalfOf
(String id) void
setOnBehalfOfObject
(Account expandableObject) void
void
setPaymentMethodConfigurationDetails
(SetupIntent.PaymentMethodConfigurationDetails paymentMethodConfigurationDetails) Information about the payment method configuration used for this Setup Intent.void
setPaymentMethodObject
(PaymentMethod expandableObject) void
setPaymentMethodOptions
(SetupIntent.PaymentMethodOptions paymentMethodOptions) Payment method-specific configuration for this SetupIntent.void
setPaymentMethodTypes
(List<String> paymentMethodTypes) The list of payment method types (e.g.void
setResponseGetter
(StripeResponseGetter responseGetter) Mandate collection methodvoid
void
setSingleUseMandateObject
(Mandate expandableObject) void
Status of this SetupIntent, one ofrequires_payment_method
,requires_confirmation
,requires_action
,processing
,canceled
, orsucceeded
.void
Indicates how the payment method is intended to be used in the future.update
(SetupIntentUpdateParams params) Updates a SetupIntent object.update
(SetupIntentUpdateParams params, RequestOptions options) Updates a SetupIntent object.Updates a SetupIntent object.update
(Map<String, Object> params, RequestOptions options) Updates a SetupIntent object.Verifies microdeposits on a SetupIntent object.verifyMicrodeposits
(RequestOptions options) Verifies microdeposits on a SetupIntent object.Verifies microdeposits on a SetupIntent object.verifyMicrodeposits
(SetupIntentVerifyMicrodepositsParams params, RequestOptions options) Verifies microdeposits on a SetupIntent object.verifyMicrodeposits
(Map<String, Object> params) Verifies microdeposits on a SetupIntent object.verifyMicrodeposits
(Map<String, Object> params, RequestOptions options) Verifies microdeposits on a SetupIntent object.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
SetupIntent
public SetupIntent()
-
-
Method Details
-
getApplication
Get ID of expandableapplication
object. -
setApplication
-
getApplicationObject
Get expandedapplication
. -
setApplicationObject
-
getCustomer
Get ID of expandablecustomer
object. -
setCustomer
-
getCustomerObject
Get expandedcustomer
. -
setCustomerObject
-
getLatestAttempt
Get ID of expandablelatestAttempt
object. -
setLatestAttempt
-
getLatestAttemptObject
Get expandedlatestAttempt
. -
setLatestAttemptObject
-
getMandate
Get ID of expandablemandate
object. -
setMandate
-
getMandateObject
Get expandedmandate
. -
setMandateObject
-
getOnBehalfOf
Get ID of expandableonBehalfOf
object. -
setOnBehalfOf
-
getOnBehalfOfObject
Get expandedonBehalfOf
. -
setOnBehalfOfObject
-
getPaymentMethod
Get ID of expandablepaymentMethod
object. -
setPaymentMethod
-
getPaymentMethodObject
Get expandedpaymentMethod
. -
setPaymentMethodObject
-
getSingleUseMandate
Get ID of expandablesingleUseMandate
object. -
setSingleUseMandate
-
getSingleUseMandateObject
Get expandedsingleUseMandate
. -
setSingleUseMandateObject
-
cancel
You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can’t cancel the SetupIntent for a Checkout Session. Expire the Checkout Session instead.
- Throws:
StripeException
-
cancel
You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can’t cancel the SetupIntent for a Checkout Session. Expire the Checkout Session instead.
- Throws:
StripeException
-
cancel
You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can’t cancel the SetupIntent for a Checkout Session. Expire the Checkout Session instead.
- Throws:
StripeException
-
cancel
You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can’t cancel the SetupIntent for a Checkout Session. Expire the Checkout Session instead.
- Throws:
StripeException
-
cancel
You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can’t cancel the SetupIntent for a Checkout Session. Expire the Checkout Session instead.
- Throws:
StripeException
-
cancel
public SetupIntent cancel(SetupIntentCancelParams params, RequestOptions options) throws StripeException You can cancel a SetupIntent object when it’s in one of these statuses:requires_payment_method
,requires_confirmation
, orrequires_action
.After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can’t cancel the SetupIntent for a Checkout Session. Expire the Checkout Session instead.
- Throws:
StripeException
-
confirm
Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeeded
status.Otherwise, it will transition to the
requires_action
status and suggest additional actions vianext_action
. If setup fails, the SetupIntent will transition to therequires_payment_method
status or thecanceled
status if the confirmation limit is reached.- Throws:
StripeException
-
confirm
Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeeded
status.Otherwise, it will transition to the
requires_action
status and suggest additional actions vianext_action
. If setup fails, the SetupIntent will transition to therequires_payment_method
status or thecanceled
status if the confirmation limit is reached.- Throws:
StripeException
-
confirm
Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeeded
status.Otherwise, it will transition to the
requires_action
status and suggest additional actions vianext_action
. If setup fails, the SetupIntent will transition to therequires_payment_method
status or thecanceled
status if the confirmation limit is reached.- Throws:
StripeException
-
confirm
public SetupIntent confirm(Map<String, Object> params, RequestOptions options) throws StripeExceptionConfirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeeded
status.Otherwise, it will transition to the
requires_action
status and suggest additional actions vianext_action
. If setup fails, the SetupIntent will transition to therequires_payment_method
status or thecanceled
status if the confirmation limit is reached.- Throws:
StripeException
-
confirm
Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeeded
status.Otherwise, it will transition to the
requires_action
status and suggest additional actions vianext_action
. If setup fails, the SetupIntent will transition to therequires_payment_method
status or thecanceled
status if the confirmation limit is reached.- Throws:
StripeException
-
confirm
public SetupIntent confirm(SetupIntentConfirmParams params, RequestOptions options) throws StripeException Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeeded
status.Otherwise, it will transition to the
requires_action
status and suggest additional actions vianext_action
. If setup fails, the SetupIntent will transition to therequires_payment_method
status or thecanceled
status if the confirmation limit is reached.- Throws:
StripeException
-
create
Creates a SetupIntent object.After you create the SetupIntent, attach a payment method and confirm it to collect any required permissions to charge the payment method later.
- Throws:
StripeException
-
create
public static SetupIntent create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a SetupIntent object.After you create the SetupIntent, attach a payment method and confirm it to collect any required permissions to charge the payment method later.
- Throws:
StripeException
-
create
Creates a SetupIntent object.After you create the SetupIntent, attach a payment method and confirm it to collect any required permissions to charge the payment method later.
- Throws:
StripeException
-
create
public static SetupIntent create(SetupIntentCreateParams params, RequestOptions options) throws StripeException Creates a SetupIntent object.After you create the SetupIntent, attach a payment method and confirm it to collect any required permissions to charge the payment method later.
- Throws:
StripeException
-
list
Returns a list of SetupIntents.- Throws:
StripeException
-
list
public static SetupIntentCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of SetupIntents.- Throws:
StripeException
-
list
Returns a list of SetupIntents.- Throws:
StripeException
-
list
public static SetupIntentCollection list(SetupIntentListParams params, RequestOptions options) throws StripeException Returns a list of SetupIntents.- Throws:
StripeException
-
retrieve
Retrieves the details of a SetupIntent that has previously been created.Client-side retrieval using a publishable key is allowed when the
client_secret
is provided in the query string.When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.
- Throws:
StripeException
-
retrieve
Retrieves the details of a SetupIntent that has previously been created.Client-side retrieval using a publishable key is allowed when the
client_secret
is provided in the query string.When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.
- Throws:
StripeException
-
retrieve
public static SetupIntent retrieve(String intent, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of a SetupIntent that has previously been created.Client-side retrieval using a publishable key is allowed when the
client_secret
is provided in the query string.When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.
- Throws:
StripeException
-
retrieve
public static SetupIntent retrieve(String intent, SetupIntentRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a SetupIntent that has previously been created.Client-side retrieval using a publishable key is allowed when the
client_secret
is provided in the query string.When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.
- Throws:
StripeException
-
update
Updates a SetupIntent object.- Specified by:
update
in interfaceMetadataStore<SetupIntent>
- Throws:
StripeException
-
update
Updates a SetupIntent object.- Specified by:
update
in interfaceMetadataStore<SetupIntent>
- Throws:
StripeException
-
update
Updates a SetupIntent object.- Throws:
StripeException
-
update
public SetupIntent update(SetupIntentUpdateParams params, RequestOptions options) throws StripeException Updates a SetupIntent object.- Throws:
StripeException
-
verifyMicrodeposits
Verifies microdeposits on a SetupIntent object.- Throws:
StripeException
-
verifyMicrodeposits
Verifies microdeposits on a SetupIntent object.- Throws:
StripeException
-
verifyMicrodeposits
Verifies microdeposits on a SetupIntent object.- Throws:
StripeException
-
verifyMicrodeposits
public SetupIntent verifyMicrodeposits(Map<String, Object> params, RequestOptions options) throws StripeExceptionVerifies microdeposits on a SetupIntent object.- Throws:
StripeException
-
verifyMicrodeposits
public SetupIntent verifyMicrodeposits(SetupIntentVerifyMicrodepositsParams params) throws StripeException Verifies microdeposits on a SetupIntent object.- Throws:
StripeException
-
verifyMicrodeposits
public SetupIntent verifyMicrodeposits(SetupIntentVerifyMicrodepositsParams params, RequestOptions options) throws StripeException Verifies microdeposits on a SetupIntent object.- Throws:
StripeException
-
setResponseGetter
Mandate collection methodEqual to
paper
.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAttachToSelf
If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
-
getAutomaticPaymentMethods
Settings for dynamic payment methods compatible with this Setup Intent. -
getCancellationReason
Reason for cancellation of this SetupIntent, one ofabandoned
,requested_by_customer
, orduplicate
. -
getClientSecret
The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.The client secret can be used to complete payment setup from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
getFlowDirections
Indicates the directions of money movement for which this payment method is intended to be used.Include
inbound
if you intend to use the payment method as the origin to pull funds from. Includeoutbound
if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. -
getLastSetupError
The error encountered in the previous SetupIntent confirmation. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getNextAction
If present, this property tells you what actions you need to take in order for your customer to continue payment setup. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
setup_intent
. -
getPaymentMethodConfigurationDetails
Information about the payment method configuration used for this Setup Intent. -
getPaymentMethodOptions
Payment method-specific configuration for this SetupIntent. -
getPaymentMethodTypes
The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. -
getStatus
Status of this SetupIntent, one ofrequires_payment_method
,requires_confirmation
,requires_action
,processing
,canceled
, orsucceeded
. -
getUsage
Indicates how the payment method is intended to be used in the future.Use
on_session
if you intend to only reuse the payment method when the customer is in your checkout flow. Useoff_session
if your customer may or may not be in your checkout flow. If not provided, this value defaults tooff_session
. -
setAttachToSelf
If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
-
setAutomaticPaymentMethods
Settings for dynamic payment methods compatible with this Setup Intent. -
setCancellationReason
Reason for cancellation of this SetupIntent, one ofabandoned
,requested_by_customer
, orduplicate
. -
setClientSecret
The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.The client secret can be used to complete payment setup from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
-
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setFlowDirections
Indicates the directions of money movement for which this payment method is intended to be used.Include
inbound
if you intend to use the payment method as the origin to pull funds from. Includeoutbound
if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. -
setId
Unique identifier for the object. -
setLastSetupError
The error encountered in the previous SetupIntent confirmation. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setNextAction
If present, this property tells you what actions you need to take in order for your customer to continue payment setup. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
setup_intent
. -
setPaymentMethodConfigurationDetails
public void setPaymentMethodConfigurationDetails(SetupIntent.PaymentMethodConfigurationDetails paymentMethodConfigurationDetails) Information about the payment method configuration used for this Setup Intent. -
setPaymentMethodOptions
Payment method-specific configuration for this SetupIntent. -
setPaymentMethodTypes
The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. -
setStatus
Status of this SetupIntent, one ofrequires_payment_method
,requires_confirmation
,requires_action
,processing
,canceled
, orsucceeded
. -
setUsage
Indicates how the payment method is intended to be used in the future.Use
on_session
if you intend to only reuse the payment method when the customer is in your checkout flow. Useoff_session
if your customer may or may not be in your checkout flow. If not provided, this value defaults tooff_session
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<SetupIntent>
-