@Service(value="blPaymentResponseDTOToEntityService") public class PaymentResponseDTOToEntityServiceImpl extends Object implements PaymentResponseDTOToEntityService
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.profile.core.service.AddressService |
addressService |
protected org.broadleafcommerce.profile.core.service.CountryService |
countryService |
protected org.broadleafcommerce.profile.core.service.CountrySubdivisionService |
countrySubdivisionService |
protected FulfillmentGroupService |
fulfillmentGroupService |
protected ISOService |
isoService |
protected org.broadleafcommerce.profile.core.service.PhoneService |
phoneService |
protected org.broadleafcommerce.profile.core.service.StateService |
stateService |
| Constructor and Description |
|---|
PaymentResponseDTOToEntityServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
populateAddressInfo(AddressDTO<PaymentResponseDTO> dto,
org.broadleafcommerce.profile.core.domain.Address address) |
void |
populateBillingInfo(PaymentResponseDTO responseDTO,
OrderPayment payment,
org.broadleafcommerce.profile.core.domain.Address tempBillingAddress,
boolean isUseBillingAddressFromGateway) |
void |
populateCustomerPaymentToken(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(PaymentResponseDTO responseDTO,
Order order) |
protected org.broadleafcommerce.profile.core.service.AddressService addressService
protected org.broadleafcommerce.profile.core.service.StateService stateService
protected org.broadleafcommerce.profile.core.service.CountryService countryService
protected ISOService isoService
protected org.broadleafcommerce.profile.core.service.PhoneService phoneService
protected FulfillmentGroupService fulfillmentGroupService
protected org.broadleafcommerce.profile.core.service.CountrySubdivisionService countrySubdivisionService
public PaymentResponseDTOToEntityServiceImpl()
public void populateBillingInfo(PaymentResponseDTO responseDTO, OrderPayment payment, org.broadleafcommerce.profile.core.domain.Address tempBillingAddress, boolean isUseBillingAddressFromGateway)
populateBillingInfo in interface PaymentResponseDTOToEntityServicepublic void populateShippingInfo(PaymentResponseDTO responseDTO, Order order)
populateShippingInfo in interface PaymentResponseDTOToEntityServicepublic void populateAddressInfo(AddressDTO<PaymentResponseDTO> dto, org.broadleafcommerce.profile.core.domain.Address address)
populateAddressInfo in interface PaymentResponseDTOToEntityServicepublic void populateCustomerPaymentToken(PaymentResponseDTO responseDTO, org.broadleafcommerce.profile.core.domain.CustomerPayment customerPayment)
PaymentResponseDTOToEntityService
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.
populateCustomerPaymentToken in interface PaymentResponseDTOToEntityServiceorg.broadleafcommerce.core.payment.service.DefaultPaymentGatewayCheckoutService}Copyright © 2021. All rights reserved.