Class PaymentResponseDTOToEntityServiceImpl
java.lang.Object
org.broadleafcommerce.core.payment.service.PaymentResponseDTOToEntityServiceImpl
- All Implemented Interfaces:
PaymentResponseDTOToEntityService
@Service("blPaymentResponseDTOToEntityService")
public class PaymentResponseDTOToEntityServiceImpl
extends Object
implements PaymentResponseDTOToEntityService
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.profile.core.service.AddressServiceprotected org.broadleafcommerce.profile.core.service.CountryServiceprotected org.broadleafcommerce.profile.core.service.CountrySubdivisionServiceprotected FulfillmentGroupServiceprotected org.broadleafcommerce.common.i18n.service.ISOServiceprotected org.broadleafcommerce.profile.core.service.PhoneService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpopulateAddressInfo(org.broadleafcommerce.common.payment.dto.AddressDTO<org.broadleafcommerce.common.payment.dto.PaymentResponseDTO> dto, org.broadleafcommerce.profile.core.domain.Address address) voidpopulateBillingInfo(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, OrderPayment payment, org.broadleafcommerce.profile.core.domain.Address tempBillingAddress, boolean isUseBillingAddressFromGateway) voidpopulateCustomerPaymentToken(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.profile.core.domain.CustomerPayment customerPayment) Will attempt to populate theCustomerPayment.setPaymentToken(String)by first looking at the response map for keyPaymentAdditionalFieldType.TOKEN.voidpopulateShippingInfo(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, Order order)
-
Field Details
-
addressService
protected org.broadleafcommerce.profile.core.service.AddressService addressService -
countryService
protected org.broadleafcommerce.profile.core.service.CountryService countryService -
isoService
protected org.broadleafcommerce.common.i18n.service.ISOService isoService -
phoneService
protected org.broadleafcommerce.profile.core.service.PhoneService phoneService -
fulfillmentGroupService
-
countrySubdivisionService
protected org.broadleafcommerce.profile.core.service.CountrySubdivisionService countrySubdivisionService
-
-
Constructor Details
-
PaymentResponseDTOToEntityServiceImpl
public PaymentResponseDTOToEntityServiceImpl()
-
-
Method Details
-
populateBillingInfo
public void populateBillingInfo(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, OrderPayment payment, org.broadleafcommerce.profile.core.domain.Address tempBillingAddress, boolean isUseBillingAddressFromGateway) - Specified by:
populateBillingInfoin interfacePaymentResponseDTOToEntityService
-
populateShippingInfo
public void populateShippingInfo(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, Order order) - Specified by:
populateShippingInfoin interfacePaymentResponseDTOToEntityService
-
populateAddressInfo
public void populateAddressInfo(org.broadleafcommerce.common.payment.dto.AddressDTO<org.broadleafcommerce.common.payment.dto.PaymentResponseDTO> dto, org.broadleafcommerce.profile.core.domain.Address address) - Specified by:
populateAddressInfoin interfacePaymentResponseDTOToEntityService
-
populateCustomerPaymentToken
public void populateCustomerPaymentToken(org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.profile.core.domain.CustomerPayment customerPayment) Description copied from interface:PaymentResponseDTOToEntityServiceWill attempt to populate the
CustomerPayment.setPaymentToken(String)by first looking at the response map for keyPaymentAdditionalFieldType.TOKEN. If not found, it will next look and see if a Credit Card is populated on the response and will attempt to get theCreditCardDTO.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.
- Specified by:
populateCustomerPaymentTokenin interfacePaymentResponseDTOToEntityService
-