Class 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)
    • Method Detail

      • call

        public <T extends PayPalResponse> T call​(@NonNull
                                                 @NonNull PayPalRequest paymentRequest,
                                                 @NonNull
                                                 @NonNull Class<T> responseType)
        Description copied from interface: PayPalCheckoutProvider
        Makes a request to PayPal
        Specified by:
        call in interface PayPalCheckoutProvider
        Parameters:
        paymentRequest - The payment request that should be executed. The operation that is executed is dependent on which implementation of PayPalRequest is sent
        responseType - The type of the response expected
        Returns:
        the respective PayPalResponse that corresponds to the given responseType
      • communicateWithVendor

        public PayPalResponse communicateWithVendor​(@NonNull
                                                    @NonNull PayPalRequest paymentRequest)
        Specified by:
        communicateWithVendor in class com.broadleafcommerce.paymentgateway.service.AbstractExternalPaymentGatewayCall<PayPalRequest,​PayPalResponse>
      • getServiceName

        public String getServiceName()
        Specified by:
        getServiceName in interface com.broadleafcommerce.paymentgateway.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>
      • getFailureReportingThreshold

        public Integer getFailureReportingThreshold()
        Specified by:
        getFailureReportingThreshold in interface com.broadleafcommerce.paymentgateway.service.FailureCountExposable
        Specified by:
        getFailureReportingThreshold in class com.broadleafcommerce.paymentgateway.service.AbstractExternalPaymentGatewayCall<PayPalRequest,​PayPalResponse>