|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A CreditCardService is a Stateless Session EJB that provides services related
to the authorization, capture, and settlement of credit card transactions.
It is designed as a service provider interface behind which integrations with various payment
solutions are implemented. The business methods implement a very standard workflow that is
associated with the completion of credit card transactions. The current state of the
transaction is maintained and each action is journaled.
PaymentTransaction.
The state of the payment and the key for that PaymentTransaction is returned in a
TransactionResponse as well as service specific information.
A handle for that PaymentTransaction can be obtained from the
TransactionResponse.
CreditCardServiceHome,
TransactionResponse,
PaymentTransaction| Method Summary | |
TransactionResponse |
authorize(CreditCard card,
Price amount,
boolean useAvs)
Reserve credit on the supplied card for the amount specified. |
TransactionResponse |
authorizeAndCapture(CreditCard card,
Price amount,
boolean useAvs)
Reserve credit on the supplied card for the amount specified. |
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. |
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)
Atempt to authorize a payment transaction that is in the retry state. |
TransactionResponse |
reauthorizeAndCapture(java.lang.String paymentTransactionId,
boolean useAvs)
Atempt to authorize a payment transaction that is in the retry state. |
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. |
| Method Detail |
public TransactionResponse authorize(CreditCard card,
Price amount,
boolean useAvs)
throws java.rmi.RemoteException,
AuthorizationException,
InvalidCreditCardException,
ServiceUnavailableException,
ServiceConfigurationException,
GeneralServiceException
card - CreditCard against which the amount will be authorized.amount - the amount of credit to authorize.useAvs - boolean that tells the service if the billing address on the card is to be verified.TransactionResponse that refers to the resulting PaymentTransaction.InvalidCreditCardException - 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 error
public TransactionResponse authorizeAndCapture(CreditCard card,
Price amount,
boolean useAvs)
throws java.rmi.RemoteException,
AuthorizationException,
InvalidCreditCardException,
ServiceUnavailableException,
ServiceConfigurationException,
GeneralServiceException
card - CreditCard against which the amount will be authorized.amount - the amount of credit to authorize.useAvs - boolean that tells the service if the billing address on the card is to be verified.TransactionResponse that refers to the resulting PaymentTransaction.InvalidCreditCardException - 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 error
public 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 error
public 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 error
public TransactionResponse capture(java.lang.String transactionId,
Price amount)
throws java.rmi.RemoteException,
CaptureException,
ServiceUnavailableException,
PaymentException
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 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
public TransactionResponse voidTransaction(java.lang.String transactionId)
throws java.rmi.RemoteException,
PaymentException
transactionId - The ID of the payment transaction to void.PaymentException - General payment error.java.rmi.RemoteException - On remote error.
public TransactionResponse settle(java.lang.String transactionId,
Price amount)
throws java.rmi.RemoteException,
SettleException,
ServiceUnavailableException,
PaymentException
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 error
public 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.
|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||