Class CheckoutConfigurationProperties.FlowSessionConfiguration
- Enclosing class:
- CheckoutConfigurationProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe maximum number of authorization retry attempts for a Flow Payment Session, excluding the initial authorization.The list of payment method options to hide on the payment form in Flow.The list of payment method options to show on the payment form in Flow.What the duration of the Flow payment session should be before it expires.booleanWhether or not to enable the stored cards consent collection in Flow.voidsetCustomerRetryMaxAttempts(int customerRetryMaxAttempts) The maximum number of authorization retry attempts for a Flow Payment Session, excluding the initial authorization.voidsetDisabledPaymentMethods(List<String> disabledPaymentMethods) The list of payment method options to hide on the payment form in Flow.voidsetEnabledPaymentMethods(List<String> enabledPaymentMethods) The list of payment method options to show on the payment form in Flow.voidsetEnableStoredCards(boolean enableStoredCards) Whether or not to enable the stored cards consent collection in Flow.voidsetExpirationDuration(Duration expirationDuration) What the duration of the Flow payment session should be before it expires.
-
Constructor Details
-
FlowSessionConfiguration
public FlowSessionConfiguration()
-
-
Method Details
-
setExpirationDuration
What the duration of the Flow payment session should be before it expires. -
setCustomerRetryMaxAttempts
public void setCustomerRetryMaxAttempts(int customerRetryMaxAttempts) The maximum number of authorization retry attempts for a Flow Payment Session, excluding the initial authorization. If on submission, the authorization of the payment method fails, the customer will be given additional attempts to add a payment via Flow. The Flow payment form will display error messages to the customer, with suggested next actions to improve retry success.The valid range for this property is [0-5].
-
setEnableStoredCards
public void setEnableStoredCards(boolean enableStoredCards) Whether or not to enable the stored cards consent collection in Flow.If true, sets the `payment_method_configuration.card.store_payment_details` property to `collect_consent`. This is set to false by default and the "Remember Me" functionality is used by default. If enabled and consent was collected, the payment source will be included in the payment response and can be stored for future use.
-
setEnabledPaymentMethods
The list of payment method options to show on the payment form in Flow.If the same payment method is listed both here and in
disabledPaymentMethods, this enabled list takes precedence and will override to display the payment. -
setDisabledPaymentMethods
The list of payment method options to hide on the payment form in Flow.If the same payment method is listed both here and in
enabledPaymentMethods, the enabled list takes precedence and will override to display the payment. -
getExpirationDuration
What the duration of the Flow payment session should be before it expires. -
getCustomerRetryMaxAttempts
public int getCustomerRetryMaxAttempts()The maximum number of authorization retry attempts for a Flow Payment Session, excluding the initial authorization. If on submission, the authorization of the payment method fails, the customer will be given additional attempts to add a payment via Flow. The Flow payment form will display error messages to the customer, with suggested next actions to improve retry success.The valid range for this property is [0-5].
-
isEnableStoredCards
public boolean isEnableStoredCards()Whether or not to enable the stored cards consent collection in Flow.If true, sets the `payment_method_configuration.card.store_payment_details` property to `collect_consent`. This is set to false by default and the "Remember Me" functionality is used by default. If enabled and consent was collected, the payment source will be included in the payment response and can be stored for future use.
-
getEnabledPaymentMethods
The list of payment method options to show on the payment form in Flow.If the same payment method is listed both here and in
disabledPaymentMethods, this enabled list takes precedence and will override to display the payment. -
getDisabledPaymentMethods
The list of payment method options to hide on the payment form in Flow.If the same payment method is listed both here and in
enabledPaymentMethods, the enabled list takes precedence and will override to display the payment.
-