Interface PayPalPaymentService
- All Known Implementing Classes:
PayPalPaymentServiceImpl
public interface PayPalPaymentService
-
Method Summary
Modifier and TypeMethodDescriptioncom.paypal.api.payments.PaymentcreatePayPalPaymentForCurrentOrder(boolean performCheckoutOnReturn) Creates a PayPal paymentvoidsetPayPalPayerIdOnCurrentOrder(String payerId) voidsetPayPalPaymentIdOnCurrentOrder(String paymentId) voidUpdates the PayPal payment to be in sync with the order.
-
Method Details
-
createPayPalPaymentForCurrentOrder
com.paypal.api.payments.Payment createPayPalPaymentForCurrentOrder(boolean performCheckoutOnReturn) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException Creates a PayPal payment- Parameters:
performCheckoutOnReturn- Indicates if we should start checkout after the user has authorized the payment- Returns:
- The new payment
- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
updatePayPalPaymentForFulfillment
void updatePayPalPaymentForFulfillment() throws org.broadleafcommerce.common.vendor.service.exception.PaymentExceptionUpdates the PayPal payment to be in sync with the order. This method should be used when fulfillment or pricing information changes after Payment creation. For creating payment usecreatePayPalPaymentForCurrentOrder(boolean)- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
-
getPayPalPaymentIdFromCurrentOrder
String getPayPalPaymentIdFromCurrentOrder() 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
-
setPayPalPaymentIdOnCurrentOrder
void setPayPalPaymentIdOnCurrentOrder(String paymentId) 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
-