Class BraintreeReverseAuthorizeResponseTransformer

java.lang.Object
com.broadleafcommerce.braintree.service.requestresponse.AbstractBraintreeResponseTransformer
com.broadleafcommerce.braintree.service.requestresponse.BraintreeReverseAuthorizeResponseTransformer
All Implemented Interfaces:
ResponseTransformer

public class BraintreeReverseAuthorizeResponseTransformer extends AbstractBraintreeResponseTransformer
  • Constructor Details

    • BraintreeReverseAuthorizeResponseTransformer

      public BraintreeReverseAuthorizeResponseTransformer(BraintreeConfigurationProperties configProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • canHandle

      public boolean canHandle(@NonNull @NonNull String transactionType)
      Description copied from interface: ResponseTransformer
      Checks 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
    • populatePaymentResponse

      public com.broadleafcommerce.paymentgateway.domain.PaymentResponse populatePaymentResponse(@NonNull @NonNull BraintreePaymentRequest braintreePaymentRequest, @NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull @NonNull BraintreeResponse braintreeResponse)
      Description copied from interface: ResponseTransformer
      Populates the payment response based on the response from the Braintree API.
      Specified by:
      populatePaymentResponse in interface ResponseTransformer
      Overrides:
      populatePaymentResponse in class AbstractBraintreeResponseTransformer
      Parameters:
      braintreePaymentRequest - the Braintree payment request
      paymentResponse - the payment response to populate
      braintreeResponse - the response from Braintree API
      Returns:
      the populated payment response
    • populatePaymentResponse

      protected com.broadleafcommerce.paymentgateway.domain.PaymentResponse populatePaymentResponse(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, @NonNull @NonNull BraintreeResponse braintreeResponse, @NonNull @NonNull String transactionReferenceId)
    • isSuccessful

      protected boolean isSuccessful(BraintreeResponse.Transaction transaction)