com.konakart.actions.gateways
Class BaseGatewayAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.konakart.actions.BaseAction
          extended by com.konakart.actions.gateways.BaseGatewayAction
Direct Known Subclasses:
AuthorizenetAction, PayjunctionAction, UsaepayAction, YourpayAction

public class BaseGatewayAction
extends BaseAction

Base Gateway Action for KonaKart application.


Field Summary
protected  org.apache.commons.logging.Log log
          The Log instance for this application.
 
Fields inherited from class com.konakart.actions.BaseAction
loginForward
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
BaseGatewayAction()
           
 
Method Summary
protected  void customizeConnection(java.net.HttpURLConnection connection)
          This method is normally specialized in the super class to customize the connection
 java.lang.String getLogFileDirectory(KKAppEng kkAppEng)
           
 java.lang.String postData(com.konakart.appif.PaymentDetailsIf pd, java.util.List ccParmList)
          Sends data to the payment gateway via a POST.
protected  void validateOrder(com.konakart.appif.OrderIf order, java.lang.String code)
          Validate the order and ensure that we are using the correct payment gateway
 
Methods inherited from class com.konakart.actions.BaseAction
checkSSL, clearErrors, getForward, getKKAppEng, handleException, isOnePageCheckout, loggedIn, runningInPortal
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
The Log instance for this application.

Constructor Detail

BaseGatewayAction

public BaseGatewayAction()
Method Detail

validateOrder

protected void validateOrder(com.konakart.appif.OrderIf order,
                             java.lang.String code)
                      throws KKAppException
Validate the order and ensure that we are using the correct payment gateway

Parameters:
order -
code -
Throws:
KKAppException

postData

public java.lang.String postData(com.konakart.appif.PaymentDetailsIf pd,
                                 java.util.List ccParmList)
                          throws java.io.IOException
Sends data to the payment gateway via a POST. Parameters are received from the PaymentDetails object and the credit card parameters that have just been input by the customer are send in a separate list; the ccParmList

Parameters:
pd -
ccParmList -
Returns:
The response to the post
Throws:
java.io.IOException

getLogFileDirectory

public java.lang.String getLogFileDirectory(KKAppEng kkAppEng)
Parameters:
kkAppEng -
Returns:
Returns the logFileDirectory. We look it up every time.

customizeConnection

protected void customizeConnection(java.net.HttpURLConnection connection)
This method is normally specialized in the super class to customize the connection

Parameters:
connection -


Copyright © 2006 DS Data Systems UK Ltd.