com.elasticpath.domain.payment
Interface PayPalExpressPaymentGateway

All Superinterfaces:
EpDomain, PaymentGateway, java.io.Serializable, Transient
All Known Implementing Classes:
PaypalExpressPaymentGatewayImpl

public interface PayPalExpressPaymentGateway
extends PaymentGateway

Provides services for integrating with PayPal Express Payment.


Method Summary
 java.lang.String setExpressCheckout(ShoppingCart shoppingCart, java.lang.String returnUrl, java.lang.String cancelUrl)
          Start the ExpressCheckout.
 
Methods inherited from interface com.elasticpath.domain.payment.PaymentGateway
capture, getName, getPaymentType, getProperties, getSupportedCurrencies, preAuthorize, refund, reversePreAuthorization, sale, setName, setProperties, setSupportedCurrencies, voidCaptureOrCredit
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Method Detail

setExpressCheckout

java.lang.String setExpressCheckout(ShoppingCart shoppingCart,
                                    java.lang.String returnUrl,
                                    java.lang.String cancelUrl)
                                    throws EpSystemException
Start the ExpressCheckout. Redirect customer to paypal site to log in and selected fund source.

Parameters:
shoppingCart - the shopping cart
returnUrl - the url to return from paypal upon completion the payment action.
cancelUrl - the url to return to if the user decide to cancel the payment action.
Returns:
the token string.
Throws:
EpSystemException - if anything goes wrong.