Interface ExternalCallPayPalCheckoutService
- All Known Implementing Classes:
ExternalCallPayPalCheckoutServiceImpl
public interface ExternalCallPayPalCheckoutService
- 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
-
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 ofPayPalRequestis sentresponseType- The type of the response expected- Returns:
- the respective
PayPalResponsethat corresponds to the givenresponseType - Throws:
org.broadleafcommerce.common.vendor.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.
-