Class DefaultPayPalCheckoutProvider
java.lang.Object
com.broadleafcommerce.paymentgateway.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>
com.broadleafcommerce.paypal.micro.gateway.service.provider.DefaultPayPalCheckoutProvider
- All Implemented Interfaces:
com.broadleafcommerce.paymentgateway.service.FailureCountExposable,com.broadleafcommerce.paymentgateway.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>,PayPalCheckoutProvider
public class DefaultPayPalCheckoutProvider
extends com.broadleafcommerce.paymentgateway.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>
implements PayPalCheckoutProvider
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
Fields inherited from class com.broadleafcommerce.paymentgateway.service.AbstractExternalPaymentGatewayCall
failureCount, isUp -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPayPalCheckoutProvider(PayPalCheckoutApiProperties properties, PayPalGatewayConfiguration gatewayConfiguration) -
Method Summary
Modifier and TypeMethodDescription<T extends PayPalResponse>
Tcall(@NonNull PayPalRequest paymentRequest, @NonNull Class<T> responseType) Makes a request to PayPalcommunicateWithVendor(@NonNull PayPalRequest paymentRequest) protected PayPalGatewayConfigurationprotected PayPalCheckoutApiPropertiesMethods inherited from class com.broadleafcommerce.paymentgateway.service.AbstractExternalPaymentGatewayCall
clearStatus, getServiceStatus, incrementFailure, process
-
Constructor Details
-
DefaultPayPalCheckoutProvider
public DefaultPayPalCheckoutProvider(PayPalCheckoutApiProperties properties, PayPalGatewayConfiguration gatewayConfiguration)
-
-
Method Details
-
call
public <T extends PayPalResponse> T call(@NonNull @NonNull PayPalRequest paymentRequest, @NonNull @NonNull Class<T> responseType) Description copied from interface:PayPalCheckoutProviderMakes a request to PayPal- Specified by:
callin interfacePayPalCheckoutProvider- 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
-
communicateWithVendor
- Specified by:
communicateWithVendorin classcom.broadleafcommerce.paymentgateway.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>
-
getServiceName
- Specified by:
getServiceNamein interfacecom.broadleafcommerce.paymentgateway.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>
-
getFailureReportingThreshold
- Specified by:
getFailureReportingThresholdin interfacecom.broadleafcommerce.paymentgateway.service.FailureCountExposable- Specified by:
getFailureReportingThresholdin classcom.broadleafcommerce.paymentgateway.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>
-
getProperties
-
getGatewayConfiguration
-