public interface PaymentMgrIf
Modifier and Type | Method and Description |
---|---|
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 |
getPaymentDetailsCustom(java.lang.String sessionId,
java.lang.String moduleCode,
NameValueIf[] parameters)
Method used to return any custom information required from the payment module.
|
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.
|
void |
refreshConfigs()
Refreshes the configuration data for this manager
|
void refreshConfigs() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionPaymentDetails[] getPaymentGateways(OrderIf order, int languageId) throws java.lang.Exception
order
- the orderlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionPaymentDetails getPaymentGateway(OrderIf order, java.lang.String moduleName, int languageId) throws java.lang.Exception
order
- the ordermoduleName
- can be module name on its own or it can be "moduleName~~moduleSubCode" if the
module has a subCodelanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionPaymentDetails getPaymentDetails(java.lang.String sessionId, java.lang.String moduleCode, int orderId, java.lang.String hostAndPort, int languageId) throws java.lang.Exception
sessionId
- the sessionIdmoduleCode
- the moduleCodeorderId
- the orderIdhostAndPort
- the hostAndPortlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionPaymentDetails getPaymentDetailsPerOrder(java.lang.String sessionId, java.lang.String moduleCode, OrderIf order, java.lang.String hostAndPort, int languageId) throws java.lang.Exception
sessionId
- the sessionIdmoduleCode
- the moduleCodeorder
- the orderhostAndPort
- the hostAndPortlanguageId
- the languageIdjava.lang.Exception
- an unexpected exceptionPaymentDetails getPaymentDetailsCustom(java.lang.String sessionId, java.lang.String moduleCode, NameValueIf[] parameters) throws java.lang.Exception
sessionId
- the sessionIdmoduleCode
- the moduleCodeparameters
- the parametersjava.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.