CheckoutSessionConsentCollection constructor

const CheckoutSessionConsentCollection({
  1. CheckoutSessionConsentCollectionPaymentMethodReuseAgreement? paymentMethodReuseAgreement,
  2. CheckoutSessionConsentCollectionPromotions? promotions,
  3. CheckoutSessionConsentCollectionTermsOfService? termsOfService,
})

When set, provides configuration for the Checkout Session to gather active consent from customers.

Implementation

const CheckoutSessionConsentCollection({
  this.paymentMethodReuseAgreement,
  this.promotions,
  this.termsOfService,
});