Class SampleMockProcessorController

java.lang.Object
org.broadleafcommerce.vendor.sample.web.controller.mock.processor.SampleMockProcessorController

@Controller("blSampleMockProcessorController") public class SampleMockProcessorController extends Object
This is a sample implementation of a Payment Gateway Processor. This mimics what a real payment gateway might do in order to process credit card information. So, this controller will handle the POST from your credit card form on your checkout page and do some minimal Credit Card Validation (luhn check and expiration date is after today). In production, that form should securely POST to your third party payment gateway and not this controller. In order to use this sample controller, you will need to component scan the package "org.broadleafcommerce". This should NOT be used in production, and is meant solely for demonstration purposes only.
Author:
Elbert Bautista (elbertbautista)
  • Field Details

  • Constructor Details

    • SampleMockProcessorController

      public SampleMockProcessorController()
  • Method Details

    • processTransparentRedirectForm

      @RequestMapping(value="/sample-checkout/process", method=POST) @ResponseBody public String processTransparentRedirectForm(jakarta.servlet.http.HttpServletRequest request)