@Service(value="blPayPalAgreementTokenService") public class PayPalAgreementTokenServiceImpl extends Object implements PayPalAgreementTokenService
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestService |
currentOrderPaymentRequestService |
protected ExternalCallPayPalCheckoutService |
externalCallService |
protected PayPalWebProfileService |
webProfileService |
| Constructor and Description |
|---|
PayPalAgreementTokenServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
constructAgreementDescription(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
protected com.paypal.api.payments.Payer |
constructPayer(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
protected com.paypal.api.payments.Plan |
constructPlan(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO,
boolean performCheckoutOnReturn) |
protected AgreementToken |
createAgreementToken(AgreementToken agreementToken,
org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
AgreementToken |
createPayPalAgreementTokenForCurrentOrder(boolean performCheckoutOnReturn)
To support PayPal Reference Transactions and Billing Agreement Tokens
https://developer.paypal.com/docs/limited-release/reference-transactions |
org.broadleafcommerce.common.payment.dto.PaymentRequestDTO |
getPaymentRequestForCurrentOrder() |
String |
getPayPalAgreementTokenFromCurrentOrder() |
String |
getPayPalBillingAgreementIdFromCurrentOrder() |
void |
setPayPalAgreementTokenOnCurrentOrder(String agreementToken) |
void |
setPayPalBillingAgreementIdOnCurrentOrder(String billingAgreementId) |
protected ExternalCallPayPalCheckoutService externalCallService
protected PayPalWebProfileService webProfileService
@Autowired(required=false) protected org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestService currentOrderPaymentRequestService
public AgreementToken createPayPalAgreementTokenForCurrentOrder(boolean performCheckoutOnReturn) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
https://developer.paypal.com/docs/limited-release/reference-transactionscreatePayPalAgreementTokenForCurrentOrder in interface PayPalAgreementTokenServiceperformCheckoutOnReturn - org.broadleafcommerce.common.vendor.service.exception.PaymentExceptionprotected com.paypal.api.payments.Plan constructPlan(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO,
boolean performCheckoutOnReturn)
protected com.paypal.api.payments.Payer constructPayer(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
protected AgreementToken createAgreementToken(AgreementToken agreementToken, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
org.broadleafcommerce.common.vendor.service.exception.PaymentExceptionprotected String constructAgreementDescription(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
public org.broadleafcommerce.common.payment.dto.PaymentRequestDTO getPaymentRequestForCurrentOrder()
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
getPaymentRequestForCurrentOrder in interface PayPalAgreementTokenServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic String getPayPalBillingAgreementIdFromCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
getPayPalBillingAgreementIdFromCurrentOrder in interface PayPalAgreementTokenServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic void setPayPalBillingAgreementIdOnCurrentOrder(String billingAgreementId) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
setPayPalBillingAgreementIdOnCurrentOrder in interface PayPalAgreementTokenServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic String getPayPalAgreementTokenFromCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
getPayPalAgreementTokenFromCurrentOrder in interface PayPalAgreementTokenServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic void setPayPalAgreementTokenOnCurrentOrder(String agreementToken) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
setPayPalAgreementTokenOnCurrentOrder in interface PayPalAgreementTokenServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionCopyright © 2025. All rights reserved.