Package com.stripe.param
Class SetupIntentCreateParams.AutomaticPaymentMethods.Builder
java.lang.Object
com.stripe.param.SetupIntentCreateParams.AutomaticPaymentMethods.Builder
- Enclosing class:
- SetupIntentCreateParams.AutomaticPaymentMethods
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.Controls whether this SetupIntent will accept redirect-based payment methods.setEnabled
(Boolean enabled) Required. Whether this feature is enabled.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAllowRedirects
public SetupIntentCreateParams.AutomaticPaymentMethods.Builder setAllowRedirects(SetupIntentCreateParams.AutomaticPaymentMethods.AllowRedirects allowRedirects) Controls whether this SetupIntent will accept redirect-based payment methods.Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To confirm this SetupIntent, you may be required to provide a
return_url
to redirect customers back to your site after they authenticate or complete the setup. -
setEnabled
Required. Whether this feature is enabled. -
putExtraParam
public SetupIntentCreateParams.AutomaticPaymentMethods.Builder putExtraParam(String key, Object value) 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. SeeSetupIntentCreateParams.AutomaticPaymentMethods.extraParams
for the field documentation. -
putAllExtraParam
public SetupIntentCreateParams.AutomaticPaymentMethods.Builder putAllExtraParam(Map<String, Object> map) 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. SeeSetupIntentCreateParams.AutomaticPaymentMethods.extraParams
for the field documentation.
-