public class CommideaVanguardBaseAction extends BaseGatewayAction
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log
The
Log instance for this application. |
protected java.util.HashMap<java.lang.String,java.lang.String> |
parmMap |
protected static int |
RET0 |
protected static java.lang.String |
RET0_DESC |
protected static int |
RET1 |
protected static java.lang.String |
RET1_DESC |
protected static java.lang.String |
RET3_DESC |
protected static int |
RET4 |
protected static java.lang.String |
RET4_DESC |
enableJsonExceptionHandling, exception, requiresLoginACTION_CONFIRM_ORDER, ACTION_CUSTOMER_LOGIN, ACTION_ENTER_CHECKOUT, ACTION_NEW_CUSTOMER_VISIT, ACTION_PAYMENT_METHOD_SELECTED, ACTION_PRODUCT_VIEWED, ACTION_REMOVE_FROM_CART, AGREED_COOKIES, appEng, COOKIE_MAX_AGE_IN_SECS, CUSTOMER_LOCALE, CUSTOMER_NAME, CUSTOMER_UUID, GUEST_CUSTOMER_ID, KKLOGIN, MY_ACCOUNT_URL, SEO_DELIM, SEO_DIRECTORY, SEO_OFF, SEO_PARAMETERS, SEO_PRODS_FOR_MANU, SEO_PRODS_FOR_MANU_CODE, SEO_SEARCH_BY_MANU_BY_LINK, SEO_SEARCH_BY_MANU_BY_LINK_CODE, SEO_SEL_CAT, SEO_SEL_CAT_CODE, SEO_SEL_PROD, SEO_SEL_PROD_CODE, SEO_TYPE, SEO_TYPE_LENGTH, strutsSession, TAG_BIRTH_DATE, TAG_CART_TOTAL, TAG_CATEGORIES_TIME_VIEWED, TAG_CATEGORIES_VIEWED, TAG_COUNTRY_CODE, TAG_IS_MALE, TAG_LOGIN_DATE, TAG_MANUFACTURERS_TIME_VIEWED, TAG_MANUFACTURERS_VIEWED, TAG_ORDER_PAGE_SIZE, TAG_PROD_PAGE_SIZE, TAG_PRODUCTS_IN_CART, TAG_PRODUCTS_IN_WISHLIST, TAG_PRODUCTS_TIME_IN_CART, TAG_PRODUCTS_TIME_IN_WISHLIST, TAG_PRODUCTS_TIME_VIEWED, TAG_PRODUCTS_VIEWED, TAG_REVIEW_PAGE_SIZE, TAG_SEARCH_STRING, TAG_WISHLIST_TOTAL, WELCOME| Constructor and Description |
|---|
CommideaVanguardBaseAction() |
| Modifier and Type | Method and Description |
|---|---|
protected com.konakart.appif.IpnHistoryIf |
clearIpnHistory(com.konakart.appif.IpnHistoryIf in)
Clears the IpnHistory object
|
protected void |
customizeConnection(java.net.HttpURLConnection connection,
com.konakart.appif.PaymentDetailsIf pd,
java.util.List<com.konakart.appif.NameValueIf> paramList)
Add things specific to Commidea Vanguard to the connection
|
protected void |
finishUp(KKAppEng kkAppEng,
com.konakart.appif.OrderIf order,
boolean approved,
java.lang.String transactionId)
Common code to finish up after the transaction request to Commidea
|
protected java.lang.String |
getFooter()
Returns the footer which is common for all requests
|
protected java.lang.String |
getHeader(java.lang.String msgType,
com.konakart.appif.OrderIf order,
int sendAttempt)
Returns the header which is common for all requests
|
protected java.lang.String |
getProcessingDB(java.lang.String encodedDB)
Get the processingDB from the encoded String
|
protected java.lang.String |
getResultDescription(java.lang.String desc)
Use this to truncate the result description so that it fits in the database column OK
|
protected java.lang.String |
getSessionId(java.lang.String encodedSession)
Get the sessionId from the encoded String
|
protected java.lang.String |
vggeneratesessionrequest(KKAppEng kkAppEng,
com.konakart.appif.OrderIf order,
com.konakart.appif.IpnHistoryIf ipnHistory)
Method that manages the VGGENERATESESSIONREQUEST and the VGGENERATESESSIONRESPONSE.
|
protected java.lang.String |
vggetcarddetailsrequest(KKAppEng kkAppEng,
com.konakart.appif.OrderIf order,
com.konakart.appif.IpnHistoryIf ipnHistory)
Method that manages the VGGETCARDDETAILSREQUEST and the VGGETCARDDETAILSRESPONSE.
|
protected java.lang.String |
vgpayerauthauthenticationcheckrequest(KKAppEng kkAppEng,
com.konakart.appif.OrderIf order,
com.konakart.appif.IpnHistoryIf ipnHistory,
java.lang.String paRes,
java.lang.String enrolled)
Method that manages the VGPAYERAUTHAUTHENTICATIONCHECKREQUEST and the
VGPAYERAUTHAUTHENTICATIONCHECKRESPONSE.
|
protected java.lang.String |
vgpayerauthenrollmentcheckrequest(KKAppEng kkAppEng,
com.konakart.appif.OrderIf order,
com.konakart.appif.IpnHistoryIf ipnHistory)
Method that manages the VGPAYERAUTHENROLLMENTCHECKREQUEST and the
VGPAYERAUTHENROLLMENTCHECKRESPONSE.
|
protected java.lang.String |
vgtokenregistrationrequest(KKAppEng kkAppEng,
com.konakart.appif.OrderIf order,
com.konakart.appif.IpnHistoryIf ipnHistory)
Method that manages the VGTOKENREGISTRATIONREQUEST and the VGTOKENREGISTRATIONRESPONSE.
|
protected java.lang.String |
vgtransactionrequest(KKAppEng kkAppEng,
com.konakart.appif.OrderIf order,
com.konakart.appif.IpnHistoryIf ipnHistory)
Method that manages the VGTRANSACTIONREQUEST and the VGTRANSACTIONRESPONSE.
|
addParameters, customizeConnection, getCustomerIPAddress, getData, getException, getGatewayRequest, getLogFileDirectory, getParameterFromPaymentDetails, getProxy, handleException, hashParameters, isEnableJsonExceptionHandling, postData, postData, saveIPNrecord, saveIPNrecord, sendOrderConfirmationMail, sendOrderConfirmationMail, sendPaymentData, setEnableJsonExceptionHandling, setException, translatePaymentInstrumentTypePaymentModuleSubCode, validateOrderchangeSession, checkSSL, escapeFormInput, getBaseURL, getCustomerEvent, getForward, getJspEng, getKKAppEng, getKKCookie, getKKCookie, getRedirectURL, insertCustomerEvent, insertCustomerEvent, insertCustomerEvent, insertCustomerEvent, insertCustomerEvent, kkURLEncode, loggedIn, loggedIn, loggedIn, login, manageCookieLogout, noNull, setJspEng, setKKCookie, setKKCookie, setServletRequest, setSession, setupResponseForSEORedirect, setupResponseForSSLRedirect, updateRecentlyViewedProductsaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected org.apache.commons.logging.Log log
Log instance for this application.protected static final int RET0
protected static final java.lang.String RET0_DESC
protected static final int RET1
protected static final java.lang.String RET1_DESC
protected static final java.lang.String RET3_DESC
protected static final int RET4
protected static final java.lang.String RET4_DESC
protected java.util.HashMap<java.lang.String,java.lang.String> parmMap
protected void finishUp(KKAppEng kkAppEng, com.konakart.appif.OrderIf order, boolean approved, java.lang.String transactionId) throws java.lang.Exception
kkAppEng - the kkAppEngorder - the orderapproved - the approvedtransactionId - the transactionIdjava.lang.Exception - an unexpected exceptionprotected java.lang.String getResultDescription(java.lang.String desc)
desc - the result description (which may be too long)protected java.lang.String getHeader(java.lang.String msgType,
com.konakart.appif.OrderIf order,
int sendAttempt)
msgType - the msgTypeorder - the ordersendAttempt - the sendAttemptprotected java.lang.String getFooter()
protected java.lang.String vggeneratesessionrequest(KKAppEng kkAppEng, com.konakart.appif.OrderIf order, com.konakart.appif.IpnHistoryIf ipnHistory) throws java.lang.Exception
kkAppEng - the kkAppEngorder - the orderipnHistory - the ipnHistoryjava.lang.Exception - an unexpected exceptionprotected java.lang.String vggetcarddetailsrequest(KKAppEng kkAppEng, com.konakart.appif.OrderIf order, com.konakart.appif.IpnHistoryIf ipnHistory) throws java.lang.Exception
kkAppEng - the kkAppEngorder - the orderipnHistory - the ipnHistoryjava.lang.Exception - an unexpected exceptionprotected java.lang.String vgpayerauthenrollmentcheckrequest(KKAppEng kkAppEng, com.konakart.appif.OrderIf order, com.konakart.appif.IpnHistoryIf ipnHistory) throws java.lang.Exception
kkAppEng - the kkAppEngorder - the orderipnHistory - the ipnHistoryjava.lang.Exception - an unexpected exceptionprotected java.lang.String vgpayerauthauthenticationcheckrequest(KKAppEng kkAppEng, com.konakart.appif.OrderIf order, com.konakart.appif.IpnHistoryIf ipnHistory, java.lang.String paRes, java.lang.String enrolled) throws java.lang.Exception
kkAppEng - the kkAppEngorder - the orderipnHistory - the ipnHistorypaRes - the paResenrolled - the enrolledjava.lang.Exception - an unexpected exceptionprotected java.lang.String vgtransactionrequest(KKAppEng kkAppEng, com.konakart.appif.OrderIf order, com.konakart.appif.IpnHistoryIf ipnHistory) throws java.lang.Exception
kkAppEng - the kkAppEngorder - the orderipnHistory - the ipnHistoryjava.lang.Exception - an unexpected exceptionprotected void customizeConnection(java.net.HttpURLConnection connection,
com.konakart.appif.PaymentDetailsIf pd,
java.util.List<com.konakart.appif.NameValueIf> paramList)
customizeConnection in class BaseGatewayActionconnection - the HTTP connection objectpd - the Payment DetailsparamList - Additional parameters (typically credit card details but can also be any
miscellaneous extra parameters that may be required)protected com.konakart.appif.IpnHistoryIf clearIpnHistory(com.konakart.appif.IpnHistoryIf in)
in - the inprotected java.lang.String getSessionId(java.lang.String encodedSession)
encodedSession - the encodedSessionprotected java.lang.String getProcessingDB(java.lang.String encodedDB)
encodedDB - the encodedDBprotected java.lang.String vgtokenregistrationrequest(KKAppEng kkAppEng, com.konakart.appif.OrderIf order, com.konakart.appif.IpnHistoryIf ipnHistory) throws java.lang.Exception
kkAppEng - the kkAppEngorder - the orderipnHistory - the ipnHistoryjava.lang.Exception - an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.