@Service(value="blExternalCallPayPalCheckoutService") public class ExternalCallPayPalCheckoutServiceImpl extends org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse> implements ExternalCallPayPalCheckoutService
| Modifier and Type | Field and Description |
|---|---|
protected PayPalCheckoutConfiguration |
configuration |
| Constructor and Description |
|---|
ExternalCallPayPalCheckoutServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
PayPalResponse |
call(PayPalRequest paymentRequest)
Makes a request to PayPal
|
PayPalResponse |
communicateWithVendor(PayPalRequest paymentRequest) |
com.paypal.base.rest.APIContext |
constructAPIContext(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
PayPalCheckoutConfiguration |
getConfiguration() |
Integer |
getFailureReportingThreshold() |
com.paypal.api.payments.Amount |
getPayPalAmountFromOrder(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
com.paypal.api.payments.ItemList |
getPayPalItemListFromOrder(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO,
boolean shouldPopulateShipping) |
com.paypal.api.payments.ShippingAddress |
getPayPalShippingAddress(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
String |
getServiceName() |
void |
setCommonDetailsResponse(AgreementToken response,
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO,
org.broadleafcommerce.common.money.Money amount,
String orderId,
boolean checkoutComplete) |
void |
setCommonDetailsResponse(com.paypal.api.payments.Payment response,
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
Converts a PayPal payment into a PaymentResponseDTO
|
protected PayPalCheckoutConfiguration configuration
public ExternalCallPayPalCheckoutServiceImpl()
public PayPalCheckoutConfiguration getConfiguration()
getConfiguration in interface ExternalCallPayPalCheckoutServicepublic void setCommonDetailsResponse(AgreementToken response, org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO, org.broadleafcommerce.common.money.Money amount, String orderId, boolean checkoutComplete)
setCommonDetailsResponse in interface ExternalCallPayPalCheckoutServicepublic void setCommonDetailsResponse(com.paypal.api.payments.Payment response,
org.broadleafcommerce.common.payment.dto.PaymentResponseDTO responseDTO)
ExternalCallPayPalCheckoutServicesetCommonDetailsResponse in interface ExternalCallPayPalCheckoutServiceresponse - A PayPal payment that should be used to be converted into a PaymentResponseDTOresponseDTO - The response dto that should be used to copy information from the PayPal paymentpublic com.paypal.api.payments.ShippingAddress getPayPalShippingAddress(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
getPayPalShippingAddress in interface ExternalCallPayPalCheckoutServicepublic com.paypal.api.payments.ItemList getPayPalItemListFromOrder(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO,
boolean shouldPopulateShipping)
getPayPalItemListFromOrder in interface ExternalCallPayPalCheckoutServicepublic com.paypal.api.payments.Amount getPayPalAmountFromOrder(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
getPayPalAmountFromOrder in interface ExternalCallPayPalCheckoutServicepublic String getServiceName()
getServiceName in interface org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>public PayPalResponse call(PayPalRequest paymentRequest) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
ExternalCallPayPalCheckoutServicecall in interface ExternalCallPayPalCheckoutServicepaymentRequest - The payment request that should be executed. The operation that is executed is depedent on which implementation of PayPalRequest is sentorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic PayPalResponse communicateWithVendor(PayPalRequest paymentRequest) throws Exception
communicateWithVendor in class org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>Exceptionpublic Integer getFailureReportingThreshold()
getFailureReportingThreshold in interface org.broadleafcommerce.common.payment.service.FailureCountExposablegetFailureReportingThreshold in class org.broadleafcommerce.common.payment.service.AbstractExternalPaymentGatewayCall<PayPalRequest,PayPalResponse>public com.paypal.base.rest.APIContext constructAPIContext(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
constructAPIContext in interface ExternalCallPayPalCheckoutServiceCopyright © 2025. All rights reserved.