public class PayPalPaymentFacadeImpl extends AbstractPaymentFacade implements PayPalPaymentFacade
Constructor and Description |
---|
PayPalPaymentFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
authorizePayPalPayment(CartModel cart,
java.lang.String ecToken)
Authorizes paypal payment for given cart.
|
java.lang.String |
executePayPalExpressCheckoutCreateSessionRequest(CartModel cart)
Executes paypal Set request.
|
void |
setPaymentTransactionService(PaymentTransactionService paymentTransactionService) |
void |
setPaypalRelativeCancelUrl(java.lang.String paypalRelativeCancelUrl) |
void |
setPaypalRelativeReturnUrl(java.lang.String paypalRelativeReturnUrl) |
convertToAbsoluteURL, executeRequest, getMerchantID, getMerchantService, getPaymentServiceExecutor, isTransactionInState, setMerchantService, setPaymentServiceExecutor
public boolean authorizePayPalPayment(CartModel cart, java.lang.String ecToken)
PayPalPaymentFacade
authorizePayPalPayment
in interface PayPalPaymentFacade
cart
- cartecToken
- Express Checout token which is returned from SET operationpublic java.lang.String executePayPalExpressCheckoutCreateSessionRequest(CartModel cart)
PayPalPaymentFacade
executePayPalExpressCheckoutCreateSessionRequest
in interface PayPalPaymentFacade
cart
- the shopping cart objectpublic void setPaymentTransactionService(PaymentTransactionService paymentTransactionService)
public void setPaypalRelativeReturnUrl(java.lang.String paypalRelativeReturnUrl)
public void setPaypalRelativeCancelUrl(java.lang.String paypalRelativeCancelUrl)