Class Session.ConsentCollection

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.checkout.Session.ConsentCollection
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Session

public static class Session.ConsentCollection extends StripeObject
  • Constructor Details

    • ConsentCollection

      public ConsentCollection()
  • Method Details

    • getPaymentMethodReuseAgreement

      public Session.ConsentCollection.PaymentMethodReuseAgreement getPaymentMethodReuseAgreement()
      If set to hidden, it will hide legal text related to the reuse of a payment method.
    • getPromotions

      public String getPromotions()
      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.

      One of auto, or none.

    • getTermsOfService

      public String getTermsOfService()
      If set to required, it requires customers to accept the terms of service before being able to pay.

      One of none, or required.

    • setPaymentMethodReuseAgreement

      public void setPaymentMethodReuseAgreement(Session.ConsentCollection.PaymentMethodReuseAgreement paymentMethodReuseAgreement)
      If set to hidden, it will hide legal text related to the reuse of a payment method.
    • setPromotions

      public void setPromotions(String promotions)
      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.

      One of auto, or none.

    • setTermsOfService

      public void setTermsOfService(String termsOfService)
      If set to required, it requires customers to accept the terms of service before being able to pay.

      One of none, or required.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object