|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.beasys.commerce.foundation.SessionImpl | +--com.beasys.commerce.ebusiness.payment.CreditCardServiceImpl
This stateless session is the gateway/wrapper to CyberCash services.
CreditCardService
,
CreditCardServiceHome
Field Summary | |
protected static java.lang.String |
CONFIG_FILE_NAME
|
protected static java.lang.String |
CONFIG_FILE_PROPERTY_NAME
|
protected static java.lang.String |
configFileName
|
protected static java.text.DecimalFormat |
CURRENCY_FORMAT
|
protected CyberCash |
cyberCash
|
protected static java.text.SimpleDateFormat |
DATE_FORMAT
|
protected static java.lang.String |
DECRYPTOR_HOME
|
protected static boolean |
DEFER_AUTHORIZATION
|
protected static java.lang.String |
DEFER_AUTHORIZATION_PROPERTY
|
protected static java.lang.String |
DEFER_AUTHORIZATION_PROPERTY_NAME
|
protected static java.lang.String |
ENCRYPTION_PROPERTY
|
protected static java.lang.String |
ENCRYPTION_PROPERTY_NAME
|
protected static boolean |
IS_INITIALIZED
|
protected static java.lang.String |
PAYMENT_MODEL
|
protected static java.lang.String |
PAYMENT_MODEL_PROPERTY_NAME
|
protected static java.lang.String |
PAYMENT_TRANSACTION_HOME
|
Fields inherited from class com.beasys.commerce.foundation.SessionImpl |
_ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty |
Fields inherited from interface com.beasys.commerce.ebusiness.payment.TransactionConstants |
ACTION_CODE, ACTION_CODE_CALL, AMOUNT, AUTHORIZED, AUTO_MARK_AUTO_SETTLE, AUTO_MARK_AUTO_SETTLE_AVS, AUTO_MARK_MANUAL_SETTLE, AUTO_MARK_MANUAL_SETTLE_AVS, BATCH_ACCEPTED, BATCH_COMMIT, BATCH_ID, BATCH_PREP, BATCH_QUERY, BATCH_RETRY, BATCH_STATUS, BATCH_UNROLL, CARD_QUERY, CHECK, CREDIT_CARD_ADDRESS, CREDIT_CARD_ADDRESS_CITY, CREDIT_CARD_ADDRESS_STATE, CREDIT_CARD_ADDRESS_STREET, CREDIT_CARD_ADDRESS_ZIP, CREDIT_CARD_EXPIRATION_DATE, CREDIT_CARD_NUMBER, CREDITCARD, CURRENCY_US, CYBERCASH_CONFIG_FILE, FAILEDSETTLE, FDC_BANK_PROCESSOR_ERROR, FDC_CALL,
|
Constructor Summary | |
CreditCardServiceImpl()
|
Method Summary | |
TransactionResponse |
authorize(CreditCard card,
Price amount,
boolean useAvs)
Reserve credit on the supplied card. |
TransactionResponse |
authorizeAndCapture(CreditCard card,
Price amount,
boolean useAvs)
This method does the authorization and settle at one go. |
TransactionResponse |
batchQuery(java.lang.String transactionId)
The batch-query message is used to update and reconcile the status of a transaction committed in a given batch. |
TransactionResponse |
capture(java.lang.String transactionId,
Price amount)
Marks a portion of a payment transaction for settlement such that it will be processed in the next batch. |
void |
ejbActivate()
ejbActivate method. |
void |
ejbCreate()
ejbCreate method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate()
ejbPostCreate method. |
void |
ejbRemove()
ejbRemove method. |
void |
initialize()
Initializes CyberCash based upon given configuration filename. |
TransactionResponse |
queryTransactions(java.lang.String transactionId,
java.lang.String transactionType,
java.lang.String transactionStatus,
java.lang.String transactionOrigin,
java.lang.String cardType,
java.sql.Date startTime,
java.sql.Date endTime,
Price lowAmount,
Price highAmount,
java.lang.Integer maxNumberOfTransactions)
Query the Payment server for transactions which match the supplied parameters. |
TransactionResponse |
reauthorize(java.lang.String paymentTransactionId,
boolean useAvs)
Reauthorizes a given payment transaction for the amount associated with the transaction. |
TransactionResponse |
reauthorizeAndCapture(java.lang.String paymentTransactionId,
boolean useAvs)
Reauthorizes and captures a given payment transaction for the amount associated with the transaction. |
void |
setSessionContext(com.beasys.commerce.ebusiness.payment.SessionContext ctx)
|
TransactionResponse |
settle(java.lang.String transactionId,
Price amount)
Finalize a transaction by transferring a portion of the funds previously captured from the customer's account to the merchant's account. |
TransactionResponse |
voidTransaction(java.lang.String transactionId)
Abort a transaction which was previously submitted. |
Field Detail |
protected static java.lang.String configFileName
protected transient CyberCash cyberCash
protected static java.lang.String PAYMENT_TRANSACTION_HOME
protected static java.lang.String DECRYPTOR_HOME
protected static java.lang.String PAYMENT_MODEL
protected static java.lang.String PAYMENT_MODEL_PROPERTY_NAME
protected static java.lang.String CONFIG_FILE_NAME
protected static java.lang.String CONFIG_FILE_PROPERTY_NAME
protected static java.lang.String ENCRYPTION_PROPERTY
protected static java.lang.String ENCRYPTION_PROPERTY_NAME
protected static java.lang.String DEFER_AUTHORIZATION_PROPERTY
protected static boolean DEFER_AUTHORIZATION
protected static java.lang.String DEFER_AUTHORIZATION_PROPERTY_NAME
protected static boolean IS_INITIALIZED
protected static final java.text.DecimalFormat CURRENCY_FORMAT
protected static final java.text.SimpleDateFormat DATE_FORMAT
Constructor Detail |
public CreditCardServiceImpl()
Method Detail |
public void ejbCreate() throws javax.ejb.CreateException
SessionImpl
ejbCreate
in class SessionImpl
public void ejbPostCreate() throws javax.ejb.CreateException
SessionImpl
ejbPostCreate
in class SessionImpl
public void ejbActivate() throws javax.ejb.EJBException
SessionImpl
ejbActivate
in class SessionImpl
public void ejbPassivate() throws javax.ejb.EJBException
SessionImpl
ejbPassivate
in class SessionImpl
public void ejbRemove() throws javax.ejb.EJBException
SessionImpl
ejbRemove
in class SessionImpl
public void setSessionContext(com.beasys.commerce.ebusiness.payment.SessionContext ctx) throws javax.ejb.EJBException
public void initialize()
public TransactionResponse authorize(CreditCard card, Price amount, boolean useAvs) throws InvalidCreditCardException, AuthorizationException, ServiceUnavailableException, ServiceConfigurationException, GeneralServiceException, java.rmi.RemoteException
card
- The credit card to be used for the transactionamount
- Amount of the transactionuseAvs
- Flag indicating whether to use address verficationInvalidCreditCardException
- If the associated credit card is invalidAuthorizationException
- If the associated credit card could not be authorized for the specified amountServiceUnavailableException
- If the authorization service is unavailableServiceConfigurationException
- If the authorization service is misconfiguredGeneralServiceException
- On general service errorjava.rmi.RemoteException
- On remote errorpublic TransactionResponse authorizeAndCapture(CreditCard card, Price amount, boolean useAvs) throws AuthorizationException, InvalidCreditCardException, ServiceUnavailableException, ServiceConfigurationException, GeneralServiceException, java.rmi.RemoteException
card
- The credit card to be used for the transactionamount
- Amount of the transactionuseAvs
- Flag indicating whether to use address verficationInvalidCreditCardException
- If the associated credit card is invalidAuthorizationException
- If the associated credit card could not be authorized for the specified amountServiceUnavailableException
- If the authorization service is unavailableServiceConfigurationException
- If the authorization service is misconfiguredGeneralServiceException
- On general service errorjava.rmi.RemoteException
- On remote errorpublic TransactionResponse reauthorize(java.lang.String paymentTransactionId, boolean useAvs) throws com.beasys.commerce.ebusiness.payment.FinderException, InvalidCreditCardException, AuthorizationException, ServiceUnavailableException, ServiceConfigurationException, GeneralServiceException, java.rmi.RemoteException
paymentTransactionId
- The ID of the payment transaction to reauthorizeuseAvs
- Flag indicating whether to use address verficationcom.beasys.commerce.ebusiness.payment.FinderException
- If the payment transaction with the specified ID could not be foundInvalidCreditCardException
- If the associated credit card is invalidAuthorizationException
- If the associated credit card could not be authorized for the specified amountServiceUnavailableException
- If the authorization service is unavailableServiceConfigurationException
- If the authorization service is misconfiguredGeneralServiceException
- On general service errorjava.rmi.RemoteException
- On remote errorpublic TransactionResponse reauthorizeAndCapture(java.lang.String paymentTransactionId, boolean useAvs) throws com.beasys.commerce.ebusiness.payment.FinderException, InvalidCreditCardException, AuthorizationException, ServiceUnavailableException, ServiceConfigurationException, GeneralServiceException, java.rmi.RemoteException
paymentTransactionId
- The ID of the payment transaction to reauthorizeuseAvs
- Flag indicating whether to use address verficationcom.beasys.commerce.ebusiness.payment.FinderException
- If the payment transaction with the specified ID could not be foundInvalidCreditCardException
- If the associated credit card is invalidAuthorizationException
- If the associated credit card could not be authorized for the specified amountServiceUnavailableException
- If the authorization service is unavailableServiceConfigurationException
- If the authorization service is misconfiguredGeneralServiceException
- On general service errorjava.rmi.RemoteException
- On remote errorpublic TransactionResponse capture(java.lang.String transactionId, Price amount) throws CaptureException, ServiceUnavailableException, PaymentException, java.rmi.RemoteException
paymentTransactionId
- The ID of the payment transaction to reauthorize.amount
- The amount of the transaction to capture.CaptureException
- If it was not possible to capture the amount from the transaction.ServiceUnavailableException
- If the underlying service is unreachable.PaymentException
- On general payment exception.java.rmi.RemoteException
- On remote errorpublic TransactionResponse settle(java.lang.String transactionId, Price amount) throws SettleException, ServiceUnavailableException, PaymentException, java.rmi.RemoteException
transactionId
- The ID of the payment transaction to settle.amount
- The amount of the transaction to mark for settlement.SettleException
- If the transaction cannot be settled.ServiceUnavailableException
- If the authorization service is unavailablePaymentException
- General payment error.java.rmi.RemoteException
- On remote errorpublic TransactionResponse batchQuery(java.lang.String transactionId) throws java.rmi.RemoteException
transactionId
- The ID of the payment transaction to query status for.java.rmi.RemoteException
- On remote error.public TransactionResponse voidTransaction(java.lang.String transactionId) throws PaymentException, java.rmi.RemoteException
transactionId
- The ID of the payment transaction to void.PaymentException
- General payment error.java.rmi.RemoteException
- On remote error.public TransactionResponse queryTransactions(java.lang.String transactionId, java.lang.String transactionType, java.lang.String transactionStatus, java.lang.String transactionOrigin, java.lang.String cardType, java.sql.Date startTime, java.sql.Date endTime, Price lowAmount, Price highAmount, java.lang.Integer maxNumberOfTransactions) throws java.rmi.RemoteException
transactionId
- The ID of a specific transaction.java.rmi.RemoteException
- On remote error
|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |