atg.payment.creditcard
Interface CreditCardProcessor

All Known Implementing Classes:
CyberCashConnection, CyberSourceCreditCard, DummyCreditCardProcessor

public interface CreditCardProcessor

This class defines an interface for credit card processing over different CreditCard payment systems. Any class which implements this interface needs to provide an implementation for all the methods, authorize, debit, and credit.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Method Summary
 CreditCardStatus authorize(CreditCardInfo pCreditCardInfo)
          Authorize the amount on the credit card
 CreditCardStatus credit(CreditCardInfo pCreditCardInfo)
          Credit the amount on the credit card as a new order
 CreditCardStatus credit(CreditCardInfo pCreditCardInfo, CreditCardStatus pStatus)
          Credit the amount on the credit card after debiting.
 CreditCardStatus debit(CreditCardInfo pCreditCardInfo, CreditCardStatus pStatus)
          Debit the amount on the credit card after authorization
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values
Method Detail

authorize

CreditCardStatus authorize(CreditCardInfo pCreditCardInfo)
Authorize the amount on the credit card

Parameters:
pCreditCardInfo - the CreditCardInfo reference which contains all the authorization data
Returns:
a CreditCardStatus object detailing the results of the authorization

debit

CreditCardStatus debit(CreditCardInfo pCreditCardInfo,
                       CreditCardStatus pStatus)
Debit the amount on the credit card after authorization

Parameters:
pCreditCardInfo - the CreditCardInfo reference which contains all the debit data
pStatus - the CreditCardStatus object which contains information about the transaction. This should be the object which was returned from authorize().
Returns:
a CreditCardStatus object detailing the results of the debit

credit

CreditCardStatus credit(CreditCardInfo pCreditCardInfo,
                        CreditCardStatus pStatus)
Credit the amount on the credit card after debiting.

Parameters:
pCreditCardInfo - the CreditCardInfo reference which contains all the credit data
pStatus - the CreditCardStatus object which contains information about the transaction. This should be the object which was returned from debit().
Returns:
a CreditCardStatus object detailing the results of the credit

credit

CreditCardStatus credit(CreditCardInfo pCreditCardInfo)
Credit the amount on the credit card as a new order

Parameters:
pCreditCardInfo - the CreditCardInfo reference which contains all the credit data
Returns:
a CreditCardStatus object detailing the results of the credit