java.lang.Object
com.aoapps.payments.TransactionResult
- Direct Known Subclasses:
AuthorizationResult
,CaptureResult
,CreditResult
,VoidResult
Encapsulates the results of any type of transaction with the merchant services provider.
- Author:
- AO Industries, Inc.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The set of supported communication results.static enum
The set of supported error codes. -
Constructor Summary
ModifierConstructorDescriptionprotected
TransactionResult
(String providerId, TransactionResult.CommunicationResult communicationResult, String providerErrorCode, TransactionResult.ErrorCode errorCode, String providerErrorMessage, String providerUniqueId) Creates a newTransactionResult
. -
Method Summary
Modifier and TypeMethodDescriptionGets the communication result.Gets the provider-neutral error code.Gets the provider-specific error code.Gets the provider-specific error message.Gets the id of the provider that processed this transaction.Gets the provider-specific unique identifier.
-
Constructor Details
-
TransactionResult
protected TransactionResult(String providerId, TransactionResult.CommunicationResult communicationResult, String providerErrorCode, TransactionResult.ErrorCode errorCode, String providerErrorMessage, String providerUniqueId) Creates a newTransactionResult
.
-
-
Method Details
-
getProviderId
Gets the id of the provider that processed this transaction. -
getCommunicationResult
Gets the communication result. This should be the first thing checked after any attempt to access theMerchantServicesProvider
. -
getProviderErrorCode
Gets the provider-specific error code.- See Also:
-
getErrorCode
Gets the provider-neutral error code. -
getProviderErrorMessage
Gets the provider-specific error message. -
getProviderUniqueId
Gets the provider-specific unique identifier.
-