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 Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
    • GATEWAY_CONTEXT_KEY

      protected static final String GATEWAY_CONTEXT_KEY
      See Also:
    • CUSTOMER_PAYMENT_ERROR

      protected static final String CUSTOMER_PAYMENT_ERROR
      See Also:
    • customerPaymentErrorMessage

      protected static String customerPaymentErrorMessage
    • paymentGatewayWebResponseService

      protected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService paymentGatewayWebResponseService
    • paymentGatewayConfiguration

      protected SamplePaymentGatewayConfiguration paymentGatewayConfiguration
  • Constructor Details

    • SamplePaymentGatewayCustomerPaymentController

      public SamplePaymentGatewayCustomerPaymentController()
  • Method Details

    • getWebResponseService

      public org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService getWebResponseService()
      Specified by:
      getWebResponseService in class org.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController
    • getConfiguration

      public org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration getConfiguration()
      Specified by:
      getConfiguration in class org.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController
    • getCustomerPaymentViewRedirect

      public String getCustomerPaymentViewRedirect(String customerPaymentId)
      Specified by:
      getCustomerPaymentViewRedirect in class org.broadleafcommerce.common.web.payment.controller.CustomerPaymentGatewayAbstractController
    • getCustomerPaymentErrorRedirect

      public String getCustomerPaymentErrorRedirect()
      Specified by:
      getCustomerPaymentErrorRedirect in class org.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:
      handleProcessingException in class org.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