Package com.stripe.param.checkout
Class SessionCreateParams.ConsentCollection.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.ConsentCollection.Builder
- Enclosing class:
- SessionCreateParams.ConsentCollection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setPaymentMethodReuseAgreement
(SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement paymentMethodReuseAgreement) Determines the display of payment method reuse agreement text in the UI.If set toauto
, enables the collection of customer consent for promotional communications.If set torequired
, it requires customers to check a terms of service checkbox before being able to pay.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionCreateParams.ConsentCollection.extraParams
for the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSessionCreateParams.ConsentCollection.extraParams
for the field documentation. -
setPaymentMethodReuseAgreement
public SessionCreateParams.ConsentCollection.Builder setPaymentMethodReuseAgreement(SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement paymentMethodReuseAgreement) Determines the display of payment method reuse agreement text in the UI. If set tohidden
, it will hide legal text related to the reuse of a payment method. -
setPromotions
public SessionCreateParams.ConsentCollection.Builder setPromotions(SessionCreateParams.ConsentCollection.Promotions promotions) If set toauto
, 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. -
setTermsOfService
public SessionCreateParams.ConsentCollection.Builder setTermsOfService(SessionCreateParams.ConsentCollection.TermsOfService termsOfService) If set torequired
, 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.
-