public class AuthorizationMockCommand extends GenericMockCommand implements AuthorizationCommand
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.| Modifier and Type | Field and Description |
|---|---|
static long |
REVIEW_AMOUNT |
| Constructor and Description |
|---|
AuthorizationMockCommand() |
| Modifier and Type | Method and Description |
|---|---|
AuthorizationResult |
perform(AuthorizationRequest request)
perform command for a given request R
|
genericPerformpublic static final long REVIEW_AMOUNT
public AuthorizationResult perform(AuthorizationRequest request)
Commandperform in interface Command<AuthorizationRequest,AuthorizationResult>request - request to performCopyright © 2018 SAP SE. All Rights Reserved.