public interface ExternalCallPayPalCheckoutService
| Modifier and Type | Method and Description |
|---|---|
<T extends PayPalResponse> |
call(PayPalRequest paymentRequest,
Class<T> responseType)
Makes a request to PayPal
|
PayPalCheckoutConfiguration |
getConfiguration() |
PayPalCheckoutConfiguration getConfiguration()
<T extends PayPalResponse> T call(PayPalRequest paymentRequest, Class<T> responseType) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
paymentRequest - The payment request that should be executed. The operation that is
executed is dependent on which implementation of PayPalRequest is sentresponseType - The type of the response expectedPayPalResponse that corresponds to the given
responseTypeorg.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.Copyright © 2021. All rights reserved.