|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.bl.BaseMgr
com.konakart.bl.modules.payment.PaymentMgr
public class PaymentMgr
PaymentMgr
| Nested Class Summary | |
|---|---|
protected class |
PaymentMgr.SortOrderComparator
|
protected class |
PaymentMgr.StaticData
Used to store the static data of this manager |
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log |
protected static java.lang.String |
MODULE_PAYMENT_INSTALLED
|
protected static java.lang.String |
mutex
|
protected static java.util.Map<java.lang.String,PaymentMgr.StaticData> |
staticDataHM
Hash Map that contains the static data |
| Fields inherited from class com.konakart.bl.BaseMgr |
|---|
templateBaseDir |
| Constructor Summary | |
|---|---|
PaymentMgr(KKEngIf eng)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
addCurrencyToOrder(Order order)
Ensure that the order has the currency object instantiated. |
protected java.lang.String |
getJavaModuleName(java.lang.String moduleName)
Whatever the module name is, the package name is the module name in lowercase and the class name starts with an upper case character |
PaymentDetails |
getPaymentDetails(java.lang.String sessionId,
java.lang.String moduleCode,
int orderId,
java.lang.String hostAndPort,
int languageId)
This method is called once a payment gateway has been selected and an order has been saved in the database. |
PaymentDetails |
getPaymentDetailsPerOrder(java.lang.String sessionId,
java.lang.String moduleCode,
OrderIf order,
java.lang.String hostAndPort,
int languageId)
This method is called once a payment gateway has been selected even if the order has not been saved in the database. |
PaymentDetails |
getPaymentGateway(OrderIf order,
java.lang.String moduleName,
int languageId)
Return the PaymentDetail object for one payment gateway. |
PaymentDetails[] |
getPaymentGateways(OrderIf order,
int languageId)
Each payment module is called and asked to return a PaymentDetails object. |
protected PaymentDetails[] |
getPaymentGatewaysPrivate(OrderIf order,
java.lang.String moduleName,
int languageId)
|
protected PaymentInfo |
getPaymentInfo(Order order,
int languageId)
Returns a partially filled payment info object |
void |
refreshConfigs()
Refreshes the configuration data for this manager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
protected static java.util.Map<java.lang.String,PaymentMgr.StaticData> staticDataHM
protected static final java.lang.String MODULE_PAYMENT_INSTALLED
| Constructor Detail |
|---|
public PaymentMgr(KKEngIf eng)
throws java.lang.Exception
eng -
java.lang.Exception| Method Detail |
|---|
public void refreshConfigs()
throws java.lang.Exception
PaymentMgrIf
refreshConfigs in interface PaymentMgrIfjava.lang.Exceptionprotected java.lang.String getJavaModuleName(java.lang.String moduleName)
moduleName -
public PaymentDetails[] getPaymentGateways(OrderIf order,
int languageId)
throws java.lang.Exception
getPaymentGateways in interface PaymentMgrIforder - languageId -
java.lang.Exception
public PaymentDetails getPaymentGateway(OrderIf order,
java.lang.String moduleName,
int languageId)
throws java.lang.Exception
getPaymentGateway in interface PaymentMgrIforder - moduleName - languageId -
java.lang.Exception
protected PaymentDetails[] getPaymentGatewaysPrivate(OrderIf order,
java.lang.String moduleName,
int languageId)
throws java.lang.Exception
order - moduleName - languageId -
java.lang.Exception
public PaymentDetails getPaymentDetails(java.lang.String sessionId,
java.lang.String moduleCode,
int orderId,
java.lang.String hostAndPort,
int languageId)
throws java.lang.Exception
The module matching the module code is called in order to get a fully populated PaymentDetails object containing all of the required parameters etc. for the payment gateway.
getPaymentDetails in interface PaymentMgrIfsessionId - moduleCode - orderId - hostAndPort - languageId -
java.lang.Exception
public PaymentDetails getPaymentDetailsPerOrder(java.lang.String sessionId,
java.lang.String moduleCode,
OrderIf order,
java.lang.String hostAndPort,
int languageId)
throws java.lang.Exception
The module matching the module code is called in order to get a fully populated PaymentDetails object containing all of the required parameters etc. for the payment gateway.
getPaymentDetailsPerOrder in interface PaymentMgrIfsessionId - moduleCode - order - hostAndPort - languageId -
java.lang.Exception
protected PaymentInfo getPaymentInfo(Order order,
int languageId)
throws java.lang.Exception
order - languageId -
java.lang.Exception
protected void addCurrencyToOrder(Order order)
throws java.lang.Exception
order -
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||