pub enum CreatePaymentMethodCard {
CardDetailsParams(CreatePaymentMethodCardDetailsParams),
TokenParams(CreatePaymentMethodTokenParams),
}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.
Variants§
CardDetailsParams(CreatePaymentMethodCardDetailsParams)
TokenParams(CreatePaymentMethodTokenParams)
Trait Implementations§
Source§impl Clone for CreatePaymentMethodCard
impl Clone for CreatePaymentMethodCard
Source§fn clone(&self) -> CreatePaymentMethodCard
fn clone(&self) -> CreatePaymentMethodCard
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 Debug for CreatePaymentMethodCard
impl Debug for CreatePaymentMethodCard
Source§impl PartialEq for CreatePaymentMethodCard
impl PartialEq for CreatePaymentMethodCard
Source§impl Serialize for CreatePaymentMethodCard
impl Serialize for CreatePaymentMethodCard
impl Eq for CreatePaymentMethodCard
impl StructuralPartialEq for CreatePaymentMethodCard
Auto Trait Implementations§
impl Freeze for CreatePaymentMethodCard
impl RefUnwindSafe for CreatePaymentMethodCard
impl Send for CreatePaymentMethodCard
impl Sync for CreatePaymentMethodCard
impl Unpin for CreatePaymentMethodCard
impl UnsafeUnpin for CreatePaymentMethodCard
impl UnwindSafe for CreatePaymentMethodCard
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