Class AbstractTRCreditCardExtensionHandler
- All Implemented Interfaces:
ExtensionHandler,TRCreditCardExtensionHandler
An Abstract implementation of the TRCreditCardExtensionHandler. PaymentGateway Handlers will just need to extend this class and implement the declared abstract methods.
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
FieldsFields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priority -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTransparentRedirectForm(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 PaymentGatewayConfigurationabstract Stringabstract Stringprotected voidoverrideCustomerPaymentReturnURLs(PaymentRequestDTO requestDTO, PaymentResponseDTO responseDTO) If the request contains information about an override return URL, use the one specified on the request dto.abstract voidpopulateFormParameters(Map<String, Map<String, String>> formParameters, PaymentResponseDTO responseDTO) Methods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
getPriority, isEnabled, setEnabled, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
-
Field Details
-
paymentGatewayResolver
-
-
Constructor Details
-
AbstractTRCreditCardExtensionHandler
public AbstractTRCreditCardExtensionHandler()
-
-
Method Details
-
setFormActionKey
- Specified by:
setFormActionKeyin interfaceTRCreditCardExtensionHandler
-
setFormHiddenParamsKey
- Specified by:
setFormHiddenParamsKeyin interfaceTRCreditCardExtensionHandler
-
createTransparentRedirectForm
public ExtensionResultStatusType createTransparentRedirectForm(Map<String, Map<String, throws PaymentExceptionString>> formParameters, PaymentRequestDTO requestDTO, Map<String, String> configurationSettings) Description copied from interface: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.
- Specified by:
createTransparentRedirectFormin interfaceTRCreditCardExtensionHandler- Throws:
PaymentException
-
getHandlerType
-
getFormActionURLKey
-
getHiddenParamsKey
-
getConfiguration
-
getTransparentRedirectService
-
populateFormParameters
-
overrideCustomerPaymentReturnURLs
protected void overrideCustomerPaymentReturnURLs(PaymentRequestDTO requestDTO, PaymentResponseDTO responseDTO) If the request contains information about an override return URL, use the one specified on the request dto. e.g. some modules like OMS may use the transparent redirect mechanism to create payment tokens, if the request is originating from a module, then it may override the return url, else the request would be coming from a normal flow, like adding a customer payment token from a customer's profile page.
-