Class AuthorizationMockCommand
java.lang.Object
de.hybris.platform.payment.commands.impl.GenericMockCommand
de.hybris.platform.payment.commands.impl.AuthorizationMockCommand
- All Implemented Interfaces:
AuthorizationCommand,Command<AuthorizationRequest,AuthorizationResult>
A mockup Implementation for
AuthorizationCommand. Set a wrong card expiration date if you need your
transaction rejected. Transaction will have set REVIEW state if amount is greater then
REVIEW_AMOUNT . In other cases it will be accepted.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperform(AuthorizationRequest request) perform command for a given request RMethods inherited from class de.hybris.platform.payment.commands.impl.GenericMockCommand
genericPerform
-
Field Details
-
REVIEW_AMOUNT
public static final long REVIEW_AMOUNT- See Also:
-
-
Constructor Details
-
AuthorizationMockCommand
public AuthorizationMockCommand()
-
-
Method Details
-
perform
Description copied from interface:Commandperform command for a given request R- Specified by:
performin interfaceCommand<AuthorizationRequest,AuthorizationResult> - Parameters:
request- request to perform- Returns:
- outcome O of command
-