pub struct CreateTokenCreditCardSpecs {Show 13 fields
pub address_city: Option<String>,
pub address_country: Option<String>,
pub address_line1: Option<String>,
pub address_line2: Option<String>,
pub address_state: Option<String>,
pub address_zip: Option<String>,
pub currency: Option<Currency>,
pub cvc: Option<String>,
pub exp_month: String,
pub exp_year: String,
pub name: Option<String>,
pub networks: Option<CreateTokenCreditCardSpecsNetworks>,
pub number: String,
}
Expand description
The card this token will represent. If you also pass in a customer, the card must be the ID of a card belonging to the customer. Otherwise, if you do not pass in a customer, this is a dictionary containing a user’s credit card details, with the options described below.
Fields§
§address_city: Option<String>
City / District / Suburb / Town / Village.
address_country: Option<String>
Billing address country, if provided.
address_line1: Option<String>
Address line 1 (Street address / PO Box / Company name).
address_line2: Option<String>
Address line 2 (Apartment / Suite / Unit / Building).
address_state: Option<String>
State / County / Province / Region.
address_zip: Option<String>
ZIP or postal code.
currency: Option<Currency>
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.
cvc: Option<String>
Card security code. Highly recommended to always include this value.
exp_month: String
Two-digit number representing the card’s expiration month.
exp_year: String
Two- or four-digit number representing the card’s expiration year.
name: Option<String>
Cardholder’s full name.
networks: Option<CreateTokenCreditCardSpecsNetworks>
Contains information about card networks used to process the payment.
number: String
The card number, as a string without any separators.
Implementations§
Trait Implementations§
Source§impl Clone for CreateTokenCreditCardSpecs
impl Clone for CreateTokenCreditCardSpecs
Source§fn clone(&self) -> CreateTokenCreditCardSpecs
fn clone(&self) -> CreateTokenCreditCardSpecs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more