public interface ExternalCallPayPalCheckoutService
| Modifier and Type | Method and Description |
|---|---|
PayPalResponse |
call(PayPalRequest paymentRequest)
Makes a request to PayPal
|
com.paypal.base.rest.APIContext |
constructAPIContext(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO) |
PayPalCheckoutConfiguration |
getConfiguration() |
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) |
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
|
PayPalCheckoutConfiguration getConfiguration()
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)
response - 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 paymentcom.paypal.api.payments.ShippingAddress getPayPalShippingAddress(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.Amount getPayPalAmountFromOrder(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
PayPalResponse call(PayPalRequest paymentRequest) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
paymentRequest - 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.PaymentExceptioncom.paypal.base.rest.APIContext constructAPIContext(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequestDTO)
Copyright © 2025. All rights reserved.