pub struct CreatePaymentMethodTokenParams {
pub token: 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§
§token: StringFor 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”}.
Implementations§
Trait Implementations§
Source§impl Clone for CreatePaymentMethodTokenParams
impl Clone for CreatePaymentMethodTokenParams
Source§fn clone(&self) -> CreatePaymentMethodTokenParams
fn clone(&self) -> CreatePaymentMethodTokenParams
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 CreatePaymentMethodTokenParams
impl PartialEq for CreatePaymentMethodTokenParams
Source§fn eq(&self, other: &CreatePaymentMethodTokenParams) -> bool
fn eq(&self, other: &CreatePaymentMethodTokenParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CreatePaymentMethodTokenParams
impl StructuralPartialEq for CreatePaymentMethodTokenParams
Auto Trait Implementations§
impl Freeze for CreatePaymentMethodTokenParams
impl RefUnwindSafe for CreatePaymentMethodTokenParams
impl Send for CreatePaymentMethodTokenParams
impl Sync for CreatePaymentMethodTokenParams
impl Unpin for CreatePaymentMethodTokenParams
impl UnsafeUnpin for CreatePaymentMethodTokenParams
impl UnwindSafe for CreatePaymentMethodTokenParams
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