Class SamplePaymentGatewayWebResponseServiceImpl

java.lang.Object
org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayWebResponseService
org.broadleafcommerce.payment.service.gateway.SamplePaymentGatewayWebResponseServiceImpl
All Implemented Interfaces:
org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService

@Service("blSamplePaymentGatewayWebResponseService") public class SamplePaymentGatewayWebResponseServiceImpl extends org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayWebResponseService
This is an example implementation of a PaymentGatewayWebResponseService. This will translate the Post information back from SampleMockProcessorController into a PaymentResponseDTO for processing in the Broadleaf System. Replace with a real Payment Gateway Integration like Braintree or PayPal PayFlow. In order to use load this demo service, 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.
Author:
Elbert Bautista (elbertbautista)
  • Field Details

    • webResponsePrintService

      protected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponsePrintService webResponsePrintService
    • configuration

      protected SamplePaymentGatewayConfiguration configuration
  • Constructor Details

    • SamplePaymentGatewayWebResponseServiceImpl

      public SamplePaymentGatewayWebResponseServiceImpl()
  • Method Details

    • translateWebResponse

      public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO translateWebResponse(jakarta.servlet.http.HttpServletRequest request) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      translateWebResponse in interface org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService
      Overrides:
      translateWebResponse in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayWebResponseService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • parse

      protected String parse(Map<String,String[]> paramMap, String param)