Interface PaymentResponseDTOToEntityService
- All Known Implementing Classes:
PaymentResponseDTOToEntityServiceImpl
public interface PaymentResponseDTOToEntityService
- Author:
- Elbert Bautista (elbertbautista)
-
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)
-
Method Details
-
populateBillingInfo
void populateBillingInfo(PaymentResponseDTO responseDTO, OrderPayment payment, Address tempBillingAddress, boolean isUseBillingAddressFromGateway) -
populateShippingInfo
-
populateAddressInfo
-
populateCustomerPaymentToken
Will 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.
- Parameters:
customerPayment-responseDTO-
-