public abstract class AbstractTRCreditCardExtensionHandler extends AbstractExtensionHandler implements TRCreditCardExtensionHandler
An Abstract implementation of the TRCreditCardExtensionHandler. PaymentGateway Handlers will just need to extend this class and implement the declated abstract methods.
enabled, priority| Constructor and Description |
|---|
AbstractTRCreditCardExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
ExtensionResultStatusType |
createTransparentRedirectForm(Map<String,Map<String,String>> formParameters,
PaymentRequestDTO requestDTO,
Map<String,String> configurationSettings)
The implementing modules should take into consideration the passed in configuration settings map
and call their implementing TransparentRedirectService to generate either an Authorize
or Authorize and Capture Form.
|
abstract PaymentGatewayConfiguration |
getConfiguration() |
abstract String |
getFormActionURLKey() |
abstract String |
getHiddenParamsKey() |
abstract PaymentGatewayTransparentRedirectService |
getTransparentRedirectService() |
abstract void |
populateFormParameters(Map<String,Map<String,String>> formParameters,
PaymentResponseDTO responseDTO) |
ExtensionResultStatusType |
setFormActionKey(StringBuilder key) |
ExtensionResultStatusType |
setFormHiddenParamsKey(StringBuilder key) |
getPriority, isEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPriority, isEnabledpublic AbstractTRCreditCardExtensionHandler()
public ExtensionResultStatusType setFormActionKey(StringBuilder key)
setFormActionKey in interface TRCreditCardExtensionHandlerpublic ExtensionResultStatusType setFormHiddenParamsKey(StringBuilder key)
setFormHiddenParamsKey in interface TRCreditCardExtensionHandlerpublic ExtensionResultStatusType createTransparentRedirectForm(Map<String,Map<String,String>> formParameters, PaymentRequestDTO requestDTO, Map<String,String> configurationSettings) throws PaymentException
TRCreditCardExtensionHandlerThe implementing modules should take into consideration the passed in configuration settings map and call their implementing TransparentRedirectService to generate either an Authorize or Authorize and Capture Form. The decision should be based on the implementing PaymentGatewayConfiguration.isPerformAuthorizeAndCapture();
This method accepts a RequestDTO that represents the order along with a map of gateway-specific configuration settings. The hidden values and the form action will be placed on the passed in formParameters variable. The keys to that map can be retrieved by calling the following methods. getFormActionKey, getFormHiddenParamsKey.
createTransparentRedirectForm in interface TRCreditCardExtensionHandlerPaymentExceptionpublic abstract String getFormActionURLKey()
public abstract String getHiddenParamsKey()
public abstract PaymentGatewayConfiguration getConfiguration()
public abstract PaymentGatewayTransparentRedirectService getTransparentRedirectService()
Copyright © 2014. All Rights Reserved.