com.konakart.actions.ipn
Class BarclaycardSmartPayApiNotificationAction

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.ipn.BarclaycardSmartPayApiNotificationAction

public class BarclaycardSmartPayApiNotificationAction
extends BaseGatewayAction

This class is an Action class for what to do when a payment notification callback is received from Barclaycard SmartPay Api.


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
BarclaycardSmartPayApiNotificationAction()
           
 
Method Summary
protected  boolean allowUser(java.lang.String auth, java.lang.String username, java.lang.String password)
          Checks the user information sent in the Authorization header to see if the user is allowed
 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)
           
 
Methods inherited from class com.konakart.actions.gateways.BaseGatewayAction
addParameters, customizeConnection, customizeConnection, getData, 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

BarclaycardSmartPayApiNotificationAction

public BarclaycardSmartPayApiNotificationAction()
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

allowUser

protected boolean allowUser(java.lang.String auth,
                            java.lang.String username,
                            java.lang.String password)
Checks the user information sent in the Authorization header to see if the user is allowed

Parameters:
auth -
username -
password -
Returns:
true if the user is authenticated, otherwise false


Copyright © 2011 DS Data Systems UK Ltd.