|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
static final java.lang.String CLASS_VERSION
Method Detail |
---|
CreditCardStatus authorize(CreditCardInfo pCreditCardInfo)
pCreditCardInfo
- the CreditCardInfo reference which contains all the authorization data
CreditCardStatus debit(CreditCardInfo pCreditCardInfo, CreditCardStatus pStatus)
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().
CreditCardStatus credit(CreditCardInfo pCreditCardInfo, CreditCardStatus pStatus)
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().
CreditCardStatus credit(CreditCardInfo pCreditCardInfo)
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 |