Interface PaymentTTLValidationService
- All Known Implementing Classes:
DefaultPaymentTTLValidationService
public interface PaymentTTLValidationService
Validates the payment's time-to-live, and archives the payment if needed.
- Author:
- mariestandeven
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validatePaymentTTL
(Payment payment, String lockToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Validates the payment's time-to-live.
-
Method Details
-
validatePaymentTTL
void validatePaymentTTL(Payment payment, @Nullable String lockToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Validates the payment's time-to-live.- Parameters:
payment
- the payment to validatelockToken
- Token granted to resource that owns the payment lock.context
- Context information related to multitenancy.- Throws:
PaymentTTLException
- if the payment has exceeded its time-to-live and is expired
-