com.softslate.commerce.businessobjects.payment
Class PayPalDirectProcessor

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
          extended by com.softslate.commerce.businessobjects.payment.BasePaymentProcessor
              extended by com.softslate.commerce.businessobjects.payment.PayPalExpressProcessor
                  extended by com.softslate.commerce.businessobjects.payment.PayPalDirectProcessor
All Implemented Interfaces:
BusinessObject, BusinessProcessor, IPayPalDirectPaymentProcessor, IPayPalExpressPaymentProcessor, PaymentProcessor

public class PayPalDirectProcessor
extends PayPalExpressProcessor
implements IPayPalDirectPaymentProcessor

Processes a payment in the store for a given user's cart through PayPal Direct. The processDoDirectPayment(Map) method manages the process of sending a request to PayPal, and handling the response appropriately.

Author:
David Tobey
See Also:
PaymentDAO

Field Summary
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
PayPalDirectProcessor()
           
 
Method Summary
 java.util.Map process(java.util.Map parameters)
          Subclasses must override this method to execute processing.
 java.util.Map processDoDirectPayment(java.util.Map parameters)
           
 void processSuccessfulTransaction(java.util.Map parameters)
           
 
Methods inherited from class com.softslate.commerce.businessobjects.payment.PayPalExpressProcessor
createPaypalProfile, prepareResponseFromSetExpressCheckoutResponseType, processDoExpressCheckoutPayment, processGetExpressCheckoutDetails, processSetExpressCheckout
 
Methods inherited from class com.softslate.commerce.businessobjects.payment.BasePaymentProcessor
processPayment
 
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.payment.PaymentProcessor
processPayment
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

PayPalDirectProcessor

public PayPalDirectProcessor()
Method Detail

processDoDirectPayment

public java.util.Map processDoDirectPayment(java.util.Map parameters)
                                     throws java.lang.Exception
Specified by:
processDoDirectPayment in interface IPayPalDirectPaymentProcessor
Throws:
java.lang.Exception

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).

Overrides:
process in class PayPalExpressProcessor
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

processSuccessfulTransaction

public void processSuccessfulTransaction(java.util.Map parameters)
                                  throws java.lang.Exception
Overrides:
processSuccessfulTransaction in class PayPalExpressProcessor
Throws:
java.lang.Exception


Copyright ? SoftSlate, LLC 2003?2005