com.konakart.actions.gateways
Class CaledonAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.konakart.actions.BaseAction
          extended by com.konakart.actions.gateways.BaseGatewayAction
              extended by com.konakart.actions.gateways.CaledonAction

public class CaledonAction
extends BaseGatewayAction

This class is an Action class for sending credit card details to Caledon and receiving confirmation Typical replies:
TEXT=DECLINED (DUP) &CODE=1007
TEXT=T68414 $12.34&AUTH=T68414&CODE=0000


Field Summary
protected  org.apache.commons.logging.Log log
          The Log instance for this application.
 
Fields inherited from class com.konakart.actions.BaseAction
ACTION_CONFIRM_ORDER, ACTION_CUSTOMER_LOGIN, ACTION_ENTER_CHECKOUT, ACTION_NEW_CUSTOMER_VISIT, ACTION_PAYMENT_METHOD_SELECTED, ACTION_PRODUCT_VIEWED, ACTION_REMOVE_FROM_CART, COOKIE_MAX_AGE_IN_SECS, CUSTOMER_LOCALE, CUSTOMER_NAME, CUSTOMER_UUID, defaultStoreIdFromWebXml, GUEST_CUSTOMER_ID, loginForward, SEO_DELIM, SEO_DIRECTORY, SEO_OFF, SEO_PARAMETERS, SEO_PRODS_FOR_MANU, SEO_PRODS_FOR_MANU_CODE, SEO_SEARCH_BY_MANU, SEO_SEARCH_BY_MANU_BY_LINK, SEO_SEARCH_BY_MANU_BY_LINK_CODE, SEO_SEARCH_BY_MANU_CODE, SEO_SEL_CAT, SEO_SEL_CAT_CODE, SEO_SEL_PROD, SEO_SEL_PROD_CODE, SEO_TYPE, SEO_TYPE_LENGTH, TAG_BIRTH_DATE, TAG_CART_TOTAL, TAG_CATEGORIES_VIEWED, TAG_COUNTRY_CODE, TAG_IS_MALE, TAG_LOGIN_DATE, TAG_MANUFACTURERS_VIEWED, TAG_ORDER_PAGE_SIZE, TAG_PROD_PAGE_SIZE, TAG_PRODUCTS_IN_CART, TAG_PRODUCTS_IN_WISHLIST, TAG_PRODUCTS_VIEWED, TAG_REVIEW_PAGE_SIZE, TAG_SEARCH_STRING, TAG_WISHLIST_TOTAL
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
CaledonAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 java.lang.String getData(com.konakart.appif.PaymentDetailsIf pd, java.util.List<com.konakart.appif.NameValueIf> ccParmList)
          Sends data to the payment gateway via a GET.
 
Methods inherited from class com.konakart.actions.gateways.BaseGatewayAction
addParameters, customizeConnection, customizeConnection, getGatewayRequest, getLogFileDirectory, getParameterFromPaymentDetails, hashParameters, postData, postData, saveIPNrecord, sendOrderConfirmationMail, sendOrderConfirmationMail, validateOrder
 
Methods inherited from class com.konakart.actions.BaseAction
checkSSL, clearErrors, getCatMessage, getCustomerEvent, getDefaultStoreIdFromWebXml, getForward, getKKAppEng, getKKCookie, getKKCookie, handleException, insertCustomerEvent, insertCustomerEvent, insertCustomerEvent, insertCustomerEvent, insertCustomerEvent, isOnePageCheckout, kkURLEncode, loggedIn, manageCookieLogout, runningInPortal, setDefaultStoreIdFromWebXml, setKKCookie, setKKCookie, setupResponseForSEORedirect, updateRecentlyViewedProducts
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, 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

CaledonAction

public CaledonAction()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
Overrides:
execute in class org.apache.struts.action.Action
Parameters:
mapping - The ActionMapping used to select this instance
form - The optional ActionForm bean for this request (if any)
request - The HTTP request we are processing
response - The HTTP response we are creating

getData

public java.lang.String getData(com.konakart.appif.PaymentDetailsIf pd,
                                java.util.List<com.konakart.appif.NameValueIf> ccParmList)
                         throws java.io.IOException
Sends data to the payment gateway via a GET. 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 TODO: This can be removed in 5.2.0.0 because it has also been placed in BaseGatewayAction.java

Overrides:
getData in class BaseGatewayAction
Parameters:
pd -
ccParmList -
Returns:
The response to the post
Throws:
java.io.IOException


Copyright © 2011 DS Data Systems UK Ltd.