pub struct CreateCheckoutSessionConsentCollection {
pub payment_method_reuse_agreement: Option<CreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement>,
pub promotions: Option<CreateCheckoutSessionConsentCollectionPromotions>,
pub terms_of_service: Option<CreateCheckoutSessionConsentCollectionTermsOfService>,
}Expand description
Configure fields for the Checkout Session to gather active consent from customers.
Fields§
§payment_method_reuse_agreement: Option<CreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement>Determines the display of payment method reuse agreement text in the UI.
If set to hidden, it will hide legal text related to the reuse of a payment method.
promotions: Option<CreateCheckoutSessionConsentCollectionPromotions>If set to auto, enables the collection of customer consent for promotional communications.
The Checkout.
Session will determine whether to display an option to opt into promotional communication
from the merchant depending on the customer’s locale.
Only available to US merchants and US customers.
terms_of_service: Option<CreateCheckoutSessionConsentCollectionTermsOfService>If set to required, it requires customers to check a terms of service checkbox before being able to pay.
There must be a valid terms of service URL set in your Dashboard settings.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionConsentCollection
impl Clone for CreateCheckoutSessionConsentCollection
Source§fn clone(&self) -> CreateCheckoutSessionConsentCollection
fn clone(&self) -> CreateCheckoutSessionConsentCollection
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 moreimpl Eq for CreateCheckoutSessionConsentCollection
impl StructuralPartialEq for CreateCheckoutSessionConsentCollection
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionConsentCollection
impl RefUnwindSafe for CreateCheckoutSessionConsentCollection
impl Send for CreateCheckoutSessionConsentCollection
impl Sync for CreateCheckoutSessionConsentCollection
impl Unpin for CreateCheckoutSessionConsentCollection
impl UnsafeUnpin for CreateCheckoutSessionConsentCollection
impl UnwindSafe for CreateCheckoutSessionConsentCollection
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