public interface CreditCardProcessor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Modifier and Type | Method and Description |
---|---|
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
|
static final java.lang.String CLASS_VERSION
CreditCardStatus authorize(CreditCardInfo pCreditCardInfo)
pCreditCardInfo
- the CreditCardInfo reference which contains all the authorization dataCreditCardStatus 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