com.retek.component.payment.integration.creditcard
Interface SynchronousCreditCardAuthorizer


public interface SynchronousCreditCardAuthorizer

An authorization API to be implemented by an adaptor to a third-party credit card processing system. When authorizing credit cards, the system will look for com/retek/component/payment/integration/creditcard/integration.properties in the classpath, and load the class named in the property creditcard.authorizer.synchronous, which must implement this interface.

This class may be joined in the future by an AsynchronousCreditCardAuthorizer, which will use the same request and response classes.


Method Summary
 CreditCardAuthorizationResponse authorize(CreditCardAuthorizationRequest request)
          Handles the authorization of a single credit card payment.
 

Method Detail

authorize

public CreditCardAuthorizationResponse authorize(CreditCardAuthorizationRequest request)
                                          throws CreditCardProcessingException
Handles the authorization of a single credit card payment.

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 © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25