Package de.hybris.platform.payment.impl
Class DefaultTransactionInfoService
java.lang.Object
de.hybris.platform.payment.impl.DefaultTransactionInfoService
- All Implemented Interfaces:
TransactionInfoService
Checks if a payment authorization transaction is 'successful' respectively 'valid'
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheck(PaymentTransactionEntryModel entry, TransactionStatus status) booleanChecks if the payment authorization transaction is 'successful'booleanChecks if the payment authorization transaction is 'valid'
-
Constructor Details
-
DefaultTransactionInfoService
public DefaultTransactionInfoService()
-
-
Method Details
-
isSuccessful
Checks if the payment authorization transaction is 'successful'- Specified by:
isSuccessfulin interfaceTransactionInfoService- Parameters:
entry-PaymentTransactionEntryModel- Returns:
- true, if @link
PaymentTransactionEntryModel.TRANSACTIONSTATUSequalsTransactionStatus.ACCEPTED
-
isValid
Checks if the payment authorization transaction is 'valid'- Specified by:
isValidin interfaceTransactionInfoService- Parameters:
entry-PaymentTransactionEntryModel- Returns:
- true, if
PaymentTransactionEntryModel.TIMEis not older than 24hrs and is of tpyePaymentTransactionType.AUTHORIZATIONOR if it is not of typePaymentTransactionType.AUTHORIZATIONat all
-
check
-