|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.payment.BasePaymentProcessor
public abstract class BasePaymentProcessor
Abstract class that provides methods useful for PaymentProcessor
implementations.
| Field Summary | |
|---|---|
(package private) static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
BasePaymentProcessor()
|
|
| Method Summary | |
|---|---|
abstract java.util.Map |
process(java.util.Map parameters)
Subclasses must override this method to execute processing. |
java.util.Map |
processPayment(java.util.Map parameters)
Assists with processing of payments. |
| Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor |
|---|
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getProductIDs, getSettings, getUser, initialize, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, utils |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject |
|---|
initialize |
| Field Detail |
|---|
static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public BasePaymentProcessor()
| Method Detail |
|---|
public abstract java.util.Map process(java.util.Map parameters)
throws java.lang.Exception
processPayment(Map).
parameters - A Map containing the values of the user's
submitted payment information.
Map containing a least one key named
"resultCode", which contains a String parsable into an int,
representing the results of the processing. 0 for the resultCode
indicates success. Optionally, the Map may include
additional keys, such as "resultMessage", a string describing the
results of the processing.
java.lang.Exception
public java.util.Map processPayment(java.util.Map parameters)
throws java.lang.Exception
Map
of parameters to this BasePaymentProcessor instance and
calls process(). Catches any exception that occur within the
processor and marks the user's order as corrupt if any occur. This method
also skips processing if the store's "paymentRequired" settings is set to
false.
processPayment in interface PaymentProcessorparameters - A Map containing the values of the user's
submitted payment information.
Map containing a least one key named
"resultCode", which contains a String parsable into an int,
representing the results of the processing. 0 for the resultCode
indicates success. Optionally, the Map may include
additional keys, such as "resultMessage", a string describing the
results of the processing.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||