Advanced Features Guide

Table Of Contents
Express Checkout on Mobile Devices
Integrating Express Checkout With Your Mobile Website
2
32 April 2012 Express Checkout Advanced Features Guide
redirect as cmd=_expresscheckout-mobile. Not all features of Express Checkout are
supported on mobile websites.
Your mobile website should conform to the standards of the browser in which it runs; for
example, Safari on an iPad or Chrome on an Android phone. It must contain a page or pages to
which PayPal redirects the buyers browser when the payment flow completes or is canceled.
You specify these pages in the RETURNURL and CANCELURL fields, respectively, of your call
to SetExpressCheckout.
The following steps assume you already have a working Express Checkout integration that
you want to “port” to your mobile website. If you are providing an app, you must include the
Mobile Express Checkout Library in your app and initialize it. For information about he
Mobile Express Checkout Library, see the Mobile Express Checkout Library Developer Guide
and Reference for your device’s operating system:
iOS or Android,
To support Mobile Express Checkout integration:
1. Change the command in your redirect to the Express Checkout flow to
_expresscheckout-mobile.
If the buyer checks out on PayPal, your redirect will include:
https://www.paypal.com/cgi-bin/webscr?
cmd=_express-checkout-mobile
&token=valueFromSetExpressCheckoutResponse
If the buyer checks out on your website, also set useraction=commit:
https://www.paypal.com/cgi-bin/webscr?
cmd=_express-checkout-mobile
&useraction=commit
&token=valueFromSetExpressCheckoutResponse
NOTE: While it is not strictly required that you change the cmd value, PayPal recommends
that you make this change to improve performance.
2. Change the RETURNURL field in your call to SetExpressCheckout to the page you want
your buyer to return to on your mobile website.
RETURNURL=https://mobileWebsitePage.html
3. Change the CANCELURL field in your call to SetExpressCheckout to the page you want
your buyer to return to if they cancel out of the Express Checkout payment flow.
CANCELURL=https://mobileWebsitePage.html
4. Remove any non-supported fields from your SetExpressCheckout and
DoExpressCheckoutPayment calls. Include only fields for supported features.