Class SetupIntentCreateParams
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static enum
Add all map key/value pairs to `extraParams` map.static class
static class
Required. The user agent of the browser from which the Mandate was accepted by the customer.static class
static class
Add all elements to `requested` list.static enum
Nested classes/interfaces inherited from class com.stripe.net.ApiRequestParams
ApiRequestParams.EnumParam
-
Field Summary
Fields inherited from class com.stripe.net.ApiRequestParams
EXTRA_PARAMS_KEY
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.When you enable this parameter, this SetupIntent accepts payment methods that you enable in the Dashboard and that are compatible with its other parameters.Set totrue
to attempt to confirm this SetupIntent immediately.ID of the ConfirmationToken used to confirm this SetupIntent.ID of the Customer this SetupIntent belongs to, if one exists.An arbitrary string attached to the object.Specifies which fields in the response should be expanded.Map of extra parameters for custom features not available in this client library.Indicates the directions of money movement for which this payment method is intended to be used.This hash contains details about the mandate to create.Set of key-value pairs that you can attach to an object.The Stripe account ID created for this SetupIntent.ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.The ID of the payment method configuration to use with this SetupIntent.When included, this hash creates a PaymentMethod that is set as thepayment_method
value in the SetupIntent.Payment method-specific configuration for this SetupIntent.The list of payment method types (for example, card) that this SetupIntent can use.The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.If you populate this hash, this SetupIntent generates asingle_use
mandate after successful completion.getUsage()
Indicates how the payment method is intended to be used in the future.Set totrue
when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.Methods inherited from class com.stripe.net.ApiRequestParams
paramsToMap, toMap
-
Method Details
-
builder
-
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
When you enable this parameter, this SetupIntent accepts payment methods that you enable in the Dashboard and that are compatible with its other parameters. -
getConfirm
Set totrue
to attempt to confirm this SetupIntent immediately. This parameter defaults tofalse
. If a card is the attached payment method, you can provide areturn_url
in case further authentication is necessary. -
getConfirmationToken
ID of the ConfirmationToken used to confirm this SetupIntent.If the provided ConfirmationToken contains properties that are also being provided in this request, such as
payment_method
, then the values in this request will take precedence. -
getCustomer
ID of the Customer this SetupIntent belongs to, if one exists.If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
-
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
getExpand
Specifies which fields in the response should be expanded. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedName
value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance. -
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. -
getMandateData
This hash contains details about the mandate to create. This parameter can only be used withconfirm=true
. -
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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
getOnBehalfOf
The Stripe account ID created for this SetupIntent. -
getPaymentMethod
ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent. -
getPaymentMethodConfiguration
The ID of the payment method configuration to use with this SetupIntent. -
getPaymentMethodData
When included, this hash creates a PaymentMethod that is set as thepayment_method
value in the SetupIntent. -
getPaymentMethodOptions
Payment method-specific configuration for this SetupIntent. -
getPaymentMethodTypes
The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, it defaults to ["card"]. -
getReturnUrl
The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used withconfirm=true
. -
getSingleUse
If you populate this hash, this SetupIntent generates asingle_use
mandate after successful completion. -
getUsage
Indicates how the payment method is intended to be used in the future. If not provided, this value defaults tooff_session
. -
getUseStripeSdk
Set totrue
when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
-