@Service(value="blExternalCallPayPalCheckoutService") public class ExternalCallPayPalCheckoutServiceImpl extends org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse> implements ExternalCallPayPalCheckoutService
| Modifier and Type | Field and Description |
|---|---|
protected PayPalCheckoutConfiguration |
configuration |
| Constructor and Description |
|---|
ExternalCallPayPalCheckoutServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T extends PayPalResponse> |
call(PayPalRequest paymentRequest,
Class<T> responseType)
Makes a request to PayPal
|
PayPalResponse |
communicateWithVendor(PayPalRequest paymentRequest) |
PayPalCheckoutConfiguration |
getConfiguration() |
Integer |
getFailureReportingThreshold() |
String |
getServiceName() |
protected PayPalCheckoutConfiguration configuration
public ExternalCallPayPalCheckoutServiceImpl()
public PayPalCheckoutConfiguration getConfiguration()
getConfiguration in interface ExternalCallPayPalCheckoutServicepublic String getServiceName()
getServiceName in interface org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>public <T extends PayPalResponse> T call(PayPalRequest paymentRequest, Class<T> responseType) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
ExternalCallPayPalCheckoutServicecall in interface ExternalCallPayPalCheckoutServicepaymentRequest - 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.public PayPalResponse communicateWithVendor(PayPalRequest paymentRequest) throws Exception
communicateWithVendor in class org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>Exceptionpublic Integer getFailureReportingThreshold()
getFailureReportingThreshold in interface org.broadleafcommerce.common.payment.service.FailureCountExposablegetFailureReportingThreshold in class org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>Copyright © 2021. All rights reserved.