Interface PayPalPaymentService
- All Known Implementing Classes:
PayPalPaymentServiceImpl
public interface PayPalPaymentService
-
Method Summary
Modifier and TypeMethodDescriptioncom.paypal.orders.OrdercreatePayPalOrderForCurrentOrder(boolean performCheckoutOnReturn) Creates a PayPalOrderorg.broadleafcommerce.common.payment.dto.PaymentRequestDTOvoidsetPayPalOrderIdOnCurrentOrder(String orderId) voidsetPayPalPayerIdOnCurrentOrder(String payerId) voidUpdates the PayPalOrderto be in sync with the Broadleaf order.
-
Method Details
-
createPayPalOrderForCurrentOrder
com.paypal.orders.Order createPayPalOrderForCurrentOrder(boolean performCheckoutOnReturn) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException Creates a PayPalOrder- Parameters:
performCheckoutOnReturn- Indicates if we should start checkout after the user has authorized the payment- Returns:
- The new
Order - Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
updatePayPalOrderForFulfillment
void updatePayPalOrderForFulfillment() throws org.broadleafcommerce.common.vendor.service.exception.PaymentExceptionUpdates the PayPalOrderto be in sync with the Broadleaf order. This method should be used when fulfillment or pricing information changes afterOrdercreation. For creating payment usecreatePayPalOrderForCurrentOrder(boolean)- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
getPaymentRequestForCurrentOrder
org.broadleafcommerce.common.payment.dto.PaymentRequestDTO getPaymentRequestForCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
getPayPalOrderIdFromCurrentOrder
String getPayPalOrderIdFromCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
getPayPalPayerIdFromCurrentOrder
String getPayPalPayerIdFromCurrentOrder() throws org.broadleafcommerce.common.vendor.service.exception.PaymentException- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
setPayPalOrderIdOnCurrentOrder
void setPayPalOrderIdOnCurrentOrder(String orderId) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException - Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
setPayPalPayerIdOnCurrentOrder
void setPayPalPayerIdOnCurrentOrder(String payerId) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException - Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-