Package com.stripe.param
Class CustomerSessionCreateParams.Components.PaymentElement.Features.Builder
java.lang.Object
com.stripe.param.CustomerSessionCreateParams.Components.PaymentElement.Features.Builder
- Enclosing class:
- CustomerSessionCreateParams.Components.PaymentElement.Features
public static class CustomerSessionCreateParams.Components.PaymentElement.Features.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllPaymentMethodAllowRedisplayFilter
(List<CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodAllowRedisplayFilter> elements) Add all elements to `paymentMethodAllowRedisplayFilters` list.addPaymentMethodAllowRedisplayFilter
(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodAllowRedisplayFilter element) Add an element to `paymentMethodAllowRedisplayFilters` list.build()
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.setPaymentMethodRedisplay
(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodRedisplay paymentMethodRedisplay) Controls whether or not the Payment Element shows saved payment methods.setPaymentMethodRedisplayLimit
(Long paymentMethodRedisplayLimit) Determines the max number of saved payment methods for the Payment Element to display.setPaymentMethodRemove
(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodRemove paymentMethodRemove) Controls whether the Payment Element displays the option to remove a saved payment method.setPaymentMethodSave
(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodSave paymentMethodSave) Controls whether the Payment Element displays a checkbox offering to save a new payment method.setPaymentMethodSaveUsage
(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodSaveUsage paymentMethodSaveUsage) When using PaymentIntents and the customer checks the save checkbox, this field determines thesetup_future_usage
value used to confirm the PaymentIntent.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
public CustomerSessionCreateParams.Components.PaymentElement.Features.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. SeeCustomerSessionCreateParams.Components.PaymentElement.Features.extraParams
for the field documentation. -
putAllExtraParam
public CustomerSessionCreateParams.Components.PaymentElement.Features.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. SeeCustomerSessionCreateParams.Components.PaymentElement.Features.extraParams
for the field documentation. -
addPaymentMethodAllowRedisplayFilter
public CustomerSessionCreateParams.Components.PaymentElement.Features.Builder addPaymentMethodAllowRedisplayFilter(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodAllowRedisplayFilter element) Add an element to `paymentMethodAllowRedisplayFilters` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCustomerSessionCreateParams.Components.PaymentElement.Features.paymentMethodAllowRedisplayFilters
for the field documentation. -
addAllPaymentMethodAllowRedisplayFilter
public CustomerSessionCreateParams.Components.PaymentElement.Features.Builder addAllPaymentMethodAllowRedisplayFilter(List<CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodAllowRedisplayFilter> elements) Add all elements to `paymentMethodAllowRedisplayFilters` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCustomerSessionCreateParams.Components.PaymentElement.Features.paymentMethodAllowRedisplayFilters
for the field documentation. -
setPaymentMethodRedisplay
public CustomerSessionCreateParams.Components.PaymentElement.Features.Builder setPaymentMethodRedisplay(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodRedisplay paymentMethodRedisplay) Controls whether or not the Payment Element shows saved payment methods. This parameter defaults todisabled
. -
setPaymentMethodRedisplayLimit
public CustomerSessionCreateParams.Components.PaymentElement.Features.Builder setPaymentMethodRedisplayLimit(Long paymentMethodRedisplayLimit) Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to3
. -
setPaymentMethodRemove
public CustomerSessionCreateParams.Components.PaymentElement.Features.Builder setPaymentMethodRemove(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodRemove paymentMethodRemove) Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults todisabled
.Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the
customer
object from that PaymentMethod. -
setPaymentMethodSave
public CustomerSessionCreateParams.Components.PaymentElement.Features.Builder setPaymentMethodSave(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodSave paymentMethodSave) Controls whether the Payment Element displays a checkbox offering to save a new payment method. This parameter defaults todisabled
.If a customer checks the box, the
allow_redisplay
value on the PaymentMethod is set to'always'
at confirmation time. For PaymentIntents, thesetup_future_usage
value is also set to the value defined inpayment_method_save_usage
. -
setPaymentMethodSaveUsage
public CustomerSessionCreateParams.Components.PaymentElement.Features.Builder setPaymentMethodSaveUsage(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodSaveUsage paymentMethodSaveUsage) When using PaymentIntents and the customer checks the save checkbox, this field determines thesetup_future_usage
value used to confirm the PaymentIntent.When using SetupIntents, directly configure the
usage
value on SetupIntent creation.
-