com.softslate.commerce.businessobjects.payment
Class PayflowProACHProcessor
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.BasePayPalNVPProcessor
com.softslate.commerce.businessobjects.payment.PayflowProACHProcessor
- All Implemented Interfaces:
- BusinessObject, BusinessProcessor, PaymentProcessor
public class PayflowProACHProcessor
- extends BasePayPalNVPProcessor
- implements PaymentProcessor
Processes a payment in the store for a given user's cart. This implementation
processes a request through PayPal Payflow Pro's ACH processing for
electronic payments. The process(Map)
method manages the process of
sending a request to PayPal, and handling the response appropriately.
- Author:
- Ashish Jain
- See Also:
PaymentDAO
Field Summary |
(package private) static org.apache.commons.logging.Log |
log
|
Fields inherited from class com.softslate.commerce.businessobjects.payment.BasePayPalNVPProcessor |
CERT_PATH, COMMENT1, COMMENT2, CUSTOMER_CODE, CUSTOMER_REF, DESCRIPTION, HOST_ADDRESS, HOST_PORT, PARTNER, PASSWORD, PO_NUMBER, PROXY_ADDR, PROXY_LOGON, PROXY_PASSWD, PROXY_PORT, TIME_OUT, USER, VENDOR, VERBOSITY |
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, 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.BusinessProcessor |
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, utils |
log
static org.apache.commons.logging.Log log
PayflowProACHProcessor
public PayflowProACHProcessor()
process
public java.util.Map process(java.util.Map parameters)
throws java.lang.Exception
- Description copied from class:
BasePaymentProcessor
- Subclasses must override this method to execute processing. Called by
BasePaymentProcessor.processPayment(Map)
.
- Specified by:
process
in class BasePaymentProcessor
- Parameters:
parameters
- A Map
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, the Map
may include
additional keys, such as "resultMessage", a string describing the
results of the processing.
- Throws:
java.lang.Exception
setPaymentVariablesToPersist
protected void setPaymentVariablesToPersist(Payment payment,
java.util.Map parameters,
java.util.Map responseMap)
- Specified by:
setPaymentVariablesToPersist
in class BasePayPalNVPProcessor
preparePaypalRequestAcutalPayload
protected java.util.Map preparePaypalRequestAcutalPayload(java.util.Map params,
java.util.Map parameters)
- Specified by:
preparePaypalRequestAcutalPayload
in class BasePayPalNVPProcessor
Copyright © SoftSlate, LLC 20032005