Class PaymentMethod
- All Implemented Interfaces:
HasId,MetadataStore<PaymentMethod>,StripeActiveObject,StripeObjectInterface
Related guides: Payment Methods and More Payment Scenarios.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about AcssDebit, please refer to the API Reference.static classFor more details about Affirm, please refer to the API Reference.static classFor more details about AfterpayClearpay, please refer to the API Reference.static classFor more details about Alipay, please refer to the API Reference.static classFor more details about Alma, please refer to the API Reference.static classFor more details about AmazonPay, please refer to the API Reference.static classFor more details about AuBecsDebit, please refer to the API Reference.static classFor more details about BacsDebit, please refer to the API Reference.static classFor more details about Bancontact, please refer to the API Reference.static classFor more details about Billie, please refer to the API Reference.static classFor more details about BillingDetails, please refer to the API Reference.static classFor more details about Blik, please refer to the API Reference.static classFor more details about Boleto, please refer to the API Reference.static classFor more details about Card, please refer to the API Reference.static classFor more details about CardPresent, please refer to the API Reference.static classFor more details about Cashapp, please refer to the API Reference.static classFor more details about Crypto, please refer to the API Reference.static classFor more details about Custom, please refer to the API Reference.static classFor more details about CustomerBalance, please refer to the API Reference.static classFor more details about Eps, please refer to the API Reference.static classFor more details about Fpx, please refer to the API Reference.static classFor more details about Giropay, please refer to the API Reference.static classFor more details about Gopay, please refer to the API Reference.static classFor more details about Grabpay, please refer to the API Reference.static classFor more details about IdBankTransfer, please refer to the API Reference.static classFor more details about Ideal, please refer to the API Reference.static classFor more details about InteracPresent, please refer to the API Reference.static classFor more details about KakaoPay, please refer to the API Reference.static classFor more details about Klarna, please refer to the API Reference.static classFor more details about Konbini, please refer to the API Reference.static classFor more details about KrCard, please refer to the API Reference.static classFor more details about Link, please refer to the API Reference.static classFor more details about MbWay, please refer to the API Reference.static classFor more details about Mobilepay, please refer to the API Reference.static classFor more details about Multibanco, please refer to the API Reference.static classFor more details about NaverPay, please refer to the API Reference.static classFor more details about NzBankAccount, please refer to the API Reference.static classFor more details about Oxxo, please refer to the API Reference.static classFor more details about P24, please refer to the API Reference.static classFor more details about PayByBank, please refer to the API Reference.static classFor more details about Payco, please refer to the API Reference.static classFor more details about Paynow, please refer to the API Reference.static classFor more details about Paypal, please refer to the API Reference.static classFor more details about Paypay, please refer to the API Reference.static classFor more details about Payto, please refer to the API Reference.static classFor more details about Pix, please refer to the API Reference.static classFor more details about Promptpay, please refer to the API Reference.static classFor more details about Qris, please refer to the API Reference.static classOptions to configure Radar.static classFor more details about Rechnung, please refer to the API Reference.static classFor more details about RevolutPay, please refer to the API Reference.static classFor more details about SamsungPay, please refer to the API Reference.static classFor more details about Satispay, please refer to the API Reference.static classFor more details about SepaDebit, please refer to the API Reference.static classFor more details about Shopeepay, please refer to the API Reference.static classFor more details about Sofort, please refer to the API Reference.static classFor more details about StripeBalance, please refer to the API Reference.static classFor more details about Swish, please refer to the API Reference.static classFor more details about Twint, please refer to the API Reference.static classFor more details about UsBankAccount, please refer to the API Reference.static classFor more details about WechatPay, please refer to the API Reference.static classFor more details about Zip, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattach()Attaches a PaymentMethod object to a Customer.attach(RequestOptions options) Attaches a PaymentMethod object to a Customer.attach(PaymentMethodAttachParams params) Attaches a PaymentMethod object to a Customer.attach(PaymentMethodAttachParams params, RequestOptions options) Attaches a PaymentMethod object to a Customer.Attaches a PaymentMethod object to a Customer.attach(Map<String, Object> params, RequestOptions options) Attaches a PaymentMethod object to a Customer.protected booleanRetrieves a payment method’s balance.checkBalance(RequestOptions options) Retrieves a payment method’s balance.Retrieves a payment method’s balance.checkBalance(PaymentMethodCheckBalanceParams params, RequestOptions options) Retrieves a payment method’s balance.checkBalance(Map<String, Object> params) Retrieves a payment method’s balance.checkBalance(Map<String, Object> params, RequestOptions options) Retrieves a payment method’s balance.static PaymentMethodcreate(PaymentMethodCreateParams params) Creates a PaymentMethod object.static PaymentMethodcreate(PaymentMethodCreateParams params, RequestOptions options) Creates a PaymentMethod object.static PaymentMethodCreates a PaymentMethod object.static PaymentMethodcreate(Map<String, Object> params, RequestOptions options) Creates a PaymentMethod object.detach()Detaches a PaymentMethod object from a Customer.detach(RequestOptions options) Detaches a PaymentMethod object from a Customer.detach(PaymentMethodDetachParams params) Detaches a PaymentMethod object from a Customer.detach(PaymentMethodDetachParams params, RequestOptions options) Detaches a PaymentMethod object from a Customer.Detaches a PaymentMethod object from a Customer.detach(Map<String, Object> params, RequestOptions options) Detaches a PaymentMethod object from a Customer.booleanThis field indicates whether this payment method can be shown again to its customer in a checkout flow.getAlma()getBlik()getCard()Time at which the object was created.Get ID of expandablecustomerobject.Get expandedcustomer.getEps()getFpx()getGopay()getId()Unique identifier for the object.getIdeal()The Mandate object of the most recently created Mandate associated with this payment method.getLink()Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.getMbWay()Set of key-value pairs that you can attach to an object.String representing the object's type.getOxxo()getP24()getPayco()getPayto()getPix()getQris()Options to configure Radar.getSwish()getTwint()getType()The type of the PaymentMethod.getZip()inthashCode()static PaymentMethodCollectionlist(PaymentMethodListParams params) Returns a list of PaymentMethods for Treasury flows.static PaymentMethodCollectionlist(PaymentMethodListParams params, RequestOptions options) Returns a list of PaymentMethods for Treasury flows.static PaymentMethodCollectionReturns a list of PaymentMethods for Treasury flows.static PaymentMethodCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of PaymentMethods for Treasury flows.static PaymentMethodRetrieves a PaymentMethod object attached to the StripeAccount.static PaymentMethodretrieve(String paymentMethod, RequestOptions options) Retrieves a PaymentMethod object attached to the StripeAccount.static PaymentMethodretrieve(String paymentMethod, PaymentMethodRetrieveParams params, RequestOptions options) Retrieves a PaymentMethod object attached to the StripeAccount.static PaymentMethodRetrieves a PaymentMethod object attached to the StripeAccount.voidsetAcssDebit(PaymentMethod.AcssDebit acssDebit) voidsetAffirm(PaymentMethod.Affirm affirm) voidsetAfterpayClearpay(PaymentMethod.AfterpayClearpay afterpayClearpay) voidsetAlipay(PaymentMethod.Alipay alipay) voidsetAllowRedisplay(String allowRedisplay) This field indicates whether this payment method can be shown again to its customer in a checkout flow.voidsetAlma(PaymentMethod.Alma alma) voidsetAmazonPay(PaymentMethod.AmazonPay amazonPay) voidsetAuBecsDebit(PaymentMethod.AuBecsDebit auBecsDebit) voidsetBacsDebit(PaymentMethod.BacsDebit bacsDebit) voidsetBancontact(PaymentMethod.Bancontact bancontact) voidsetBillie(PaymentMethod.Billie billie) voidsetBillingDetails(PaymentMethod.BillingDetails billingDetails) voidsetBlik(PaymentMethod.Blik blik) voidsetBoleto(PaymentMethod.Boleto boleto) voidsetCard(PaymentMethod.Card card) voidsetCardPresent(PaymentMethod.CardPresent cardPresent) voidsetCashapp(PaymentMethod.Cashapp cashapp) voidsetCreated(Long created) Time at which the object was created.voidsetCrypto(PaymentMethod.Crypto crypto) voidsetCustom(PaymentMethod.Custom custom) voidsetCustomer(String id) voidsetCustomerAccount(String customerAccount) voidsetCustomerBalance(PaymentMethod.CustomerBalance customerBalance) voidsetCustomerObject(Customer expandableObject) voidsetEps(PaymentMethod.Eps eps) voidsetFpx(PaymentMethod.Fpx fpx) voidsetGiropay(PaymentMethod.Giropay giropay) voidsetGopay(PaymentMethod.Gopay gopay) voidsetGrabpay(PaymentMethod.Grabpay grabpay) voidUnique identifier for the object.voidsetIdBankTransfer(PaymentMethod.IdBankTransfer idBankTransfer) voidsetIdeal(PaymentMethod.Ideal ideal) voidsetInteracPresent(PaymentMethod.InteracPresent interacPresent) voidsetKakaoPay(PaymentMethod.KakaoPay kakaoPay) voidsetKlarna(PaymentMethod.Klarna klarna) voidsetKonbini(PaymentMethod.Konbini konbini) voidsetKrCard(PaymentMethod.KrCard krCard) voidsetLatestActiveMandate(Mandate latestActiveMandate) The Mandate object of the most recently created Mandate associated with this payment method.voidsetLink(PaymentMethod.Link link) voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMbWay(PaymentMethod.MbWay mbWay) voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidsetMobilepay(PaymentMethod.Mobilepay mobilepay) voidsetMultibanco(PaymentMethod.Multibanco multibanco) voidsetNaverPay(PaymentMethod.NaverPay naverPay) voidsetNzBankAccount(PaymentMethod.NzBankAccount nzBankAccount) voidString representing the object's type.voidsetOxxo(PaymentMethod.Oxxo oxxo) voidsetP24(PaymentMethod.P24 p24) voidsetPayByBank(PaymentMethod.PayByBank payByBank) voidsetPayco(PaymentMethod.Payco payco) voidsetPaynow(PaymentMethod.Paynow paynow) voidsetPaypal(PaymentMethod.Paypal paypal) voidsetPaypay(PaymentMethod.Paypay paypay) voidsetPayto(PaymentMethod.Payto payto) voidsetPix(PaymentMethod.Pix pix) voidsetPromptpay(PaymentMethod.Promptpay promptpay) voidsetQris(PaymentMethod.Qris qris) voidsetRadarOptions(PaymentMethod.RadarOptions radarOptions) Options to configure Radar.voidsetRechnung(PaymentMethod.Rechnung rechnung) voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetRevolutPay(PaymentMethod.RevolutPay revolutPay) voidsetSamsungPay(PaymentMethod.SamsungPay samsungPay) voidsetSatispay(PaymentMethod.Satispay satispay) voidsetSepaDebit(PaymentMethod.SepaDebit sepaDebit) voidsetShopeepay(PaymentMethod.Shopeepay shopeepay) voidsetSofort(PaymentMethod.Sofort sofort) voidsetStripeBalance(PaymentMethod.StripeBalance stripeBalance) voidsetSwish(PaymentMethod.Swish swish) voidsetTwint(PaymentMethod.Twint twint) voidThe type of the PaymentMethod.voidsetUsBankAccount(PaymentMethod.UsBankAccount usBankAccount) voidsetWechatPay(PaymentMethod.WechatPay wechatPay) voidsetZip(PaymentMethod.Zip zip) update(PaymentMethodUpdateParams params) Updates a PaymentMethod object.update(PaymentMethodUpdateParams params, RequestOptions options) Updates a PaymentMethod object.Updates a PaymentMethod object.update(Map<String, Object> params, RequestOptions options) Updates a PaymentMethod object.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
PaymentMethod
public PaymentMethod()
-
-
Method Details
-
getCustomer
Get ID of expandablecustomerobject. -
setCustomer
-
getCustomerObject
Get expandedcustomer. -
setCustomerObject
-
attach
Attaches a PaymentMethod object to a Customer.To attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent or a PaymentIntent with setup_future_usage. These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the
/v1/payment_methods/:id/attachendpoint without first using a SetupIntent or PaymentIntent withsetup_future_usagedoes not optimize the PaymentMethod for future use, which makes later declines and payment friction more likely. See Optimizing cards for future payments for more information about setting up future payments.To use this PaymentMethod as the default for invoice or subscription payments, set
invoice_settings.default_payment_method, on the Customer to the PaymentMethod’s ID.- Throws:
StripeException
-
attach
Attaches a PaymentMethod object to a Customer.To attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent or a PaymentIntent with setup_future_usage. These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the
/v1/payment_methods/:id/attachendpoint without first using a SetupIntent or PaymentIntent withsetup_future_usagedoes not optimize the PaymentMethod for future use, which makes later declines and payment friction more likely. See Optimizing cards for future payments for more information about setting up future payments.To use this PaymentMethod as the default for invoice or subscription payments, set
invoice_settings.default_payment_method, on the Customer to the PaymentMethod’s ID.- Throws:
StripeException
-
attach
Attaches a PaymentMethod object to a Customer.To attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent or a PaymentIntent with setup_future_usage. These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the
/v1/payment_methods/:id/attachendpoint without first using a SetupIntent or PaymentIntent withsetup_future_usagedoes not optimize the PaymentMethod for future use, which makes later declines and payment friction more likely. See Optimizing cards for future payments for more information about setting up future payments.To use this PaymentMethod as the default for invoice or subscription payments, set
invoice_settings.default_payment_method, on the Customer to the PaymentMethod’s ID.- Throws:
StripeException
-
attach
public PaymentMethod attach(Map<String, Object> params, RequestOptions options) throws StripeExceptionAttaches a PaymentMethod object to a Customer.To attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent or a PaymentIntent with setup_future_usage. These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the
/v1/payment_methods/:id/attachendpoint without first using a SetupIntent or PaymentIntent withsetup_future_usagedoes not optimize the PaymentMethod for future use, which makes later declines and payment friction more likely. See Optimizing cards for future payments for more information about setting up future payments.To use this PaymentMethod as the default for invoice or subscription payments, set
invoice_settings.default_payment_method, on the Customer to the PaymentMethod’s ID.- Throws:
StripeException
-
attach
Attaches a PaymentMethod object to a Customer.To attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent or a PaymentIntent with setup_future_usage. These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the
/v1/payment_methods/:id/attachendpoint without first using a SetupIntent or PaymentIntent withsetup_future_usagedoes not optimize the PaymentMethod for future use, which makes later declines and payment friction more likely. See Optimizing cards for future payments for more information about setting up future payments.To use this PaymentMethod as the default for invoice or subscription payments, set
invoice_settings.default_payment_method, on the Customer to the PaymentMethod’s ID.- Throws:
StripeException
-
attach
public PaymentMethod attach(PaymentMethodAttachParams params, RequestOptions options) throws StripeException Attaches a PaymentMethod object to a Customer.To attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent or a PaymentIntent with setup_future_usage. These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the
/v1/payment_methods/:id/attachendpoint without first using a SetupIntent or PaymentIntent withsetup_future_usagedoes not optimize the PaymentMethod for future use, which makes later declines and payment friction more likely. See Optimizing cards for future payments for more information about setting up future payments.To use this PaymentMethod as the default for invoice or subscription payments, set
invoice_settings.default_payment_method, on the Customer to the PaymentMethod’s ID.- Throws:
StripeException
-
checkBalance
Retrieves a payment method’s balance.- Throws:
StripeException
-
checkBalance
Retrieves a payment method’s balance.- Throws:
StripeException
-
checkBalance
Retrieves a payment method’s balance.- Throws:
StripeException
-
checkBalance
public PaymentMethodBalance checkBalance(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a payment method’s balance.- Throws:
StripeException
-
checkBalance
public PaymentMethodBalance checkBalance(PaymentMethodCheckBalanceParams params) throws StripeException Retrieves a payment method’s balance.- Throws:
StripeException
-
checkBalance
public PaymentMethodBalance checkBalance(PaymentMethodCheckBalanceParams params, RequestOptions options) throws StripeException Retrieves a payment method’s balance.- Throws:
StripeException
-
create
Creates a PaymentMethod object. Read the Stripe.js reference to learn how to create PaymentMethods via Stripe.js.Instead of creating a PaymentMethod directly, we recommend using the PaymentIntents API to accept a payment immediately or the SetupIntent API to collect payment method details ahead of a future payment.
- Throws:
StripeException
-
create
public static PaymentMethod create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a PaymentMethod object. Read the Stripe.js reference to learn how to create PaymentMethods via Stripe.js.Instead of creating a PaymentMethod directly, we recommend using the PaymentIntents API to accept a payment immediately or the SetupIntent API to collect payment method details ahead of a future payment.
- Throws:
StripeException
-
create
Creates a PaymentMethod object. Read the Stripe.js reference to learn how to create PaymentMethods via Stripe.js.Instead of creating a PaymentMethod directly, we recommend using the PaymentIntents API to accept a payment immediately or the SetupIntent API to collect payment method details ahead of a future payment.
- Throws:
StripeException
-
create
public static PaymentMethod create(PaymentMethodCreateParams params, RequestOptions options) throws StripeException Creates a PaymentMethod object. Read the Stripe.js reference to learn how to create PaymentMethods via Stripe.js.Instead of creating a PaymentMethod directly, we recommend using the PaymentIntents API to accept a payment immediately or the SetupIntent API to collect payment method details ahead of a future payment.
- Throws:
StripeException
-
detach
Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.- Throws:
StripeException
-
detach
Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.- Throws:
StripeException
-
detach
Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.- Throws:
StripeException
-
detach
public PaymentMethod detach(Map<String, Object> params, RequestOptions options) throws StripeExceptionDetaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.- Throws:
StripeException
-
detach
Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.- Throws:
StripeException
-
detach
public PaymentMethod detach(PaymentMethodDetachParams params, RequestOptions options) throws StripeException Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.- Throws:
StripeException
-
list
Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the List a Customer’s PaymentMethods API instead.- Throws:
StripeException
-
list
public static PaymentMethodCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the List a Customer’s PaymentMethods API instead.- Throws:
StripeException
-
list
Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the List a Customer’s PaymentMethods API instead.- Throws:
StripeException
-
list
public static PaymentMethodCollection list(PaymentMethodListParams params, RequestOptions options) throws StripeException Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the List a Customer’s PaymentMethods API instead.- Throws:
StripeException
-
retrieve
Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use Retrieve a Customer’s PaymentMethods- Throws:
StripeException
-
retrieve
public static PaymentMethod retrieve(String paymentMethod, RequestOptions options) throws StripeException Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use Retrieve a Customer’s PaymentMethods- Throws:
StripeException
-
retrieve
public static PaymentMethod retrieve(String paymentMethod, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use Retrieve a Customer’s PaymentMethods- Throws:
StripeException
-
retrieve
public static PaymentMethod retrieve(String paymentMethod, PaymentMethodRetrieveParams params, RequestOptions options) throws StripeException Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use Retrieve a Customer’s PaymentMethods- Throws:
StripeException
-
update
Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.- Specified by:
updatein interfaceMetadataStore<PaymentMethod>- Throws:
StripeException
-
update
public PaymentMethod update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.- Specified by:
updatein interfaceMetadataStore<PaymentMethod>- Throws:
StripeException
-
update
Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.- Throws:
StripeException
-
update
public PaymentMethod update(PaymentMethodUpdateParams params, RequestOptions options) throws StripeException Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getAcssDebit
-
getAffirm
-
getAfterpayClearpay
-
getAlipay
-
getAllowRedisplay
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 to “unspecified”.One of
always,limited, orunspecified. -
getAlma
-
getAmazonPay
-
getAuBecsDebit
-
getBacsDebit
-
getBancontact
-
getBillie
-
getBillingDetails
-
getBlik
-
getBoleto
-
getCard
-
getCardPresent
-
getCashapp
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCrypto
-
getCustom
-
getCustomerAccount
-
getCustomerBalance
-
getEps
-
getFpx
-
getGiropay
-
getGopay
-
getGrabpay
-
getIdBankTransfer
-
getIdeal
-
getInteracPresent
-
getKakaoPay
-
getKlarna
-
getKonbini
-
getKrCard
-
getLatestActiveMandate
The Mandate object of the most recently created Mandate associated with this payment method. -
getLink
-
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getMbWay
-
getMobilepay
-
getMultibanco
-
getNzBankAccount
-
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
payment_method. -
getOxxo
-
getP24
-
getPayByBank
-
getPayco
-
getPaynow
-
getPaypal
-
getPaypay
-
getPayto
-
getPix
-
getPromptpay
-
getQris
-
getRadarOptions
Options to configure Radar. See Radar Session for more information. -
getRechnung
-
getRevolutPay
-
getSamsungPay
-
getSatispay
-
getSepaDebit
-
getShopeepay
-
getSofort
-
getStripeBalance
-
getSwish
-
getTwint
-
getType
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.One of
acss_debit,affirm,afterpay_clearpay,alipay,alma,amazon_pay,au_becs_debit,bacs_debit,bancontact,billie,blik,boleto,card,card_present,cashapp,crypto,custom,customer_balance,eps,fpx,giropay,gopay,grabpay,id_bank_transfer,ideal,interac_present,kakao_pay,klarna,konbini,kr_card,link,mb_way,mobilepay,multibanco,naver_pay,nz_bank_account,oxxo,p24,pay_by_bank,payco,paynow,paypal,paypay,payto,pix,promptpay,qris,rechnung,revolut_pay,samsung_pay,satispay,sepa_debit,shopeepay,sofort,stripe_balance,swish,twint,us_bank_account,wechat_pay, orzip. -
getUsBankAccount
-
getWechatPay
-
getZip
-
setAcssDebit
-
setAffirm
-
setAfterpayClearpay
-
setAlipay
-
setAllowRedisplay
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 to “unspecified”.One of
always,limited, orunspecified. -
setAlma
-
setAmazonPay
-
setAuBecsDebit
-
setBacsDebit
-
setBancontact
-
setBillie
-
setBillingDetails
-
setBlik
-
setBoleto
-
setCard
-
setCardPresent
-
setCashapp
-
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCrypto
-
setCustom
-
setCustomerAccount
-
setCustomerBalance
-
setEps
-
setFpx
-
setGiropay
-
setGopay
-
setGrabpay
-
setId
Unique identifier for the object. -
setIdBankTransfer
-
setIdeal
-
setInteracPresent
-
setKakaoPay
-
setKlarna
-
setKonbini
-
setKrCard
-
setLatestActiveMandate
The Mandate object of the most recently created Mandate associated with this payment method. -
setLink
-
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setMbWay
-
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setMobilepay
-
setMultibanco
-
setNzBankAccount
-
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
payment_method. -
setOxxo
-
setP24
-
setPayByBank
-
setPayco
-
setPaynow
-
setPaypal
-
setPaypay
-
setPayto
-
setPix
-
setPromptpay
-
setQris
-
setRadarOptions
Options to configure Radar. See Radar Session for more information. -
setRechnung
-
setRevolutPay
-
setSamsungPay
-
setSatispay
-
setSepaDebit
-
setShopeepay
-
setSofort
-
setStripeBalance
-
setSwish
-
setTwint
-
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.One of
acss_debit,affirm,afterpay_clearpay,alipay,alma,amazon_pay,au_becs_debit,bacs_debit,bancontact,billie,blik,boleto,card,card_present,cashapp,crypto,custom,customer_balance,eps,fpx,giropay,gopay,grabpay,id_bank_transfer,ideal,interac_present,kakao_pay,klarna,konbini,kr_card,link,mb_way,mobilepay,multibanco,naver_pay,nz_bank_account,oxxo,p24,pay_by_bank,payco,paynow,paypal,paypay,payto,pix,promptpay,qris,rechnung,revolut_pay,samsung_pay,satispay,sepa_debit,shopeepay,sofort,stripe_balance,swish,twint,us_bank_account,wechat_pay, orzip. -
setUsBankAccount
-
setWechatPay
-
setZip
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadatain interfaceMetadataStore<PaymentMethod>
-