#[non_exhaustive]pub enum CreateCheckoutSessionPaymentMethodCollection {
Always,
IfRequired,
Unknown(String),
}Expand description
Specify whether Checkout should collect a payment method.
When set to if_required, Checkout will not collect a payment method when the total due for the session is 0.
This may occur if the Checkout Session includes a free trial or a discount.
Can only be set in subscription mode. Defaults to always.
If you’d like information on how to collect a payment method outside of Checkout, read the guide on configuring subscriptions with a free trial.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Always
IfRequired
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionPaymentMethodCollection
impl Clone for CreateCheckoutSessionPaymentMethodCollection
Source§fn clone(&self) -> CreateCheckoutSessionPaymentMethodCollection
fn clone(&self) -> CreateCheckoutSessionPaymentMethodCollection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateCheckoutSessionPaymentMethodCollection
Available on non-crate feature redact-generated-debug only.
impl Debug for CreateCheckoutSessionPaymentMethodCollection
Available on non-crate feature
redact-generated-debug only.impl Eq for CreateCheckoutSessionPaymentMethodCollection
impl StructuralPartialEq for CreateCheckoutSessionPaymentMethodCollection
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionPaymentMethodCollection
impl RefUnwindSafe for CreateCheckoutSessionPaymentMethodCollection
impl Send for CreateCheckoutSessionPaymentMethodCollection
impl Sync for CreateCheckoutSessionPaymentMethodCollection
impl Unpin for CreateCheckoutSessionPaymentMethodCollection
impl UnsafeUnpin for CreateCheckoutSessionPaymentMethodCollection
impl UnwindSafe for CreateCheckoutSessionPaymentMethodCollection
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