Class PayPalAgreementTokenServiceImpl

java.lang.Object
org.broadleafcommerce.vendor.paypal.service.PayPalAgreementTokenServiceImpl
All Implemented Interfaces:
PayPalAgreementTokenService

@Service("blPayPalAgreementTokenService") public class PayPalAgreementTokenServiceImpl extends Object implements PayPalAgreementTokenService
  • Field Details

    • externalCallService

      protected ExternalCallPayPalCheckoutService externalCallService
    • webProfileService

      protected PayPalWebProfileService webProfileService
    • currentOrderPaymentRequestService

      @Autowired(required=false) protected org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestService currentOrderPaymentRequestService
  • Constructor Details

    • PayPalAgreementTokenServiceImpl

      public PayPalAgreementTokenServiceImpl()
  • Method Details

    • createPayPalAgreementTokenForCurrentOrder

      public AgreementToken createPayPalAgreementTokenForCurrentOrder(boolean performCheckoutOnReturn) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      To support PayPal Reference Transactions and Billing Agreement Tokens
      Specified by:
      createPayPalAgreementTokenForCurrentOrder in interface PayPalAgreementTokenService
      Parameters:
      performCheckoutOnReturn -
      Returns:
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • constructPlan

      protected com.paypal.api.payments.Plan constructPlan(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO, boolean performCheckoutOnReturn)
    • constructPayer

      protected com.paypal.api.payments.Payer constructPayer(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
    • createAgreementToken

      protected AgreementToken createAgreementToken(AgreementToken agreementToken, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • constructAgreementDescription

      protected String constructAgreementDescription(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
    • getPaymentRequestForCurrentOrder

      public org.broadleafcommerce.common.payment.dto.PaymentRequestDTO getPaymentRequestForCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      getPaymentRequestForCurrentOrder in interface PayPalAgreementTokenService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • getPayPalBillingAgreementIdFromCurrentOrder

      public String getPayPalBillingAgreementIdFromCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      getPayPalBillingAgreementIdFromCurrentOrder in interface PayPalAgreementTokenService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • setPayPalBillingAgreementIdOnCurrentOrder

      public void setPayPalBillingAgreementIdOnCurrentOrder(String billingAgreementId) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      setPayPalBillingAgreementIdOnCurrentOrder in interface PayPalAgreementTokenService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • getPayPalAgreementTokenFromCurrentOrder

      public String getPayPalAgreementTokenFromCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      getPayPalAgreementTokenFromCurrentOrder in interface PayPalAgreementTokenService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException
    • setPayPalAgreementTokenOnCurrentOrder

      public void setPayPalAgreementTokenOnCurrentOrder(String agreementToken) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
      Specified by:
      setPayPalAgreementTokenOnCurrentOrder in interface PayPalAgreementTokenService
      Throws:
      org.broadleafcommerce.common.vendor.service.exception.PaymentException