Class ExternalPaymentTransactionProperties.CartPaymentFinalizationProperties
java.lang.Object
com.broadleafcommerce.cartoperation.service.payment.autoconfigure.ExternalPaymentTransactionProperties.CartPaymentFinalizationProperties
- Enclosing class:
- ExternalPaymentTransactionProperties
public static class ExternalPaymentTransactionProperties.CartPaymentFinalizationProperties
extends Object
Properties related to managing a cart in the
DefaultCartStatuses.AWAITING_PAYMENT_FINALIZATION status-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe amount of time before the cart's payment finalization lock expires.booleanIftrue, then the cart's payments will be archived when the cart is unlocked viaCartOperationService.releasePaymentFinalizationLock(Cart, ContextInfo).booleanIftrue, then the cart will enter theDefaultCartStatuses.AWAITING_PAYMENT_FINALIZATIONstatus when any non-3DS & non-HPP payment failure is encountered.voidsetArchivePaymentsWhenCartIsUnlocked(boolean archivePaymentsWhenCartIsUnlocked) Iftrue, then the cart's payments will be archived when the cart is unlocked viaCartOperationService.releasePaymentFinalizationLock(Cart, ContextInfo).voidsetCartLockTtl(Duration cartLockTtl) The amount of time before the cart's payment finalization lock expires.voidsetEnterAwaitingPaymentFinalizationOnPaymentFailure(boolean enterAwaitingPaymentFinalizationOnPaymentFailure) Iftrue, then the cart will enter theDefaultCartStatuses.AWAITING_PAYMENT_FINALIZATIONstatus when any non-3DS & non-HPP payment failure is encountered.
-
Constructor Details
-
CartPaymentFinalizationProperties
public CartPaymentFinalizationProperties()
-
-
Method Details
-
isEnterAwaitingPaymentFinalizationOnPaymentFailure
public boolean isEnterAwaitingPaymentFinalizationOnPaymentFailure()Iftrue, then the cart will enter theDefaultCartStatuses.AWAITING_PAYMENT_FINALIZATIONstatus when any non-3DS & non-HPP payment failure is encountered. Otherwise, this status is only entered if the cart's payments have failures requiring 3DS verification or a HPP interaction, & if any other payment failure is encountered, then the cart status is returned toDefaultCartStatuses.IN_PROCESS -
getCartLockTtl
The amount of time before the cart's payment finalization lock expires. Once this duration is exceeded, the cart status will be reset toDefaultCartStatuses.IN_PROCESS& the cart's payments will be archived or have their customer mutability block removed. Note: It's very important that the transaction reversal candidate time-to-live (broadleaf.paymenttransaction.reversal.reversal-candidate-ttl) used within PaymentTransactionServices. -
isArchivePaymentsWhenCartIsUnlocked
public boolean isArchivePaymentsWhenCartIsUnlocked()Iftrue, then the cart's payments will be archived when the cart is unlocked viaCartOperationService.releasePaymentFinalizationLock(Cart, ContextInfo). Iffalse, then theDefaultPaymentManagementAccessRestrictions.CUSTOMER_MUTABILITY_BLOCKED_FOR_PAYMENT_FINALIZATIONaccess restriction is removed from the cart's relevant payments. This property defaults to true. -
setEnterAwaitingPaymentFinalizationOnPaymentFailure
public void setEnterAwaitingPaymentFinalizationOnPaymentFailure(boolean enterAwaitingPaymentFinalizationOnPaymentFailure) Iftrue, then the cart will enter theDefaultCartStatuses.AWAITING_PAYMENT_FINALIZATIONstatus when any non-3DS & non-HPP payment failure is encountered. Otherwise, this status is only entered if the cart's payments have failures requiring 3DS verification or a HPP interaction, & if any other payment failure is encountered, then the cart status is returned toDefaultCartStatuses.IN_PROCESS -
setCartLockTtl
The amount of time before the cart's payment finalization lock expires. Once this duration is exceeded, the cart status will be reset toDefaultCartStatuses.IN_PROCESS& the cart's payments will be archived or have their customer mutability block removed. Note: It's very important that the transaction reversal candidate time-to-live (broadleaf.paymenttransaction.reversal.reversal-candidate-ttl) used within PaymentTransactionServices. -
setArchivePaymentsWhenCartIsUnlocked
public void setArchivePaymentsWhenCartIsUnlocked(boolean archivePaymentsWhenCartIsUnlocked) Iftrue, then the cart's payments will be archived when the cart is unlocked viaCartOperationService.releasePaymentFinalizationLock(Cart, ContextInfo). Iffalse, then theDefaultPaymentManagementAccessRestrictions.CUSTOMER_MUTABILITY_BLOCKED_FOR_PAYMENT_FINALIZATIONaccess restriction is removed from the cart's relevant payments. This property defaults to true.
-