Class DefaultCurrentOrderPaymentRequestService

java.lang.Object
org.broadleafcommerce.core.web.payment.service.DefaultCurrentOrderPaymentRequestService
All Implemented Interfaces:
org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestService

@Service("blDefaultCurrentPaymentRequestService") public class DefaultCurrentOrderPaymentRequestService extends Object implements org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestService
Author:
Phillip Verheyden (phillipuniverse)
  • Field Details

    • paymentRequestDTOService

      protected org.broadleafcommerce.core.payment.service.OrderToPaymentRequestDTOService paymentRequestDTOService
    • orderService

      protected org.broadleafcommerce.core.order.service.OrderService orderService
  • Constructor Details

    • DefaultCurrentOrderPaymentRequestService

      public DefaultCurrentOrderPaymentRequestService()
  • Method Details

    • getPaymentRequestFromCurrentOrder

      public org.broadleafcommerce.common.payment.dto.PaymentRequestDTO getPaymentRequestFromCurrentOrder()
      Specified by:
      getPaymentRequestFromCurrentOrder in interface org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestService
    • addOrderAttributeToCurrentOrder

      public void addOrderAttributeToCurrentOrder(String orderAttributeKey, String orderAttributeValue) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      addOrderAttributeToCurrentOrder in interface org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • addOrderAttributeToOrder

      public void addOrderAttributeToOrder(Long orderId, String orderAttributeKey, String orderAttributeValue) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      addOrderAttributeToOrder in interface org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • logWarningIfCartMismatch

      protected void logWarningIfCartMismatch(Long currentCartId, Long orderId)
    • retrieveOrderAttributeFromCurrentOrder

      public String retrieveOrderAttributeFromCurrentOrder(String orderAttributeKey)
      Specified by:
      retrieveOrderAttributeFromCurrentOrder in interface org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestService
    • retrieveOrderAttributeFromOrder

      public String retrieveOrderAttributeFromOrder(Long orderId, String orderAttributeKey)
      Specified by:
      retrieveOrderAttributeFromOrder in interface org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestService