Package com.stripe.param
Class PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.Builder
java.lang.Object
com.stripe.param.PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.Builder
- Enclosing class:
- PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments
public static class PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.Builder
extends Object
-
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.setEnabled
(Boolean enabled) Setting to true enables installments for this PaymentIntent.setPlan
(EmptyParam plan) The selected installment plan to use for this payment attempt.The selected installment plan to use for this payment attempt.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setEnabled
public PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.Builder setEnabled(Boolean enabled) Setting to true enables installments for this PaymentIntent. This will cause the response to contain a list of available installment plans. Setting to false will prevent any selected plan from applying to a charge. -
putExtraParam
public PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.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. SeePaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.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. SeePaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.extraParams
for the field documentation. -
setPlan
public PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.Builder setPlan(PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.Plan plan) The selected installment plan to use for this payment attempt. This parameter can only be provided during confirmation. -
setPlan
public PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.Builder setPlan(EmptyParam plan) The selected installment plan to use for this payment attempt. This parameter can only be provided during confirmation.
-