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.setAllowRedisplay(PaymentMethodCreateParams.AllowRedisplay allowRedisplay) This field indicates whether this payment method can be shown again to its customer in a checkout flow.If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.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_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.If this is abilliePaymentMethod, this hash contains details about the Billie 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.If this is acashappPaymentMethod, this hash contains details about the Cash App Pay payment method.If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.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 a Gopay PaymentMethod, this hash contains details about the Gopay payment method.If this is agrabpayPaymentMethod, this hash contains details about the GrabPay payment method.setIdBankTransfer(PaymentMethodCreateParams.IdBankTransfer idBankTransfer) If this is anIdBankTransferPaymentMethod, this hash contains details about the IdBankTransfer 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 akakao_payPaymentMethod, this hash contains details about the Kakao Pay 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 akr_cardPaymentMethod, this hash contains details about the Korean Card payment method.If this is anLinkPaymentMethod, this hash contains details about the Link payment method.If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.setMobilepay(PaymentMethodCreateParams.Mobilepay mobilepay) If this is amobilepayPaymentMethod, this hash contains details about the MobilePay payment method.setMultibanco(PaymentMethodCreateParams.Multibanco multibanco) If this is amultibancoPaymentMethod, this hash contains details about the Multibanco payment method.If this is anaver_payPaymentMethod, this hash contains details about the Naver Pay payment method.setNzBankAccount(PaymentMethodCreateParams.NzBankAccount nzBankAccount) If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account 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.setPayByBank(PaymentMethodCreateParams.PayByBank payByBank) If this is apay_by_bankPaymentMethod, this hash contains details about the PayByBank payment method.If this is apaycoPaymentMethod, this hash contains details about the PAYCO 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 apaypalPaymentMethod, this hash contains details about the PayPal payment method.If this is apaypayPaymentMethod, this hash contains details about the PayPay payment method.If this is apaytoPaymentMethod, this hash contains details about the PayTo 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.If this is aqrisPaymentMethod, this hash contains details about the QRIS payment method.setRadarOptions(PaymentMethodCreateParams.RadarOptions radarOptions) Options to configure Radar.If this is arechnungPaymentMethod, this hash contains details about the Rechnung payment method.setRevolutPay(PaymentMethodCreateParams.RevolutPay revolutPay) If this is arevolut_payPaymentMethod, this hash contains details about the Revolut Pay payment method.setSamsungPay(PaymentMethodCreateParams.SamsungPay samsungPay) If this is asamsung_payPaymentMethod, this hash contains details about the SamsungPay payment method.If this is asatispayPaymentMethod, this hash contains details about the Satispay payment method.setSepaDebit(PaymentMethodCreateParams.SepaDebit sepaDebit) If this is asepa_debitPaymentMethod, this hash contains details about the SEPA debit bank account.setShopeepay(PaymentMethodCreateParams.Shopeepay shopeepay) If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.If this is asofortPaymentMethod, this hash contains details about the SOFORT payment method.setStripeBalance(PaymentMethodCreateParams.StripeBalance stripeBalance) This hash contains details about the Stripe balance payment method.If this is aswishPaymentMethod, 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_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.If this is azipPaymentMethod, 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_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. -
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. -
setAlma
If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. -
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_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. -
setBillie
If this is abilliePaymentMethod, this hash contains details about the Billie 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. -
setCashapp
If this is acashappPaymentMethod, this hash contains details about the Cash App Pay payment method. -
setCrypto
If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method. -
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. -
setGopay
If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method. -
setGrabpay
If this is agrabpayPaymentMethod, this hash contains details about the GrabPay payment method. -
setIdBankTransfer
public PaymentMethodCreateParams.Builder setIdBankTransfer(PaymentMethodCreateParams.IdBankTransfer idBankTransfer) If this is anIdBankTransferPaymentMethod, this hash contains details about the IdBankTransfer 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. -
setKakaoPay
If this is akakao_payPaymentMethod, this hash contains details about the Kakao Pay 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. -
setKrCard
If this is akr_cardPaymentMethod, this hash contains details about the Korean Card payment method. -
setLink
If this is anLinkPaymentMethod, this hash contains details about the Link payment method. -
setMbWay
If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY 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. -
setMobilepay
public PaymentMethodCreateParams.Builder setMobilepay(PaymentMethodCreateParams.Mobilepay mobilepay) If this is amobilepayPaymentMethod, this hash contains details about the MobilePay payment method. -
setMultibanco
public PaymentMethodCreateParams.Builder setMultibanco(PaymentMethodCreateParams.Multibanco multibanco) If this is amultibancoPaymentMethod, this hash contains details about the Multibanco payment method. -
setNzBankAccount
public PaymentMethodCreateParams.Builder setNzBankAccount(PaymentMethodCreateParams.NzBankAccount nzBankAccount) If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method. -
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. -
setPayByBank
public PaymentMethodCreateParams.Builder setPayByBank(PaymentMethodCreateParams.PayByBank payByBank) If this is apay_by_bankPaymentMethod, this hash contains details about the PayByBank payment method. -
setPayco
If this is apaycoPaymentMethod, this hash contains details about the PAYCO payment method. -
setPaymentMethod
The PaymentMethod to share. -
setPaynow
If this is apaynowPaymentMethod, this hash contains details about the PayNow payment method. -
setPaypal
If this is apaypalPaymentMethod, this hash contains details about the PayPal payment method. -
setPaypay
If this is apaypayPaymentMethod, this hash contains details about the PayPay payment method. -
setPayto
If this is apaytoPaymentMethod, this hash contains details about the PayTo 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. -
setQris
If this is aqrisPaymentMethod, this hash contains details about the QRIS payment method. -
setRadarOptions
public PaymentMethodCreateParams.Builder setRadarOptions(PaymentMethodCreateParams.RadarOptions radarOptions) Options to configure Radar. See Radar Session for more information. -
setRechnung
If this is arechnungPaymentMethod, this hash contains details about the Rechnung payment method. -
setRevolutPay
public PaymentMethodCreateParams.Builder setRevolutPay(PaymentMethodCreateParams.RevolutPay revolutPay) If this is arevolut_payPaymentMethod, this hash contains details about the Revolut Pay payment method. -
setSamsungPay
public PaymentMethodCreateParams.Builder setSamsungPay(PaymentMethodCreateParams.SamsungPay samsungPay) If this is asamsung_payPaymentMethod, this hash contains details about the SamsungPay payment method. -
setSatispay
If this is asatispayPaymentMethod, this hash contains details about the Satispay payment method. -
setSepaDebit
public PaymentMethodCreateParams.Builder setSepaDebit(PaymentMethodCreateParams.SepaDebit sepaDebit) If this is asepa_debitPaymentMethod, this hash contains details about the SEPA debit bank account. -
setShopeepay
public PaymentMethodCreateParams.Builder setShopeepay(PaymentMethodCreateParams.Shopeepay shopeepay) If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. -
setSofort
If this is asofortPaymentMethod, this hash contains details about the SOFORT payment method. -
setStripeBalance
public PaymentMethodCreateParams.Builder setStripeBalance(PaymentMethodCreateParams.StripeBalance stripeBalance) This hash contains details about the Stripe balance payment method. -
setSwish
If this is aswishPaymentMethod, 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_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. -
setZip
If this is azipPaymentMethod, this hash contains details about the Zip payment method.
-