Package com.stripe.param
Class PaymentMethodCreateParams.Builder
java.lang.Object
com.stripe.param.PaymentMethodCreateParams.Builder
- Enclosing class:
- PaymentMethodCreateParams
-
Constructor Summary
Constructors -
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_debitPaymentMethod, this hash contains details about the ACSS Debit payment method.If this is anaffirmPaymentMethod, this hash contains details about the Affirm payment method.setAfterpayClearpay(PaymentMethodCreateParams.AfterpayClearpay afterpayClearpay) If this is anAfterpayClearpayPaymentMethod, this hash contains details about the AfterpayClearpay payment method.If this is anAlipayPaymentMethod, this hash contains details about the Alipay payment method.setAuBecsDebit(PaymentMethodCreateParams.AuBecsDebit auBecsDebit) If this is anau_becs_debitPaymentMethod, this hash contains details about the bank account.setBacsDebit(PaymentMethodCreateParams.BacsDebit bacsDebit) If this is abacs_debitPaymentMethod, this hash contains details about the Bacs Direct Debit bank account.setBancontact(PaymentMethodCreateParams.Bancontact bancontact) If this is abancontactPaymentMethod, 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 ablikPaymentMethod, this hash contains details about the BLIK payment method.If this is aboletoPaymentMethod, this hash contains details about the Boleto payment method.If this is acardPaymentMethod, this hash contains the user's card details.If this is acardPaymentMethod, this hash contains the user's card details.setCustomer(String customer) TheCustomerto whom the original PaymentMethod is attached.setCustomerBalance(PaymentMethodCreateParams.CustomerBalance customerBalance) If this is acustomer_balancePaymentMethod, this hash contains details about the CustomerBalance payment method.If this is anepsPaymentMethod, this hash contains details about the EPS payment method.If this is anfpxPaymentMethod, this hash contains details about the FPX payment method.If this is agiropayPaymentMethod, this hash contains details about the Giropay payment method.If this is agrabpayPaymentMethod, this hash contains details about the GrabPay payment method.If this is anidealPaymentMethod, this hash contains details about the iDEAL payment method.setInteracPresent(PaymentMethodCreateParams.InteracPresent interacPresent) If this is aninterac_presentPaymentMethod, this hash contains details about the Interac Present payment method.If this is aklarnaPaymentMethod, this hash contains details about the Klarna payment method.If this is akonbiniPaymentMethod, this hash contains details about the Konbini payment method.If this is anLinkPaymentMethod, this hash contains details about the Link payment method.If this is anoxxoPaymentMethod, this hash contains details about the OXXO payment method.If this is ap24PaymentMethod, this hash contains details about the P24 payment method.setPaymentMethod(String paymentMethod) The PaymentMethod to share.If this is apaynowPaymentMethod, this hash contains details about the PayNow payment method.If this is apixPaymentMethod, this hash contains details about the Pix payment method.setPromptpay(PaymentMethodCreateParams.Promptpay promptpay) If this is apromptpayPaymentMethod, this hash contains details about the PromptPay payment method.setRadarOptions(PaymentMethodCreateParams.RadarOptions radarOptions) Options to configure Radar.setSepaDebit(PaymentMethodCreateParams.SepaDebit sepaDebit) If this is asepa_debitPaymentMethod, this hash contains details about the SEPA debit bank account.If this is asofortPaymentMethod, this hash contains details about the SOFORT payment method.The type of the PaymentMethod.setUsBankAccount(PaymentMethodCreateParams.UsBankAccount usBankAccount) If this is anus_bank_accountPaymentMethod, this hash contains details about the US bank account payment method.setWechatPay(PaymentMethodCreateParams.WechatPay wechatPay) If this is anwechat_payPaymentMethod, this hash contains details about the wechat_pay 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_debitPaymentMethod, this hash contains details about the ACSS Debit payment method. -
setAffirm
If this is anaffirmPaymentMethod, this hash contains details about the Affirm payment method. -
setAfterpayClearpay
public PaymentMethodCreateParams.Builder setAfterpayClearpay(PaymentMethodCreateParams.AfterpayClearpay afterpayClearpay) If this is anAfterpayClearpayPaymentMethod, this hash contains details about the AfterpayClearpay payment method. -
setAlipay
If this is anAlipayPaymentMethod, this hash contains details about the Alipay payment method. -
setAuBecsDebit
public PaymentMethodCreateParams.Builder setAuBecsDebit(PaymentMethodCreateParams.AuBecsDebit auBecsDebit) If this is anau_becs_debitPaymentMethod, this hash contains details about the bank account. -
setBacsDebit
public PaymentMethodCreateParams.Builder setBacsDebit(PaymentMethodCreateParams.BacsDebit bacsDebit) If this is abacs_debitPaymentMethod, this hash contains details about the Bacs Direct Debit bank account. -
setBancontact
public PaymentMethodCreateParams.Builder setBancontact(PaymentMethodCreateParams.Bancontact bancontact) If this is abancontactPaymentMethod, 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 ablikPaymentMethod, this hash contains details about the BLIK payment method. -
setBoleto
If this is aboletoPaymentMethod, this hash contains details about the Boleto payment method. -
setCard
If this is acardPaymentMethod, 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 acardPaymentMethod, 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. -
setCustomer
TheCustomerto whom the original PaymentMethod is attached. -
setCustomerBalance
public PaymentMethodCreateParams.Builder setCustomerBalance(PaymentMethodCreateParams.CustomerBalance customerBalance) If this is acustomer_balancePaymentMethod, this hash contains details about the CustomerBalance payment method. -
setEps
If this is anepsPaymentMethod, 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.expandfor 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.expandfor 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.extraParamsfor 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.extraParamsfor the field documentation. -
setFpx
If this is anfpxPaymentMethod, this hash contains details about the FPX payment method. -
setGiropay
If this is agiropayPaymentMethod, this hash contains details about the Giropay payment method. -
setGrabpay
If this is agrabpayPaymentMethod, this hash contains details about the GrabPay payment method. -
setIdeal
If this is anidealPaymentMethod, this hash contains details about the iDEAL payment method. -
setInteracPresent
public PaymentMethodCreateParams.Builder setInteracPresent(PaymentMethodCreateParams.InteracPresent interacPresent) If this is aninterac_presentPaymentMethod, this hash contains details about the Interac Present payment method. -
setKlarna
If this is aklarnaPaymentMethod, this hash contains details about the Klarna payment method. -
setKonbini
If this is akonbiniPaymentMethod, this hash contains details about the Konbini payment method. -
setLink
If this is anLinkPaymentMethod, 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.metadatafor 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.metadatafor the field documentation. -
setOxxo
If this is anoxxoPaymentMethod, this hash contains details about the OXXO payment method. -
setP24
If this is ap24PaymentMethod, this hash contains details about the P24 payment method. -
setPaymentMethod
The PaymentMethod to share. -
setPaynow
If this is apaynowPaymentMethod, this hash contains details about the PayNow payment method. -
setPix
If this is apixPaymentMethod, this hash contains details about the Pix payment method. -
setPromptpay
public PaymentMethodCreateParams.Builder setPromptpay(PaymentMethodCreateParams.Promptpay promptpay) If this is apromptpayPaymentMethod, 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. -
setSepaDebit
public PaymentMethodCreateParams.Builder setSepaDebit(PaymentMethodCreateParams.SepaDebit sepaDebit) If this is asepa_debitPaymentMethod, this hash contains details about the SEPA debit bank account. -
setSofort
If this is asofortPaymentMethod, this hash contains details about the SOFORT 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_accountPaymentMethod, this hash contains details about the US bank account payment method. -
setWechatPay
public PaymentMethodCreateParams.Builder setWechatPay(PaymentMethodCreateParams.WechatPay wechatPay) If this is anwechat_payPaymentMethod, this hash contains details about the wechat_pay payment method.
-