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 AddressServiceprotected CountryServiceprotected CountrySubdivisionServiceprotected FulfillmentGroupServiceprotected ISOServiceprotected PhoneService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpopulateAddressInfo(AddressDTO<PaymentResponseDTO> dto, Address address) voidpopulateBillingInfo(PaymentResponseDTO responseDTO, OrderPayment payment, Address tempBillingAddress, boolean isUseBillingAddressFromGateway) voidpopulateCustomerPaymentToken(PaymentResponseDTO responseDTO, CustomerPayment customerPayment) Will attempt to populate theCustomerPayment.setPaymentToken(String)by first looking at the response map for keyPaymentAdditionalFieldType.TOKEN.voidpopulateShippingInfo(PaymentResponseDTO responseDTO, Order order)
-
Field Details
-
addressService
-
countryService
-
isoService
-
phoneService
-
fulfillmentGroupService
-
countrySubdivisionService
-
-
Constructor Details
-
PaymentResponseDTOToEntityServiceImpl
public PaymentResponseDTOToEntityServiceImpl()
-
-
Method Details
-
populateBillingInfo
public void populateBillingInfo(PaymentResponseDTO responseDTO, OrderPayment payment, Address tempBillingAddress, boolean isUseBillingAddressFromGateway) - Specified by:
populateBillingInfoin interfacePaymentResponseDTOToEntityService
-
populateShippingInfo
- Specified by:
populateShippingInfoin interfacePaymentResponseDTOToEntityService
-
populateAddressInfo
- Specified by:
populateAddressInfoin interfacePaymentResponseDTOToEntityService
-
populateCustomerPaymentToken
public void populateCustomerPaymentToken(PaymentResponseDTO responseDTO, 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
-