Class SamplePaymentGatewayHostedServiceImpl
java.lang.Object
org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayHostedService
org.broadleafcommerce.payment.service.gateway.SamplePaymentGatewayHostedServiceImpl
- All Implemented Interfaces:
org.broadleafcommerce.common.payment.service.PaymentGatewayHostedService
@Service("blSamplePaymentGatewayHostedService")
public class SamplePaymentGatewayHostedServiceImpl
extends org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayHostedService
This is an example implementation of a
PaymentGatewayHostedService.
This is just a sample that mimics what URL a real hosted payment gateway implementation
might generate. This mimics implementations like PayPal Express Checkout
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.payment.dto.PaymentResponseDTOrequestHostedEndpoint(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO)
-
Field Details
-
configuration
-
-
Constructor Details
-
SamplePaymentGatewayHostedServiceImpl
public SamplePaymentGatewayHostedServiceImpl()
-
-
Method Details
-
requestHostedEndpoint
public org.broadleafcommerce.common.payment.dto.PaymentResponseDTO requestHostedEndpoint(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO requestDTO) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException - Specified by:
requestHostedEndpointin interfaceorg.broadleafcommerce.common.payment.service.PaymentGatewayHostedService- Overrides:
requestHostedEndpointin classorg.broadleafcommerce.common.payment.service.AbstractPaymentGatewayHostedService- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-