com.konakartadmin.modules.payment
Class AdminBasePayment

java.lang.Object
  extended by com.konakartadmin.bl.AdminBaseMgr
      extended by com.konakartadmin.modules.payment.AdminBasePayment
Direct Known Subclasses:
AdminPayment, AdminPayment

public class AdminBasePayment
extends AdminBaseMgr

Base class for sending payment information to the payment gateway


Nested Class Summary
 class AdminBasePayment.AdminPaymentDetails
          Class used to pass around the payment details
 
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr
AdminBaseMgr.StaticData
 
Field Summary
private static org.apache.commons.logging.Log log
          the log
 
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
 
Constructor Summary
AdminBasePayment()
           
 
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 getData(AdminBasePayment.AdminPaymentDetails pd)
          Sends data to the payment gateway via a GET.
protected  java.lang.String getGatewayRequest(AdminBasePayment.AdminPaymentDetails pd)
          This method can be specialized in the super class to customize the format of the request.
 java.lang.String postData(AdminBasePayment.AdminPaymentDetails pd)
          Sends data to the payment gateway via a POST.
 
Methods inherited from class com.konakartadmin.bl.AdminBaseMgr
addInsertAttr, addInsertAttr, checkIntIsSet, checkRequired, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminHtmlMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminPublishProdMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getExportXMLData, getIntFromString, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getPostSearchText, getPreSearchText, getPropertyValue, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, manageException, refreshConfigs, removeCData, setAdminEng, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
the log

Constructor Detail

AdminBasePayment

public AdminBasePayment()
Method Detail

postData

public java.lang.String postData(AdminBasePayment.AdminPaymentDetails pd)
                          throws java.io.IOException
Sends data to the payment gateway via a POST. Parameters are received from the AdminPaymentDetails object.

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

getData

public java.lang.String getData(AdminBasePayment.AdminPaymentDetails pd)
                         throws java.io.IOException
Sends data to the payment gateway via a GET. Parameters are received from the AdminPaymentDetails object.

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

getGatewayRequest

protected java.lang.String getGatewayRequest(AdminBasePayment.AdminPaymentDetails pd)
This method can be specialized in the super class to customize the format of the request.

Parameters:
pd - the PaymentDetails

customizeConnection

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

Parameters:
connection -


Copyright © 2011 DS Data Systems UK Ltd.