Class ExternalCallPayPalCheckoutServiceImpl
java.lang.Object
org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>
org.broadleafcommerce.payment.service.gateway.ExternalCallPayPalCheckoutServiceImpl
- All Implemented Interfaces:
org.broadleafcommerce.common.payment.service.FailureCountExposable,org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>,ExternalCallPayPalCheckoutService
@Service("blExternalCallPayPalCheckoutService")
public class ExternalCallPayPalCheckoutServiceImpl
extends org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>
implements ExternalCallPayPalCheckoutService
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
FieldsFields inherited from class org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall
failureCount, isUp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends PayPalResponse>
Tcall(PayPalRequest paymentRequest, Class<T> responseType) Makes a request to PayPalcommunicateWithVendor(PayPalRequest paymentRequest) Methods inherited from class org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall
clearStatus, getServiceStatus, incrementFailure, process
-
Field Details
-
configuration
-
-
Constructor Details
-
ExternalCallPayPalCheckoutServiceImpl
public ExternalCallPayPalCheckoutServiceImpl()
-
-
Method Details
-
getConfiguration
- Specified by:
getConfigurationin interfaceExternalCallPayPalCheckoutService
-
getServiceName
- Specified by:
getServiceNamein interfaceorg.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>
-
call
public <T extends PayPalResponse> T call(PayPalRequest paymentRequest, Class<T> responseType) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException Description copied from interface:ExternalCallPayPalCheckoutServiceMakes a request to PayPal- Specified by:
callin interfaceExternalCallPayPalCheckoutService- 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.
-
communicateWithVendor
- Specified by:
communicateWithVendorin classorg.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse> - Throws:
Exception
-
getFailureReportingThreshold
- Specified by:
getFailureReportingThresholdin interfaceorg.broadleafcommerce.common.payment.service.FailureCountExposable- Specified by:
getFailureReportingThresholdin classorg.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>
-