public class AdminPayment extends AdminBasePayment implements AdminPaymentIf
Modifier and Type | Class and Description |
---|---|
protected class |
AdminPayment.ConfigVariables
Used to store the configuration data of this module
|
AdminBasePayment.AdminPaymentDetails
AdminBaseMgr.StaticData
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
approved |
private static java.lang.String |
code |
private static java.lang.String |
declined |
private static java.lang.String |
error |
protected static org.apache.commons.logging.Log |
log
the log
|
private static java.lang.String |
MODULE_PAYMENT_AUTHORIZENET_ARB_REQUEST_URL
The Authorize.Net Url used to POST the Automated Recurring Billing request.
|
private static java.lang.String |
MODULE_PAYMENT_AUTHORIZENET_LOGIN
The Authorize.Net API Login ID for this installation
|
private static java.lang.String |
MODULE_PAYMENT_AUTHORIZENET_REQUEST_URL
The Authorize.Net Url used to POST the payment request.
|
private static java.lang.String |
MODULE_PAYMENT_AUTHORIZENET_SHOW_CVV
To show CVV field
|
private static java.lang.String |
MODULE_PAYMENT_AUTHORIZENET_SORT_ORDER
The order for displaying this payment gateway on the UI
|
private static java.lang.String |
MODULE_PAYMENT_AUTHORIZENET_TESTMODE
Used to make test transactions
|
private static java.lang.String |
MODULE_PAYMENT_AUTHORIZENET_TXNKEY
The Authorize.Net transaction key for this installation
|
private static java.lang.String |
MODULE_PAYMENT_AUTHORIZENET_ZONE
The Authorize.Net zone, if greater than zero, should reference a GeoZone.
|
private static java.lang.String |
ORDER_HISTORY_COMMENT_KO |
private static java.lang.String |
ORDER_HISTORY_COMMENT_OK |
private static java.lang.String |
ORDER_HISTORY_REFUND_COMMENT_KO |
private static java.lang.String |
ORDER_HISTORY_REFUND_COMMENT_OK |
private static int |
respCodePosition |
private static int |
RET0 |
private static java.lang.String |
RET0_DESC |
private static int |
RET1 |
private static java.lang.String |
RET1_DESC |
private static int |
RET2 |
private static java.lang.String |
RET2_DESC |
private static int |
txnAmountPosition |
private static int |
txnIdPosition |
private static int |
txnTypePosition |
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
Constructor and Description |
---|
AdminPayment(KKAdminIf eng)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected com.konakart.app.NameValue[] |
cancelSubscription(com.konakart.app.PaymentOptions options)
Method that needs to be implemented to cancel a subscription
|
protected com.konakart.app.NameValue[] |
createSubscription(com.konakart.app.PaymentOptions options)
This method calls AuthorizeNet to create a subscription.
|
protected com.konakart.app.NameValue[] |
doRefund(com.konakart.app.PaymentOptions options)
Performs a credit operation to refund money to a customer
|
com.konakart.app.NameValue[] |
execute(com.konakart.app.PaymentOptions options)
This method executes the transaction with the payment gateway.
|
AdminPayment.ConfigVariables |
getConfigVariables()
Get the configuration variables
|
protected java.lang.String |
getGatewayResultDescription(java.lang.String code)
Adds a description to the Gateway Result
|
private java.lang.String |
getRespDesc(int position)
Authorize.net returns a response as delimiter separated variables.
|
protected com.konakart.app.NameValue[] |
getSubscriptionStatus(com.konakart.app.PaymentOptions options)
Return the status of a subscription.
|
private java.lang.String |
manageARBGatewayPost(AdminPayment.ConfigVariables configs,
ARBAPI api,
AdminSubscription kkSubscription,
boolean create)
Common code for all recurring billing requests.
|
protected com.konakart.app.NameValue[] |
updateSubscription(com.konakart.app.PaymentOptions options)
Method that needs to be implemented to update a subscription
|
customizeConnection, getData, getGatewayRequest, getParameterHash, postData
addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkAPICallEnabled, checkIntInRange, checkIntIsSet, checkRequired, executeQuery, executeQuery, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminContentMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustPwdHistMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminEngineCacheMgr, getAdminEventMgr, getAdminFileMgr, getAdminFilterMgr, getAdminHtmlMgr, getAdminImportMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminMiscPriceMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminServletMgr, getAdminShipmentMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getEmailThreadGracefulShutdownTimeout, getExportMgr, getExportMgr, getExportXMLData, getIntFromString, getKkAdminPropsFilePath, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getNewCriteria, getNewCriteria, getOtherModuleByName, getPostSearchText, getPreSearchText, getProductsToCategoresCriteria, getPropertyValue, getPropertyValue, getPropertyValueAsBool, getPropertyValueAsInt, getPropertyValueAsLong, getRecordCount, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isCommunity, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, isUnix, manageException, manageThrowable, refreshConfigs, removeCData, sendMQMessages, setAdminEng, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr
protected static org.apache.commons.logging.Log log
private static java.lang.String code
private static final java.lang.String MODULE_PAYMENT_AUTHORIZENET_ZONE
private static final java.lang.String MODULE_PAYMENT_AUTHORIZENET_SORT_ORDER
private static final java.lang.String MODULE_PAYMENT_AUTHORIZENET_REQUEST_URL
private static final java.lang.String MODULE_PAYMENT_AUTHORIZENET_ARB_REQUEST_URL
private static final java.lang.String MODULE_PAYMENT_AUTHORIZENET_LOGIN
private static final java.lang.String MODULE_PAYMENT_AUTHORIZENET_TXNKEY
private static final java.lang.String MODULE_PAYMENT_AUTHORIZENET_TESTMODE
private static final java.lang.String MODULE_PAYMENT_AUTHORIZENET_SHOW_CVV
private static final int respCodePosition
private static final int txnIdPosition
private static final int txnAmountPosition
private static final int txnTypePosition
private static final java.lang.String approved
private static final java.lang.String declined
private static final java.lang.String error
private static final int RET0
private static final java.lang.String RET0_DESC
private static final int RET1
private static final java.lang.String RET1_DESC
private static final int RET2
private static final java.lang.String RET2_DESC
private static final java.lang.String ORDER_HISTORY_COMMENT_OK
private static final java.lang.String ORDER_HISTORY_COMMENT_KO
private static final java.lang.String ORDER_HISTORY_REFUND_COMMENT_OK
private static final java.lang.String ORDER_HISTORY_REFUND_COMMENT_KO
public AdminPayment(KKAdminIf eng) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, java.lang.Exception
eng
- the engjava.lang.Exception
- an unexpected exceptioncom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public com.konakart.app.NameValue[] execute(com.konakart.app.PaymentOptions options) throws java.lang.Exception
execute
in interface AdminPaymentIf
options
- the optionsjava.lang.Exception
- an unexpected exceptionpublic AdminPayment.ConfigVariables getConfigVariables() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, java.lang.Exception
java.lang.Exception
- an unexpected exceptioncom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)private java.lang.String getRespDesc(int position)
position
- the positionprotected com.konakart.app.NameValue[] doRefund(com.konakart.app.PaymentOptions options) throws java.lang.Exception
options
- PaymentOptions containing information necessary to carry out the transactionjava.lang.Exception
- an unexpected exceptionprotected com.konakart.app.NameValue[] createSubscription(com.konakart.app.PaymentOptions options) throws java.lang.Exception
options
- PaymentOptions containing information necessary to carry out the transactionjava.lang.Exception
- an unexpected exceptionprotected com.konakart.app.NameValue[] updateSubscription(com.konakart.app.PaymentOptions options) throws java.lang.Exception
options
- the optionsjava.lang.Exception
- an unexpected exceptionprotected com.konakart.app.NameValue[] cancelSubscription(com.konakart.app.PaymentOptions options) throws java.lang.Exception
options
- the optionsjava.lang.Exception
- an unexpected exceptionprotected com.konakart.app.NameValue[] getSubscriptionStatus(com.konakart.app.PaymentOptions options) throws java.lang.Exception
options
- the optionsjava.lang.Exception
- an unexpected exceptionprivate java.lang.String manageARBGatewayPost(AdminPayment.ConfigVariables configs, ARBAPI api, AdminSubscription kkSubscription, boolean create) throws java.lang.Exception
configs
- the configsapi
- the ARBAPI apikkSubscription
- the kkSubscriptioncreate
- if true we update the subscriptionjava.lang.Exception
- an unexpected exceptionprotected java.lang.String getGatewayResultDescription(java.lang.String code)
code
- the codeCopyright © 2011 DS Data Systems UK Ltd.