Interface PayPalCheckoutProvider
- All Known Implementing Classes:
DefaultPayPalCheckoutProvider
public interface PayPalCheckoutProvider
Identifies a service that is responsible for making calls against the PayPal REST API.
- Author:
- Elbert Bautista (elbertbautista)
-
Method Summary
Modifier and TypeMethodDescription<T extends PayPalResponse>
Tcall(PayPalRequest paymentRequest, Class<T> responseType) Makes a request to PayPal
-
Method Details
-
call
Makes a request to PayPal- Parameters:
paymentRequest- The payment request that should be executed. The operation that is executed is dependent on which implementation ofPayPalRequestis sentresponseType- The type of the response expected- Returns:
- the respective
PayPalResponsethat corresponds to the givenresponseType - Throws:
com.broadleafcommerce.paymentgateway.service.exception.PaymentException- if thePayPalRequestreturns an exception once executed. This could be because the initial request is configured invalidly or because the PayPal APIs responded with an error.
-