Interface PayPalPaymentService

All Known Implementing Classes:
PayPalPaymentServiceImpl

public interface PayPalPaymentService
  • Method Details

    • createPayPalPaymentForCurrentOrder

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

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

      String getPayPalPaymentIdFromCurrentOrder() 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
    • setPayPalPaymentIdOnCurrentOrder

      void setPayPalPaymentIdOnCurrentOrder(String paymentId) 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