com.softslate.commerce.businessobjects.payment
Class BasePaymentProcessor

java.lang.Object
  extended bycom.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended bycom.softslate.commerce.businessobjects.core.BaseBusinessProcessor
          extended bycom.softslate.commerce.businessobjects.payment.BasePaymentProcessor
All Implemented Interfaces:
BusinessObject, BusinessProcessor, PaymentProcessor
Direct Known Subclasses:
BasicPaymentProcessor, CheckPaymentProcessor, PayflowLinkProcessor, PayflowProProcessor

public abstract class BasePaymentProcessor
extends BaseBusinessProcessor
implements PaymentProcessor

Abstract class that provides methods useful for PaymentProcessor implementations.

Author:
David Tobey

Field Summary
(package private) static org.apache.commons.logging.Log log
           
 
Fields inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
 
Constructor Summary
BasePaymentProcessor()
           
 
Method Summary
abstract  java.util.Map process(java.util.Map parameters)
           
 java.util.Map processPayment(java.util.Map parameters)
          Assists with processing of payments.
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatPrice, getBusinessObjectFactory, getDaoFactory, getSettingsBean, getUser, initialize, setBusinessObjectFactory, setDaoFactory, setSettingsBean, setUser
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
formatDateTime, parseDateTime, prepareRequestData, sendHTTPPost
 
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

log

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

BasePaymentProcessor

public BasePaymentProcessor()
Method Detail

process

public abstract java.util.Map process(java.util.Map parameters)
                               throws java.lang.Exception
Throws:
java.lang.Exception

processPayment

public java.util.Map processPayment(java.util.Map parameters)
                             throws java.lang.Exception
Assists with processing of payments. Copies the incoming Map of parameters to this BasePaymentProcessor instance and calls processPayment().

Specified by:
processPayment in interface PaymentProcessor
Parameters:
parameters -
Returns:
A Map contain a least one key named "resultCode", which contains a String parsable into an integer, representing the results of the processing. 0 for the resultCode indicates success. Optionally, the Map may include a "resultMessage" parameter; a String describing the results of the processing.
Throws:
java.lang.Exception


Copyright © SoftSlate, Inc. 2003–2005