Class BasePayPalNVPProcessor
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
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,PaymentProcessor
- Direct Known Subclasses:
PayflowProACHProcessor
,PayflowProProcessor
,PayPalUKDirectProcessor
,PayPalUKExpressProcessor
Base class for all payment processors that use PayPal's name-value pair (NVP)
API to process payments. Common functionality as been distilled to this class
for each of the processors, including PayPal UK, PayPal ACH, and Payflow Pro.
- Author:
- Ashish Jain, David Tobey
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
(package private) static org.apache.commons.logging.Log
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpaypal.payflow.PayflowAPI
initializeConnection
(String keyPrefix) makePayPalCall
(Map parameters, String keyPrefix) preparePayPalAuthRequest
(Map params, String keyPrefix) preparePaypalLengthParameters
(Map params, Map parameters) preparePaypalRequest
(Map parameters, String keyPrefix) protected abstract Map
preparePaypalRequestAcutalPayload
(Map params, Map parameters) preparePaypalRequestCommonPayload
(Map params, Map parameters) void
processSuccessfulTransaction
(Map parameters, Map responseMap) protected abstract void
setPaymentVariablesToPersist
(Payment payment, Map parameters, Map responseMap) Methods inherited from class com.softslate.commerce.businessobjects.payment.BasePaymentProcessor
findPaymentWithLiveInfo, process, 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
-
Field Details
-
log
static org.apache.commons.logging.Log log -
HOST_ADDRESS
- See Also:
-
HOST_PORT
- See Also:
-
TIME_OUT
- See Also:
-
PROXY_ADDR
- See Also:
-
PROXY_PORT
- See Also:
-
PROXY_LOGON
- See Also:
-
PROXY_PASSWD
- See Also:
-
CERT_PATH
- See Also:
-
PARTNER
- See Also:
-
VENDOR
- See Also:
-
USER
- See Also:
-
PASSWORD
- See Also:
-
COMMENT1
- See Also:
-
COMMENT2
- See Also:
-
CUSTOMER_REF
- See Also:
-
PO_NUMBER
- See Also:
-
CUSTOMER_CODE
- See Also:
-
DESCRIPTION
- See Also:
-
VERBOSITY
- See Also:
-
-
Constructor Details
-
BasePayPalNVPProcessor
public BasePayPalNVPProcessor()
-
-
Method Details
-
setPaymentVariablesToPersist
-
makePayPalCall
- Throws:
Exception
-
initializeConnection
- Throws:
Exception
-
preparePaypalRequest
- Throws:
Exception
-
preparePayPalAuthRequest
- Throws:
Exception
-
preparePaypalRequestCommonPayload
- Throws:
Exception
-
preparePaypalRequestAcutalPayload
-
preparePaypalLengthParameters
-
processSuccessfulTransaction
- Throws:
Exception
-