Package com.stripe.param
Class TokenCreateParams.Card.Builder
java.lang.Object
com.stripe.param.TokenCreateParams.Card.Builder
- Enclosing class:
- TokenCreateParams.Card
-
Constructor Summary
-
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.setAddressCity
(String addressCity) City / District / Suburb / Town / Village.setAddressCountry
(String addressCountry) Billing address country, if provided.setAddressLine1
(String addressLine1) Address line 1 (Street address / PO Box / Company name).setAddressLine2
(String addressLine2) Address line 2 (Apartment / Suite / Unit / Building).setAddressState
(String addressState) State / County / Province / Region.setAddressZip
(String addressZip) ZIP or postal code.setCurrency
(String currency) Required in order to add the card to an account; in all other cases, this parameter is not used.Card security code.setExpMonth
(String expMonth) Required. Two-digit number representing the card's expiration month.setExpYear
(String expYear) Required. Two- or four-digit number representing the card's expiration year.Cardholder's full name.setNetworks
(TokenCreateParams.Card.Networks networks) Contains information about card networks used to process the payment.Required. The card number, as a string without any separators.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAddressCity
City / District / Suburb / Town / Village. -
setAddressCountry
Billing address country, if provided. -
setAddressLine1
Address line 1 (Street address / PO Box / Company name). -
setAddressLine2
Address line 2 (Apartment / Suite / Unit / Building). -
setAddressState
State / County / Province / Region. -
setAddressZip
ZIP or postal code. -
setCurrency
Required in order to add the card to an account; in all other cases, this parameter is not used. When added to an account, the card (which must be a debit card) can be used as a transfer destination for funds in this currency. -
setCvc
Card security code. Highly recommended to always include this value. -
setExpMonth
Required. Two-digit number representing the card's expiration month. -
setExpYear
Required. Two- or four-digit number representing the card's expiration year. -
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. SeeTokenCreateParams.Card.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. SeeTokenCreateParams.Card.extraParams
for the field documentation. -
setName
Cardholder's full name. -
setNetworks
Contains information about card networks used to process the payment. -
setNumber
Required. The card number, as a string without any separators.
-