com.retek.component.payment.integration.creditcard.test
Class TestFileCreditCardAuthorizer

java.lang.Object
  extended bycom.retek.component.payment.integration.creditcard.test.TestFileCreditCardAuthorizer
All Implemented Interfaces:
SynchronousCreditCardAuthorizer

public class TestFileCreditCardAuthorizer
extends java.lang.Object
implements SynchronousCreditCardAuthorizer

Authorizes credit cards based on input files, for testing/prototyping/demonstration purposes. This authorizer looks for the file /tmp/<creditcardnumber>.dat with the following format:

...or with this format: If the file is not found, the card gets authorized. High-tech, no?


Constructor Summary
TestFileCreditCardAuthorizer()
           
 
Method Summary
 CreditCardAuthorizationResponse authorize(CreditCardAuthorizationRequest request)
          Handles the authorization of a single credit card payment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestFileCreditCardAuthorizer

public TestFileCreditCardAuthorizer()
Method Detail

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.


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28