Package com.stripe.param.threedsecure
Class AuthenticationCreateParams.Builder
java.lang.Object
com.stripe.param.threedsecure.AuthenticationCreateParams.Builder
- Enclosing class:
- AuthenticationCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata(String key, String value) Add a key/value pair to `metadata` map.setAcquirerDetails(AuthenticationCreateParams.AcquirerDetails acquirerDetails) Contains additional details about the acquirer for this 3DS Authentication.A non-negative integer representing the amount in the smallest currency unit.Required. Contains additional details on the channel used for this 3DS Authentication.setCurrency(String currency) Three-letter ISO currency code, in lowercase.setDirectoryServer(AuthenticationCreateParams.DirectoryServer directoryServer) The 3DS directory server with which this 3DS Authentication was processed.setFlowPreference(AuthenticationCreateParams.FlowPreference flowPreference) Contains additional details on your flow preference for this 3DS Authentication.setFutureUsage(AuthenticationCreateParams.FutureUsage futureUsage) Contains information about future usage of this 3DS Authentication.setMessageCategory(AuthenticationCreateParams.MessageCategory messageCategory) Required. Indicates whether this 3DS Authentication is being performed for a payment or non-payment use case.setMetadata(EmptyParam metadata) Set of key-value pairs that you can attach to an object.setMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.setPaymentMethod(String paymentMethod) ID of the payment method (a PaymentMethod object) to attach to this 3DS Authentication.setPaymentMethodData(AuthenticationCreateParams.PaymentMethodData paymentMethodData) Hash used to generate the PaymentMethod to be used for this Authentication.The reason for invoking standalone 3DS.setShippingAddress(AuthenticationCreateParams.ShippingAddress shippingAddress) The shipping address requested by the cardholder.Set toalwaysto skip the fingerprinting step and submit this Authentication immediately orif_fingerprinting_not_supportedto submit this Authentication only if fingerprinting is not available.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAcquirerDetails
public AuthenticationCreateParams.Builder setAcquirerDetails(AuthenticationCreateParams.AcquirerDetails acquirerDetails) Contains additional details about the acquirer for this 3DS Authentication.Refer to the Pass acquirer details and directory server section of the standalone 3DS guide for more information.
-
setAmount
A non-negative integer representing the amount in the smallest currency unit. You can't include this parameter ifmessage_categoryisnon_payment_authentication -
setChannel
Required. Contains additional details on the channel used for this 3DS Authentication. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setDirectoryServer
public AuthenticationCreateParams.Builder setDirectoryServer(AuthenticationCreateParams.DirectoryServer directoryServer) The 3DS directory server with which this 3DS Authentication was processed. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeAuthenticationCreateParams.expandfor the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeAuthenticationCreateParams.expandfor the field documentation. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeAuthenticationCreateParams.extraParamsfor the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeAuthenticationCreateParams.extraParamsfor the field documentation. -
setFlowPreference
public AuthenticationCreateParams.Builder setFlowPreference(AuthenticationCreateParams.FlowPreference flowPreference) Contains additional details on your flow preference for this 3DS Authentication.Refer to the Specify a flow preference section of the standalone 3DS guide for more information.
-
setFutureUsage
public AuthenticationCreateParams.Builder setFutureUsage(AuthenticationCreateParams.FutureUsage futureUsage) Contains information about future usage of this 3DS Authentication. -
setMessageCategory
public AuthenticationCreateParams.Builder setMessageCategory(AuthenticationCreateParams.MessageCategory messageCategory) Required. Indicates whether this 3DS Authentication is being performed for a payment or non-payment use case. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeAuthenticationCreateParams.metadatafor the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeAuthenticationCreateParams.metadatafor the field documentation. -
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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata. -
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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata. -
setPaymentMethod
ID of the payment method (a PaymentMethod object) to attach to this 3DS Authentication. -
setPaymentMethodData
public AuthenticationCreateParams.Builder setPaymentMethodData(AuthenticationCreateParams.PaymentMethodData paymentMethodData) Hash used to generate the PaymentMethod to be used for this Authentication. This is mutually exclusive with thepayment_methodparameter. -
setReason
The reason for invoking standalone 3DS. This is tailored specifically for cases when you want Stripe to help determine the standalone 3DS flow to fit your use case instead of needing to select a specific 3DS flow.This parameter is exclusive with
flow_preference. You can either usereasonfor controlling 3DS according to your business requirements, or useflow_preferencefor having fine-grained control over your 3DS flow preference. -
setShippingAddress
public AuthenticationCreateParams.Builder setShippingAddress(AuthenticationCreateParams.ShippingAddress shippingAddress) The shipping address requested by the cardholder. You should try to include as complete address information as possible. -
setSubmit
Set toalwaysto skip the fingerprinting step and submit this Authentication immediately orif_fingerprinting_not_supportedto submit this Authentication only if fingerprinting is not available. This parameter defaults tonever.Refer to the Submit at creation section of the standalone 3DS guide for more information.
-