Class AdyenAuthorizeRequestResponseTransformer
java.lang.Object
com.broadleafcommerce.adyen.service.requestresponse.AbstractRequestResponseTransformer
com.broadleafcommerce.adyen.service.requestresponse.AdyenAuthorizeRequestResponseTransformer
- All Implemented Interfaces:
RequestResponseTransformer
The transformer for
DefaultTransactionTypes.AUTHORIZE transaction type.-
Constructor Summary
ConstructorsConstructorDescriptionAdyenAuthorizeRequestResponseTransformer(AdyenConfigurationProperties configProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.paymentgateway.domain.NextActionbuildNextAction(@NonNull AdyenResponse adyenResponse, com.broadleafcommerce.paymentgateway.domain.enums.NextActionType nextActionType) booleanChecks if this transformer can handle the specified transaction type.createAdyenRequest(@NonNull AdyenPaymentRequest adyenPaymentRequest) Creates the Adyen request body based onAdyenPaymentRequest.protected @Nullable StringgetCustomerEmail(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) com.broadleafcommerce.paymentgateway.domain.PaymentResponsepopulatePaymentResponse(@NonNull AdyenPaymentRequest adyenPaymentRequest, @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull AdyenResponse adyenResponse) Populates the payment response based on the response from the Adyen API.Methods inherited from class com.broadleafcommerce.adyen.service.requestresponse.AbstractRequestResponseTransformer
addBroadleafMultiTenantMetadata, addThreeDSData, buildRawResponse, convertAmount, convertValue, getAdyenPaymentData, getAdyenPspReference, getAmountInMajorUnits, getAmountInMinorUnits, getBroadleafMultiTenantMetadata, getConfigProperties, getMerchantAccount, getObjectMapper, getPlatformStore, getRecurringProcessingModel, getTransactionTotal, getTypeFactory, identifyDeclineType, identifyFailureType, populateLineItemsIfNeeded, readValue
-
Constructor Details
-
AdyenAuthorizeRequestResponseTransformer
public AdyenAuthorizeRequestResponseTransformer(AdyenConfigurationProperties configProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
canHandle
Description copied from interface:RequestResponseTransformerChecks if this transformer can handle the specified transaction type.- Parameters:
transactionType- the transaction type of the request- Returns:
- true if this transformer can be used for the specified request
-
createAdyenRequest
public Map<String,Object> createAdyenRequest(@NonNull @NonNull AdyenPaymentRequest adyenPaymentRequest) Description copied from interface:RequestResponseTransformerCreates the Adyen request body based onAdyenPaymentRequest.- Parameters:
adyenPaymentRequest- the adyen payment request- Returns:
- the Adyen request body
-
populatePaymentResponse
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse populatePaymentResponse(@NonNull @NonNull AdyenPaymentRequest adyenPaymentRequest, @NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull @NonNull AdyenResponse adyenResponse) Description copied from interface:RequestResponseTransformerPopulates the payment response based on the response from the Adyen API.- Parameters:
adyenPaymentRequest- the adyen payment requestpaymentResponse- the payment response to populateadyenResponse- the response from Adyen API- Returns:
- the populated payment response
-
getCustomerEmail
@Nullable protected @Nullable String getCustomerEmail(com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
buildNextAction
protected com.broadleafcommerce.paymentgateway.domain.NextAction buildNextAction(@NonNull @NonNull AdyenResponse adyenResponse, com.broadleafcommerce.paymentgateway.domain.enums.NextActionType nextActionType)
-