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)
  • Constructor Details

  • Method Details

    • 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>
    • getProperties

      protected PayPalCheckoutApiProperties getProperties()
    • getGatewayConfiguration

      protected PayPalGatewayConfiguration getGatewayConfiguration()