Package com.stripe.param
Class PaymentMethodCreateParams.Builder
java.lang.Object
com.stripe.param.PaymentMethodCreateParams.Builder
- Enclosing class:
- PaymentMethodCreateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setAcssDebit
(PaymentMethodCreateParams.AcssDebit acssDebit) If this is anacss_debit
PaymentMethod, this hash contains details about the ACSS Debit payment method.If this is anaffirm
PaymentMethod, this hash contains details about the Affirm payment method.setAfterpayClearpay
(PaymentMethodCreateParams.AfterpayClearpay afterpayClearpay) If this is anAfterpayClearpay
PaymentMethod, this hash contains details about the AfterpayClearpay payment method.If this is anAlipay
PaymentMethod, this hash contains details about the Alipay payment method.setAllowRedisplay
(PaymentMethodCreateParams.AllowRedisplay allowRedisplay) This field indicates whether this payment method can be shown again to its customer in a checkout flow.setAmazonPay
(PaymentMethodCreateParams.AmazonPay amazonPay) If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.setAuBecsDebit
(PaymentMethodCreateParams.AuBecsDebit auBecsDebit) If this is anau_becs_debit
PaymentMethod, this hash contains details about the bank account.setBacsDebit
(PaymentMethodCreateParams.BacsDebit bacsDebit) If this is abacs_debit
PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.setBancontact
(PaymentMethodCreateParams.Bancontact bancontact) If this is abancontact
PaymentMethod, this hash contains details about the Bancontact payment method.setBillingDetails
(PaymentMethodCreateParams.BillingDetails billingDetails) Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.If this is ablik
PaymentMethod, this hash contains details about the BLIK payment method.If this is aboleto
PaymentMethod, this hash contains details about the Boleto payment method.If this is acard
PaymentMethod, this hash contains the user's card details.If this is acard
PaymentMethod, this hash contains the user's card details.If this is acashapp
PaymentMethod, this hash contains details about the Cash App Pay payment method.setCustomer
(String customer) TheCustomer
to whom the original PaymentMethod is attached.setCustomerBalance
(PaymentMethodCreateParams.CustomerBalance customerBalance) If this is acustomer_balance
PaymentMethod, this hash contains details about the CustomerBalance payment method.If this is aneps
PaymentMethod, this hash contains details about the EPS payment method.If this is anfpx
PaymentMethod, this hash contains details about the FPX payment method.If this is agiropay
PaymentMethod, this hash contains details about the Giropay payment method.If this is agrabpay
PaymentMethod, this hash contains details about the GrabPay payment method.If this is anideal
PaymentMethod, this hash contains details about the iDEAL payment method.setInteracPresent
(PaymentMethodCreateParams.InteracPresent interacPresent) If this is aninterac_present
PaymentMethod, this hash contains details about the Interac Present payment method.If this is aklarna
PaymentMethod, this hash contains details about the Klarna payment method.If this is akonbini
PaymentMethod, this hash contains details about the Konbini payment method.If this is anLink
PaymentMethod, this hash contains details about the Link payment method.setMobilepay
(PaymentMethodCreateParams.Mobilepay mobilepay) If this is amobilepay
PaymentMethod, this hash contains details about the MobilePay payment method.setMultibanco
(PaymentMethodCreateParams.Multibanco multibanco) If this is amultibanco
PaymentMethod, this hash contains details about the Multibanco payment method.If this is anoxxo
PaymentMethod, this hash contains details about the OXXO payment method.If this is ap24
PaymentMethod, this hash contains details about the P24 payment method.setPaymentMethod
(String paymentMethod) The PaymentMethod to share.If this is apaynow
PaymentMethod, this hash contains details about the PayNow payment method.If this is apaypal
PaymentMethod, this hash contains details about the PayPal payment method.If this is apix
PaymentMethod, this hash contains details about the Pix payment method.setPromptpay
(PaymentMethodCreateParams.Promptpay promptpay) If this is apromptpay
PaymentMethod, this hash contains details about the PromptPay payment method.setRadarOptions
(PaymentMethodCreateParams.RadarOptions radarOptions) Options to configure Radar.setRevolutPay
(PaymentMethodCreateParams.RevolutPay revolutPay) If this is aRevolut Pay
PaymentMethod, this hash contains details about the Revolut Pay payment method.setSepaDebit
(PaymentMethodCreateParams.SepaDebit sepaDebit) If this is asepa_debit
PaymentMethod, this hash contains details about the SEPA debit bank account.If this is asofort
PaymentMethod, this hash contains details about the SOFORT payment method.If this is aswish
PaymentMethod, this hash contains details about the Swish payment method.If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.The type of the PaymentMethod.setUsBankAccount
(PaymentMethodCreateParams.UsBankAccount usBankAccount) If this is anus_bank_account
PaymentMethod, this hash contains details about the US bank account payment method.setWechatPay
(PaymentMethodCreateParams.WechatPay wechatPay) If this is anwechat_pay
PaymentMethod, this hash contains details about the wechat_pay payment method.If this is azip
PaymentMethod, this hash contains details about the Zip payment method.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAcssDebit
public PaymentMethodCreateParams.Builder setAcssDebit(PaymentMethodCreateParams.AcssDebit acssDebit) If this is anacss_debit
PaymentMethod, this hash contains details about the ACSS Debit payment method. -
setAffirm
If this is anaffirm
PaymentMethod, this hash contains details about the Affirm payment method. -
setAfterpayClearpay
public PaymentMethodCreateParams.Builder setAfterpayClearpay(PaymentMethodCreateParams.AfterpayClearpay afterpayClearpay) If this is anAfterpayClearpay
PaymentMethod, this hash contains details about the AfterpayClearpay payment method. -
setAlipay
If this is anAlipay
PaymentMethod, this hash contains details about the Alipay payment method. -
setAllowRedisplay
public PaymentMethodCreateParams.Builder setAllowRedisplay(PaymentMethodCreateParams.AllowRedisplay allowRedisplay) This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults tounspecified
. -
setAmazonPay
public PaymentMethodCreateParams.Builder setAmazonPay(PaymentMethodCreateParams.AmazonPay amazonPay) If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. -
setAuBecsDebit
public PaymentMethodCreateParams.Builder setAuBecsDebit(PaymentMethodCreateParams.AuBecsDebit auBecsDebit) If this is anau_becs_debit
PaymentMethod, this hash contains details about the bank account. -
setBacsDebit
public PaymentMethodCreateParams.Builder setBacsDebit(PaymentMethodCreateParams.BacsDebit bacsDebit) If this is abacs_debit
PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. -
setBancontact
public PaymentMethodCreateParams.Builder setBancontact(PaymentMethodCreateParams.Bancontact bancontact) If this is abancontact
PaymentMethod, this hash contains details about the Bancontact payment method. -
setBillingDetails
public PaymentMethodCreateParams.Builder setBillingDetails(PaymentMethodCreateParams.BillingDetails billingDetails) Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. -
setBlik
If this is ablik
PaymentMethod, this hash contains details about the BLIK payment method. -
setBoleto
If this is aboleto
PaymentMethod, this hash contains details about the Boleto payment method. -
setCard
If this is acard
PaymentMethod, this hash contains the user's card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with formatcard: {token: "tok_visa"}
. When providing a card number, you must meet the requirements for PCI compliance. We strongly recommend using Stripe.js instead of interacting with this API directly. -
setCard
If this is acard
PaymentMethod, this hash contains the user's card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with formatcard: {token: "tok_visa"}
. When providing a card number, you must meet the requirements for PCI compliance. We strongly recommend using Stripe.js instead of interacting with this API directly. -
setCashapp
If this is acashapp
PaymentMethod, this hash contains details about the Cash App Pay payment method. -
setCustomer
TheCustomer
to whom the original PaymentMethod is attached. -
setCustomerBalance
public PaymentMethodCreateParams.Builder setCustomerBalance(PaymentMethodCreateParams.CustomerBalance customerBalance) If this is acustomer_balance
PaymentMethod, this hash contains details about the CustomerBalance payment method. -
setEps
If this is aneps
PaymentMethod, this hash contains details about the EPS payment method. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentMethodCreateParams.expand
for the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentMethodCreateParams.expand
for the field documentation. -
putExtraParam
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. SeePaymentMethodCreateParams.extraParams
for the field documentation. -
putAllExtraParam
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. SeePaymentMethodCreateParams.extraParams
for the field documentation. -
setFpx
If this is anfpx
PaymentMethod, this hash contains details about the FPX payment method. -
setGiropay
If this is agiropay
PaymentMethod, this hash contains details about the Giropay payment method. -
setGrabpay
If this is agrabpay
PaymentMethod, this hash contains details about the GrabPay payment method. -
setIdeal
If this is anideal
PaymentMethod, this hash contains details about the iDEAL payment method. -
setInteracPresent
public PaymentMethodCreateParams.Builder setInteracPresent(PaymentMethodCreateParams.InteracPresent interacPresent) If this is aninterac_present
PaymentMethod, this hash contains details about the Interac Present payment method. -
setKlarna
If this is aklarna
PaymentMethod, this hash contains details about the Klarna payment method. -
setKonbini
If this is akonbini
PaymentMethod, this hash contains details about the Konbini payment method. -
setLink
If this is anLink
PaymentMethod, this hash contains details about the Link payment method. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePaymentMethodCreateParams.metadata
for the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePaymentMethodCreateParams.metadata
for the field documentation. -
setMobilepay
public PaymentMethodCreateParams.Builder setMobilepay(PaymentMethodCreateParams.Mobilepay mobilepay) If this is amobilepay
PaymentMethod, this hash contains details about the MobilePay payment method. -
setMultibanco
public PaymentMethodCreateParams.Builder setMultibanco(PaymentMethodCreateParams.Multibanco multibanco) If this is amultibanco
PaymentMethod, this hash contains details about the Multibanco payment method. -
setOxxo
If this is anoxxo
PaymentMethod, this hash contains details about the OXXO payment method. -
setP24
If this is ap24
PaymentMethod, this hash contains details about the P24 payment method. -
setPaymentMethod
The PaymentMethod to share. -
setPaynow
If this is apaynow
PaymentMethod, this hash contains details about the PayNow payment method. -
setPaypal
If this is apaypal
PaymentMethod, this hash contains details about the PayPal payment method. -
setPix
If this is apix
PaymentMethod, this hash contains details about the Pix payment method. -
setPromptpay
public PaymentMethodCreateParams.Builder setPromptpay(PaymentMethodCreateParams.Promptpay promptpay) If this is apromptpay
PaymentMethod, this hash contains details about the PromptPay payment method. -
setRadarOptions
public PaymentMethodCreateParams.Builder setRadarOptions(PaymentMethodCreateParams.RadarOptions radarOptions) Options to configure Radar. See Radar Session for more information. -
setRevolutPay
public PaymentMethodCreateParams.Builder setRevolutPay(PaymentMethodCreateParams.RevolutPay revolutPay) If this is aRevolut Pay
PaymentMethod, this hash contains details about the Revolut Pay payment method. -
setSepaDebit
public PaymentMethodCreateParams.Builder setSepaDebit(PaymentMethodCreateParams.SepaDebit sepaDebit) If this is asepa_debit
PaymentMethod, this hash contains details about the SEPA debit bank account. -
setSofort
If this is asofort
PaymentMethod, this hash contains details about the SOFORT payment method. -
setSwish
If this is aswish
PaymentMethod, this hash contains details about the Swish payment method. -
setTwint
If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. -
setType
The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. -
setUsBankAccount
public PaymentMethodCreateParams.Builder setUsBankAccount(PaymentMethodCreateParams.UsBankAccount usBankAccount) If this is anus_bank_account
PaymentMethod, this hash contains details about the US bank account payment method. -
setWechatPay
public PaymentMethodCreateParams.Builder setWechatPay(PaymentMethodCreateParams.WechatPay wechatPay) If this is anwechat_pay
PaymentMethod, this hash contains details about the wechat_pay payment method. -
setZip
If this is azip
PaymentMethod, this hash contains details about the Zip payment method.
-