Package com.stripe.param
Class OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder
java.lang.Object
com.stripe.param.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder
- Enclosing class:
OrderCreateParams.Payment.Settings.PaymentMethodOptions
-
Constructor Summary
Constructors -
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.If paying byacss_debit
, this sub-hash contains details about the ACSS Debit payment method options to pass to the order's PaymentIntent.setAfterpayClearpay
(OrderCreateParams.Payment.Settings.PaymentMethodOptions.AfterpayClearpay afterpayClearpay) If paying byafterpay_clearpay
, this sub-hash contains details about the AfterpayClearpay payment method options to pass to the order's PaymentIntent.If paying byalipay
, this sub-hash contains details about the Alipay payment method options to pass to the order's PaymentIntent.If paying bybancontact
, this sub-hash contains details about the Bancontact payment method options to pass to the order's PaymentIntent.If paying bycard
, this sub-hash contains details about the Card payment method options to pass to the order's PaymentIntent.setCustomerBalance
(OrderCreateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance customerBalance) If paying bycustomer_balance
, this sub-hash contains details about the Customer Balance payment method options to pass to the order's PaymentIntent.If paying byideal
, this sub-hash contains details about the iDEAL payment method options to pass to the order's PaymentIntent.If paying byklarna
, this sub-hash contains details about the Klarna payment method options to pass to the order's PaymentIntent.If paying bylink
, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent.If paying byoxxo
, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent.If paying byp24
, this sub-hash contains details about the P24 payment method options to pass to the order's PaymentIntent.If paying bypaypal
, this sub-hash contains details about the PayPal payment method options to pass to the order's PaymentIntent.If paying bysepa_debit
, this sub-hash contains details about the SEPA Debit payment method options to pass to the order's PaymentIntent.If paying bysofort
, this sub-hash contains details about the Sofort payment method options to pass to the order's PaymentIntent.If paying bywechat_pay
, this sub-hash contains details about the WeChat Pay payment method options to pass to the order's PaymentIntent.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAcssDebit
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setAcssDebit(OrderCreateParams.Payment.Settings.PaymentMethodOptions.AcssDebit acssDebit) If paying byacss_debit
, this sub-hash contains details about the ACSS Debit payment method options to pass to the order's PaymentIntent. -
setAfterpayClearpay
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setAfterpayClearpay(OrderCreateParams.Payment.Settings.PaymentMethodOptions.AfterpayClearpay afterpayClearpay) If paying byafterpay_clearpay
, this sub-hash contains details about the AfterpayClearpay payment method options to pass to the order's PaymentIntent. -
setAlipay
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setAlipay(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Alipay alipay) If paying byalipay
, this sub-hash contains details about the Alipay payment method options to pass to the order's PaymentIntent. -
setBancontact
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setBancontact(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Bancontact bancontact) If paying bybancontact
, this sub-hash contains details about the Bancontact payment method options to pass to the order's PaymentIntent. -
setCard
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setCard(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Card card) If paying bycard
, this sub-hash contains details about the Card payment method options to pass to the order's PaymentIntent. -
setCustomerBalance
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setCustomerBalance(OrderCreateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance customerBalance) If paying bycustomer_balance
, this sub-hash contains details about the Customer Balance payment method options to pass to the order's PaymentIntent. -
putExtraParam
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.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. SeeOrderCreateParams.Payment.Settings.PaymentMethodOptions.extraParams
for the field documentation. -
putAllExtraParam
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.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. SeeOrderCreateParams.Payment.Settings.PaymentMethodOptions.extraParams
for the field documentation. -
setIdeal
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setIdeal(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Ideal ideal) If paying byideal
, this sub-hash contains details about the iDEAL payment method options to pass to the order's PaymentIntent. -
setKlarna
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setKlarna(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna klarna) If paying byklarna
, this sub-hash contains details about the Klarna payment method options to pass to the order's PaymentIntent. -
setLink
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setLink(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Link link) If paying bylink
, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent. -
setOxxo
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setOxxo(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Oxxo oxxo) If paying byoxxo
, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent. -
setP24
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setP24(OrderCreateParams.Payment.Settings.PaymentMethodOptions.P24 p24) If paying byp24
, this sub-hash contains details about the P24 payment method options to pass to the order's PaymentIntent. -
setPaypal
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setPaypal(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal paypal) If paying bypaypal
, this sub-hash contains details about the PayPal payment method options to pass to the order's PaymentIntent. -
setSepaDebit
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setSepaDebit(OrderCreateParams.Payment.Settings.PaymentMethodOptions.SepaDebit sepaDebit) If paying bysepa_debit
, this sub-hash contains details about the SEPA Debit payment method options to pass to the order's PaymentIntent. -
setSofort
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setSofort(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Sofort sofort) If paying bysofort
, this sub-hash contains details about the Sofort payment method options to pass to the order's PaymentIntent. -
setWechatPay
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Builder setWechatPay(OrderCreateParams.Payment.Settings.PaymentMethodOptions.WechatPay wechatPay) If paying bywechat_pay
, this sub-hash contains details about the WeChat Pay payment method options to pass to the order's PaymentIntent.
-