public class SetupIntentCreateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
SetupIntentCreateParams.Builder |
static class |
SetupIntentCreateParams.MandateData |
static class |
SetupIntentCreateParams.PaymentMethodOptions
The user agent of the browser from which the Mandate was accepted by the customer.
|
static class |
SetupIntentCreateParams.SingleUse
We strongly recommend that you rely on our SCA Engine to automatically prompt your
customers for authentication based on risk level and other requirements.
|
static class |
SetupIntentCreateParams.Usage
Add all map key/value pairs to `extraParams` map.
|
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static SetupIntentCreateParams.Builder |
builder() |
java.lang.Boolean |
getConfirm()
Set to
true to attempt to confirm this SetupIntent immediately. |
java.lang.String |
getCustomer()
ID of the Customer this SetupIntent belongs to, if one exists.
|
java.lang.String |
getDescription()
An arbitrary string attached to the object.
|
java.util.List<java.lang.String> |
getExpand()
Specifies which fields in the response should be expanded.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
SetupIntentCreateParams.MandateData |
getMandateData()
This hash contains details about the Mandate to create.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach
to an object.
|
java.lang.String |
getOnBehalfOf()
The Stripe account ID for which this SetupIntent is created.
|
java.lang.String |
getPaymentMethod()
ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this
SetupIntent.
|
SetupIntentCreateParams.PaymentMethodOptions |
getPaymentMethodOptions()
Payment-method-specific configuration for this SetupIntent.
|
java.util.List<java.lang.String> |
getPaymentMethodTypes()
The list of payment method types (e.g.
|
java.lang.String |
getReturnUrl()
The URL to redirect your customer back to after they authenticate or cancel their payment on
the payment method's app or site.
|
SetupIntentCreateParams.SingleUse |
getSingleUse()
If this hash is populated, this SetupIntent will generate a single_use Mandate on success.
|
SetupIntentCreateParams.Usage |
getUsage()
Indicates how the payment method is intended to be used in the future.
|
toMap
public static SetupIntentCreateParams.Builder builder()
public java.lang.Boolean getConfirm()
true
to attempt to confirm this SetupIntent immediately. This parameter defaults
to false
. If the payment method attached is a card, a return_url may be provided in
case additional authentication is required.public java.lang.String getCustomer()
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.
public java.lang.String getDescription()
public java.util.List<java.lang.String> getExpand()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@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.public SetupIntentCreateParams.MandateData getMandateData()
confirm=true
.public java.util.Map<java.lang.String,java.lang.String> getMetadata()
metadata
.public java.lang.String getOnBehalfOf()
public java.lang.String getPaymentMethod()
public SetupIntentCreateParams.PaymentMethodOptions getPaymentMethodOptions()
public java.util.List<java.lang.String> getPaymentMethodTypes()
public java.lang.String getReturnUrl()
confirm=true
.public SetupIntentCreateParams.SingleUse getSingleUse()
public SetupIntentCreateParams.Usage getUsage()
off_session
.