[−][src]Struct stripe::CheckoutSession
The resource representing a Stripe "Session".
Fields
id: CheckoutSessionId
Unique identifier for the object.
Used to pass to redirectToCheckout
in Stripe.js.
billing_address_collection: Option<String>
The value (auto
or required
) for whether Checkout collected the customer's billing address.
cancel_url: String
The URL the customer will be directed to if they decide to cancel payment and return to your website.
client_reference_id: Option<String>
A unique string to reference the Checkout Session.
This can be a customer ID, a cart ID, or similar, and can be used to reconcile the session with your internal systems.
customer: Option<Expandable<Customer>>
The ID of the customer for this session.
A new customer will be created unless an existing customer was provided in when the session was created.
customer_email: Option<String>
If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file.
To access information about the customer once a session is complete, use the customer
field.
display_items: Vec<CheckoutSessionDisplayItem>
The line items, plans, or SKUs purchased by the customer.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
locale: Option<CheckoutSessionLocale>
The IETF language tag of the locale Checkout is displayed in.
If blank or auto
, the browser's locale is used.
payment_intent: Option<Expandable<PaymentIntent>>
The ID of the PaymentIntent created if SKUs or line items were provided.
payment_method_types: Vec<String>
A list of the types of payment methods (e.g.
card) this Checkout Session is allowed to accept.
subscription: Option<Expandable<Subscription>>
The ID of the subscription created if one or more plans were provided.
success_url: String
The URL the customer will be directed to after the payment or subscription creation is successful.
Trait Implementations
impl Object for CheckoutSession
[src]
type Id = CheckoutSessionId
The canonical id type for this object.
fn id(&self) -> Self::Id
[src]
fn object(&self) -> &'static str
[src]
impl Clone for CheckoutSession
[src]
fn clone(&self) -> CheckoutSession
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CheckoutSession
[src]
impl Serialize for CheckoutSession
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for CheckoutSession
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for CheckoutSession
impl Sync for CheckoutSession
impl Send for CheckoutSession
impl UnwindSafe for CheckoutSession
impl RefUnwindSafe for CheckoutSession
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self