Package com.stripe.param.checkout
Class SessionCreateParams.SavedPaymentMethodOptions.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.SavedPaymentMethodOptions.Builder
- Enclosing class:
- SessionCreateParams.SavedPaymentMethodOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowRedisplayFilter
(List<SessionCreateParams.SavedPaymentMethodOptions.AllowRedisplayFilter> elements) Add all elements to `allowRedisplayFilters` list.Add an element to `allowRedisplayFilters` 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.setPaymentMethodSave
(SessionCreateParams.SavedPaymentMethodOptions.PaymentMethodSave paymentMethodSave) Enable customers to choose if they wish to save their payment method for future use.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addAllowRedisplayFilter
public SessionCreateParams.SavedPaymentMethodOptions.Builder addAllowRedisplayFilter(SessionCreateParams.SavedPaymentMethodOptions.AllowRedisplayFilter element) Add an element to `allowRedisplayFilters` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.SavedPaymentMethodOptions.allowRedisplayFilters
for the field documentation. -
addAllAllowRedisplayFilter
public SessionCreateParams.SavedPaymentMethodOptions.Builder addAllAllowRedisplayFilter(List<SessionCreateParams.SavedPaymentMethodOptions.AllowRedisplayFilter> elements) Add all elements to `allowRedisplayFilters` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.SavedPaymentMethodOptions.allowRedisplayFilters
for the field documentation. -
putExtraParam
public SessionCreateParams.SavedPaymentMethodOptions.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. SeeSessionCreateParams.SavedPaymentMethodOptions.extraParams
for the field documentation. -
putAllExtraParam
public SessionCreateParams.SavedPaymentMethodOptions.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. SeeSessionCreateParams.SavedPaymentMethodOptions.extraParams
for the field documentation. -
setPaymentMethodSave
public SessionCreateParams.SavedPaymentMethodOptions.Builder setPaymentMethodSave(SessionCreateParams.SavedPaymentMethodOptions.PaymentMethodSave paymentMethodSave) Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
-