Interface ExternalCallPayPalCheckoutService

All Known Implementing Classes:
ExternalCallPayPalCheckoutServiceImpl

public interface ExternalCallPayPalCheckoutService
Author:
Elbert Bautista (elbertbautista)
  • Method Details

    • getConfiguration

      PayPalCheckoutConfiguration getConfiguration()
    • call

      <T extends PayPalResponse> T call(PayPalRequest paymentRequest, Class<T> responseType) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Makes a request to PayPal
      Parameters:
      paymentRequest - The payment request that should be executed. The operation that is executed is dependent on which implementation of PayPalRequest is sent
      responseType - The type of the response expected
      Returns:
      the respective PayPalResponse that corresponds to the given responseType
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException - if the PayPalRequest returns an exception once executed. This could be because the initial request is configured invalidly or because the PayPal APIs responded with an error.