pub struct CreatePaymentMethodCardDetailsParams {
pub cvc: Option<String>,
pub exp_month: i64,
pub exp_year: i64,
pub networks: Option<CreatePaymentMethodCardDetailsParamsNetworks>,
pub number: String,
}Expand description
If this is a card PaymentMethod, 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 format card: {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.
Fields§
§cvc: Option<String>The card’s CVC. It is highly recommended to always include this value.
exp_month: i64Two-digit number representing the card’s expiration month.
exp_year: i64Four-digit number representing the card’s expiration year.
networks: Option<CreatePaymentMethodCardDetailsParamsNetworks>Contains information about card networks used to process the payment.
number: StringThe card number, as a string without any separators.
Implementations§
Trait Implementations§
Source§impl Clone for CreatePaymentMethodCardDetailsParams
impl Clone for CreatePaymentMethodCardDetailsParams
Source§fn clone(&self) -> CreatePaymentMethodCardDetailsParams
fn clone(&self) -> CreatePaymentMethodCardDetailsParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for CreatePaymentMethodCardDetailsParams
impl PartialEq for CreatePaymentMethodCardDetailsParams
Source§fn eq(&self, other: &CreatePaymentMethodCardDetailsParams) -> bool
fn eq(&self, other: &CreatePaymentMethodCardDetailsParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CreatePaymentMethodCardDetailsParams
impl StructuralPartialEq for CreatePaymentMethodCardDetailsParams
Auto Trait Implementations§
impl Freeze for CreatePaymentMethodCardDetailsParams
impl RefUnwindSafe for CreatePaymentMethodCardDetailsParams
impl Send for CreatePaymentMethodCardDetailsParams
impl Sync for CreatePaymentMethodCardDetailsParams
impl Unpin for CreatePaymentMethodCardDetailsParams
impl UnsafeUnpin for CreatePaymentMethodCardDetailsParams
impl UnwindSafe for CreatePaymentMethodCardDetailsParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more