Interface PayPalPaymentService

All Known Implementing Classes:
PayPalPaymentServiceImpl

public interface PayPalPaymentService
  • Method Details

    • createPayPalOrderForCurrentOrder

      com.paypal.orders.Order createPayPalOrderForCurrentOrder(boolean performCheckoutOnReturn) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Creates a PayPal Order
      Parameters:
      performCheckoutOnReturn - Indicates if we should start checkout after the user has authorized the payment
      Returns:
      The new Order
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • updatePayPalOrderForFulfillment

      void updatePayPalOrderForFulfillment() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Updates the PayPal Order to be in sync with the Broadleaf order. This method should be used when fulfillment or pricing information changes after Order creation. For creating payment use createPayPalOrderForCurrentOrder(boolean)
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • getPaymentRequestForCurrentOrder

      org.broadleafcommerce.common.payment.dto.PaymentRequestDTO getPaymentRequestForCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • getPayPalOrderIdFromCurrentOrder

      String getPayPalOrderIdFromCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • getPayPalPayerIdFromCurrentOrder

      String getPayPalPayerIdFromCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • setPayPalOrderIdOnCurrentOrder

      void setPayPalOrderIdOnCurrentOrder(String orderId) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • setPayPalPayerIdOnCurrentOrder

      void setPayPalPayerIdOnCurrentOrder(String payerId) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException