@Service(value="blSamplePaymentGatewayTRExtensionHandler")
public class SamplePaymentGatewayTRExtensionHandler
extends org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandler
TRCreditCardExtensionManager
and will add some default hidden parameters/form POST URL for our fake
SampleMockProcessorController
Note, we don't want this loaded into the extension manager
if a real payment gateway is used, so make sure to not scan this class when
using a real implementation. This is for demo purposes only.
In order to use this sample extension handler, you will need to component scan
the package "com.broadleafcommerce".
This should NOT be used in production, and is meant solely for demonstration
purposes only.| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration |
configuration |
protected org.broadleafcommerce.common.web.payment.processor.TRCreditCardExtensionManager |
extensionManager |
static String |
FORM_ACTION_URL |
static String |
FORM_HIDDEN_PARAMS |
protected org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService |
transparentRedirectService |
| Constructor and Description |
|---|
SamplePaymentGatewayTRExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration |
getConfiguration() |
String |
getFormActionURLKey() |
String |
getHiddenParamsKey() |
org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService |
getTransparentRedirectService() |
void |
init() |
void |
populateFormParameters(Map<String,Map<String,String>> formParameters,
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO) |
createTransparentRedirectForm, getHandlerType, overrideCustomerPaymentReturnURLs, setFormActionKey, setFormHiddenParamsKeygetPriority, isEnabled, setEnabled, setPrioritypublic static final String FORM_ACTION_URL
public static final String FORM_HIDDEN_PARAMS
protected org.broadleafcommerce.common.web.payment.processor.TRCreditCardExtensionManager extensionManager
protected org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService transparentRedirectService
protected org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration configuration
public SamplePaymentGatewayTRExtensionHandler()
@PostConstruct public void init()
public String getFormActionURLKey()
getFormActionURLKey in class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandlerpublic String getHiddenParamsKey()
getHiddenParamsKey in class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandlerpublic org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration getConfiguration()
getConfiguration in class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandlerpublic org.broadleafcommerce.common.payment.service.PaymentGatewayTransparentRedirectService getTransparentRedirectService()
getTransparentRedirectService in class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandlerpublic void populateFormParameters(Map<String,Map<String,String>> formParameters, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
populateFormParameters in class org.broadleafcommerce.common.web.payment.processor.AbstractTRCreditCardExtensionHandlerCopyright © 2017. All rights reserved.