Class FirstDataProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.payment.BasePaymentProcessor
com.softslate.commerce.businessobjects.payment.FirstDataProcessor
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,PaymentProcessor
Processes a payment in the store for a given user's cart. This implementation
processes a request through the First Data Global Gateway.
- Author:
- David Tobey
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOrderXML
(Map parameters) lp.txn.JLinkPointTransaction
initializeTransaction
(Map parameters) parseResponse
(String responseData) Subclasses must override this method to execute processing.processErrorResponse
(Map parameters, Map responseMap) processResponse
(String responseData, Map parameters) processSuccessResponse
(Map parameters, Map responseMap) processTransaction
(Map parameters) roundForMoney
(double value) roundForMoney
(Double value) Methods inherited from class com.softslate.commerce.businessobjects.payment.BasePaymentProcessor
findPaymentWithLiveInfo, processPayment, processPaymentCapture, processVoid
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getProductIDs, getSettings, getUser, initialize, isProcessorClassActive, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPGet, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, updateOrderTotals, updateOrderTotals, updateOrderTotals, 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
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessProcessor
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, utils
Methods inherited from interface com.softslate.commerce.businessobjects.payment.PaymentProcessor
processPayment, processPaymentCapture, processVoid
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
FirstDataProcessor
public FirstDataProcessor()
-
-
Method Details
-
process
Description copied from class:BasePaymentProcessor
Subclasses must override this method to execute processing. Called byBasePaymentProcessor.processPayment(Map)
.- Specified by:
process
in classBasePaymentProcessor
- Parameters:
parameters
- AMap
containing the values of the user's submitted payment information.- Returns:
- A
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, theMap
may include additional keys, such as "resultMessage", a string describing the results of the processing. - Throws:
Exception
-
processTransaction
- Throws:
Exception
-
initializeTransaction
-
getOrderXML
-
roundForMoney
-
roundForMoney
-
escapeXML
-
processResponse
- Throws:
Exception
-
parseResponse
-
parseTag
-
processErrorResponse
- Throws:
Exception
-
processSuccessResponse
- Throws:
Exception
-