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 Summary
FieldsModifier and TypeFieldDescriptionprotected SamplePaymentGatewayConfigurationprotected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponsePrintService -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
webResponsePrintService
protected org.broadleafcommerce.common.payment.service.PaymentGatewayWebResponsePrintService webResponsePrintService -
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:
translateWebResponsein interfaceorg.broadleafcommerce.common.payment.service.PaymentGatewayWebResponseService- Overrides:
translateWebResponsein classorg.broadleafcommerce.common.payment.service.AbstractPaymentGatewayWebResponseService- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
parse
-