com.retek.component.payment.integration.creditcard.test
Class MockCreditCardAuthorizer
java.lang.Object
com.retek.component.payment.integration.creditcard.test.MockCreditCardAuthorizer
- All Implemented Interfaces:
- SynchronousCreditCardAuthorizer
- public class MockCreditCardAuthorizer
- extends java.lang.Object
- implements SynchronousCreditCardAuthorizer
An authorizer used in unit tests and QC, which gives different responses based on
the last four digits of the credit card number.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REFERENCE_FIELD_1
public static final java.lang.String REFERENCE_FIELD_1
- See Also:
- Constant Field Values
REFERENCE_FIELD_2
public static final java.lang.String REFERENCE_FIELD_2
- See Also:
- Constant Field Values
REFERENCE_FIELD_3
public static final java.lang.String REFERENCE_FIELD_3
- See Also:
- Constant Field Values
REFERENCE_FIELD_4
public static final java.lang.String REFERENCE_FIELD_4
- See Also:
- Constant Field Values
REFERENCE_FIELD_5
public static final java.lang.String REFERENCE_FIELD_5
- See Also:
- Constant Field Values
REFERENCE_FIELD_6
public static final java.lang.String REFERENCE_FIELD_6
- See Also:
- Constant Field Values
REFERENCE_FIELD_7
public static final java.lang.String REFERENCE_FIELD_7
- See Also:
- Constant Field Values
REFERENCE_FIELD_8
public static final java.lang.String REFERENCE_FIELD_8
- See Also:
- Constant Field Values
REFERENCE_FIELD_9
public static final java.lang.String REFERENCE_FIELD_9
- See Also:
- Constant Field Values
REFERENCE_FIELD_10
public static final java.lang.String REFERENCE_FIELD_10
- See Also:
- Constant Field Values
APPROVED_SUFFIX
public static final java.lang.String APPROVED_SUFFIX
- See Also:
- Constant Field Values
DECLINED_SUFFIX
public static final java.lang.String DECLINED_SUFFIX
- See Also:
- Constant Field Values
FRAUD_SUFFIX
public static final java.lang.String FRAUD_SUFFIX
- See Also:
- Constant Field Values
WAITING_AUTH_TO_DECLINED_SUFFIX
public static final java.lang.String WAITING_AUTH_TO_DECLINED_SUFFIX
- See Also:
- Constant Field Values
WAITING_AUTH_TO_APPROVED_SUFFIX
public static final java.lang.String WAITING_AUTH_TO_APPROVED_SUFFIX
- See Also:
- Constant Field Values
REFERRAL_SUFFIX
public static final java.lang.String REFERRAL_SUFFIX
- See Also:
- Constant Field Values
EMPTY_AVS_SUFFIX
public static final java.lang.String EMPTY_AVS_SUFFIX
- See Also:
- Constant Field Values
UNKNOWN_AVS_SUFFIX
public static final java.lang.String UNKNOWN_AVS_SUFFIX
- See Also:
- Constant Field Values
APPROVED_AUTH_CODE
public static final java.lang.String APPROVED_AUTH_CODE
- See Also:
- Constant Field Values
DECLINED_AUTH_CODE
public static final java.lang.String DECLINED_AUTH_CODE
- See Also:
- Constant Field Values
FRAUD_AUTH_CODE
public static final java.lang.String FRAUD_AUTH_CODE
- See Also:
- Constant Field Values
BATCH_AUTH_CODE
public static final java.lang.String BATCH_AUTH_CODE
- See Also:
- Constant Field Values
REFERRAL_AUTH_CODE
public static final java.lang.String REFERRAL_AUTH_CODE
- See Also:
- Constant Field Values
MATCHED_AVS_CODE
public static final java.lang.String MATCHED_AVS_CODE
- See Also:
- Constant Field Values
NOT_MATCHED_AVS_CODE
public static final java.lang.String NOT_MATCHED_AVS_CODE
- See Also:
- Constant Field Values
EMPTY_AVS_CODE
public static final java.lang.String EMPTY_AVS_CODE
- See Also:
- Constant Field Values
UNKNOWN_AVS_CODE
public static final java.lang.String UNKNOWN_AVS_CODE
- See Also:
- Constant Field Values
MockCreditCardAuthorizer
public MockCreditCardAuthorizer()
authorize
public CreditCardAuthorizationResponse authorize(CreditCardAuthorizationRequest request)
throws CreditCardProcessingException
- Description copied from interface:
SynchronousCreditCardAuthorizer
- Handles the authorization of a single credit card payment.
- Specified by:
authorize
in interface SynchronousCreditCardAuthorizer
- Parameters:
request
- Information about the credit card, the customer, and the amount requested
for authorization.
- Returns:
- A response indicating whether the authorization was approved or declined.
- Throws:
CreditCardProcessingException
- if the system is unable to process the
authorization request.
reset
public static void reset()
Copyright © 2004 Retek Inc. All Rights Reserved.
- Generated at Fri, 10/22/2004 07:28