Class DefaultCustomerPaymentGatewayService

java.lang.Object
org.broadleafcommerce.core.payment.service.DefaultCustomerPaymentGatewayService
All Implemented Interfaces:
org.broadleafcommerce.common.payment.service.CustomerPaymentGatewayService

@Service("blCustomerPaymentGatewayService") public class DefaultCustomerPaymentGatewayService extends Object implements org.broadleafcommerce.common.payment.service.CustomerPaymentGatewayService
Core framework implementation of the CustomerPaymentGatewayService.
Author:
Elbert Bautista (elbertbautista)
  • Field Details

    • addressService

      protected org.broadleafcommerce.profile.core.service.AddressService addressService
    • customerPaymentService

      protected org.broadleafcommerce.profile.core.service.CustomerPaymentService customerPaymentService
    • customerService

      protected org.broadleafcommerce.profile.core.service.CustomerService customerService
    • dtoToEntityService

      protected PaymentResponseDTOToEntityService dtoToEntityService
  • Constructor Details

    • DefaultCustomerPaymentGatewayService

      public DefaultCustomerPaymentGatewayService()
  • Method Details

    • createCustomerPaymentFromResponseDTO

      public Long createCustomerPaymentFromResponseDTO(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) throws IllegalArgumentException
      Specified by:
      createCustomerPaymentFromResponseDTO in interface org.broadleafcommerce.common.payment.service.CustomerPaymentGatewayService
      Throws:
      IllegalArgumentException
    • isNewDefaultPaymentMethod

      protected boolean isNewDefaultPaymentMethod(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
    • updateCustomerPaymentFromResponseDTO

      public Long updateCustomerPaymentFromResponseDTO(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) throws IllegalArgumentException
      Specified by:
      updateCustomerPaymentFromResponseDTO in interface org.broadleafcommerce.common.payment.service.CustomerPaymentGatewayService
      Throws:
      IllegalArgumentException
    • deleteCustomerPaymentFromResponseDTO

      public void deleteCustomerPaymentFromResponseDTO(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) throws IllegalArgumentException
      Specified by:
      deleteCustomerPaymentFromResponseDTO in interface org.broadleafcommerce.common.payment.service.CustomerPaymentGatewayService
      Throws:
      IllegalArgumentException
    • validateResponseAndConfig

      protected void validateResponseAndConfig(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • populateCustomerPayment

      protected void populateCustomerPayment(org.broadleafcommerce.profile.core.domain.CustomerPayment customerPayment, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration config)