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 Details

  • 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:
      requestHostedEndpoint in interface org.broadleafcommerce.common.payment.service.PaymentGatewayHostedService
      Overrides:
      requestHostedEndpoint in class org.broadleafcommerce.common.payment.service.AbstractPaymentGatewayHostedService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException