Interface PaymentResponseDTOToEntityService

All Known Implementing Classes:
PaymentResponseDTOToEntityServiceImpl

public interface PaymentResponseDTOToEntityService
Author:
Elbert Bautista (elbertbautista)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    populateAddressInfo(org.broadleafcommerce.common.payment.dto.AddressDTO<org.broadleafcommerce.common.payment.dto.PaymentResponseDTO> dto, org.broadleafcommerce.profile.core.domain.Address address)
     
    void
    populateBillingInfo(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, OrderPayment payment, org.broadleafcommerce.profile.core.domain.Address tempBillingAddress, boolean isUseBillingAddressFromGateway)
     
    void
    populateCustomerPaymentToken(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.profile.core.domain.CustomerPayment customerPayment)
    Will attempt to populate the CustomerPayment.setPaymentToken(String) by first looking at the response map for key PaymentAdditionalFieldType.TOKEN.
    void
    populateShippingInfo(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, Order order)
     
  • Method Details

    • populateBillingInfo

      void populateBillingInfo(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, OrderPayment payment, org.broadleafcommerce.profile.core.domain.Address tempBillingAddress, boolean isUseBillingAddressFromGateway)
    • populateShippingInfo

      void populateShippingInfo(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, Order order)
    • populateAddressInfo

      void populateAddressInfo(org.broadleafcommerce.common.payment.dto.AddressDTO<org.broadleafcommerce.common.payment.dto.PaymentResponseDTO> dto, org.broadleafcommerce.profile.core.domain.Address address)
    • populateCustomerPaymentToken

      void populateCustomerPaymentToken(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.profile.core.domain.CustomerPayment customerPayment)

      Will attempt to populate the CustomerPayment.setPaymentToken(String) by first looking at the response map for key PaymentAdditionalFieldType.TOKEN. If not found, it will next look and see if a Credit Card is populated on the response and will attempt to get the CreditCardDTO.getCreditCardNum()

      Usually used during a tokenization flow when there is a direct response from the gateway (e.g. transparent redirect) outside the scope of a checkout flow.

      Parameters:
      customerPayment -
      responseDTO -