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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestServiceprotected ExternalCallPayPalCheckoutServiceprotected PayPalWebProfileService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringconstructAgreementDescription(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) protected com.paypal.api.payments.PayerconstructPayer(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) protected com.paypal.api.payments.PlanconstructPlan(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO, boolean performCheckoutOnReturn) protected AgreementTokencreateAgreementToken(AgreementToken agreementToken, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) createPayPalAgreementTokenForCurrentOrder(boolean performCheckoutOnReturn) To support PayPal Reference Transactions and Billing Agreement Tokensorg.broadleafcommerce.common.payment.dto.PaymentRequestDTOvoidsetPayPalAgreementTokenOnCurrentOrder(String agreementToken) voidsetPayPalBillingAgreementIdOnCurrentOrder(String billingAgreementId)
-
Field Details
-
externalCallService
-
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:
createPayPalAgreementTokenForCurrentOrderin interfacePayPalAgreementTokenService- 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:
getPaymentRequestForCurrentOrderin interfacePayPalAgreementTokenService- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
getPayPalBillingAgreementIdFromCurrentOrder
public String getPayPalBillingAgreementIdFromCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException- Specified by:
getPayPalBillingAgreementIdFromCurrentOrderin interfacePayPalAgreementTokenService- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
setPayPalBillingAgreementIdOnCurrentOrder
public void setPayPalBillingAgreementIdOnCurrentOrder(String billingAgreementId) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException - Specified by:
setPayPalBillingAgreementIdOnCurrentOrderin interfacePayPalAgreementTokenService- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
getPayPalAgreementTokenFromCurrentOrder
public String getPayPalAgreementTokenFromCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException- Specified by:
getPayPalAgreementTokenFromCurrentOrderin interfacePayPalAgreementTokenService- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
setPayPalAgreementTokenOnCurrentOrder
public void setPayPalAgreementTokenOnCurrentOrder(String agreementToken) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException - Specified by:
setPayPalAgreementTokenOnCurrentOrderin interfacePayPalAgreementTokenService- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-