Class SamplePaymentGatewayCustomerPaymentController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController
org.broadleafcommerce.vendor.sample.web.controller.SamplePaymentGatewayCustomerPaymentController
@Controller("blSamplePaymentGatewayCustomerPaymentController")
@RequestMapping("/sample-customer-payment")
public class SamplePaymentGatewayCustomerPaymentController
extends org.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static Stringprotected static final Stringprotected static final org.apache.commons.logging.Logprotected SamplePaymentGatewayConfigurationprotected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseServiceFields inherited from class org.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController
customerPaymentGatewayService, webResponsePrintService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerrorEndpoint(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, Map<String, String> pathVars) org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationgetCustomerPaymentViewRedirect(String customerPaymentId) org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseServicevoidhandleProcessingException(Exception e, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) returnEndpoint(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, Map<String, String> pathVars) Methods inherited from class org.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController
applyCustomerTokenToProfile, createCustomerPaymentMethods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
GATEWAY_CONTEXT_KEY
- See Also:
-
CUSTOMER_PAYMENT_ERROR
- See Also:
-
customerPaymentErrorMessage
-
paymentGatewayWebResponseService
protected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService paymentGatewayWebResponseService -
paymentGatewayConfiguration
-
-
Constructor Details
-
SamplePaymentGatewayCustomerPaymentController
public SamplePaymentGatewayCustomerPaymentController()
-
-
Method Details
-
getWebResponseService
public org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService getWebResponseService()- Specified by:
getWebResponseServicein classorg.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController
-
getConfiguration
public org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration getConfiguration()- Specified by:
getConfigurationin classorg.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController
-
getCustomerPaymentViewRedirect
- Specified by:
getCustomerPaymentViewRedirectin classorg.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController
-
getCustomerPaymentErrorRedirect
- Specified by:
getCustomerPaymentErrorRedirectin classorg.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController
-
handleProcessingException
public void handleProcessingException(Exception e, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException - Specified by:
handleProcessingExceptionin classorg.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
returnEndpoint
@RequestMapping(value="/return", method=POST) public String returnEndpoint(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, Map<String, String> pathVars) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
errorEndpoint
@RequestMapping(value="/error", method=GET) public String errorEndpoint(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, Map<String, String> pathVars) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-