|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.commerce.payment.DummyCreditCardProcessor
public class DummyCreditCardProcessor
This class is a dummy credit card processor. It purpose is to be a placeholder for a real credit card processor. The implementations of all the methods in this class construct a new CreditCardStatus object with dummy success data and return it to the caller.
CreditCardProcessor
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
DummyCreditCardProcessor()
|
Method Summary | |
---|---|
CreditCardStatus |
authorize(CreditCardInfo pCreditCardInfo)
Authorize the amount on the credit card |
CreditCardStatus |
credit(CreditCardInfo pCreditCardInfo)
Credit the amount on the credit card with 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 |
CreditCardStatus |
decreaseAuthorization(CreditCardInfo pCreditCardInfo,
PaymentStatus pAuthStatus)
Decreases the authorized amount for the credit card. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public DummyCreditCardProcessor()
Method Detail |
---|
public CreditCardStatus authorize(CreditCardInfo pCreditCardInfo)
authorize
in interface CreditCardProcessor
pCreditCardInfo
- the CreditCardInfo reference which contains all the authorization data
public CreditCardStatus debit(CreditCardInfo pCreditCardInfo, CreditCardStatus pStatus)
debit
in interface CreditCardProcessor
pCreditCardInfo
- the CreditCardInfo reference which contains all the debit datapStatus
- the CreditCardStatus object which contains information about the transaction. This
should be the object which was returned from authorize().
public CreditCardStatus credit(CreditCardInfo pCreditCardInfo, CreditCardStatus pStatus)
credit
in interface CreditCardProcessor
pCreditCardInfo
- the CreditCardInfo reference which contains all the credit datapStatus
- the CreditCardStatus object which contains information about the transaction. This
should be the object which was returned from debit().
public CreditCardStatus credit(CreditCardInfo pCreditCardInfo)
credit
in interface CreditCardProcessor
pCreditCardInfo
- the CreditCardInfo reference which contains all the credit data
public CreditCardStatus decreaseAuthorization(CreditCardInfo pCreditCardInfo, PaymentStatus pAuthStatus)
This implementation does nothing but return a successful CreditCardStatus object.
Extend this method to do any credit card specific processing.
decreaseAuthorization
in interface atg.payment.creditcard.DecreaseCreditCardAuthorizationProcessor
pCreditCardInfo
- the CreditCardInfo reference which contains all the credit data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |