2012

PayPal Mobile Express Checkout Library Developer Guide and Reference January 2011 3
Contents
Preface ............................................................................................................... 4
Purpose ........................................................................................................................ 4
Scope ............................................................................................................................ 4
Revision History ............................................................................................................ 4
Where to Go for More Information ................................................................................ 4
1. PayPal Mobile Express Checkout Library ................................................. 5
Mobile Express Checkout Library API Reference ........................................................ 5
Programming Flow with the PayPal Button in Your Mobile Application ................. 5
Programming Flow with the PayPal Button on Your Mobile Website .................... 6
Methods in the Mobile Express Checkout Library ................................................. 6
Enumerated Values in the Mobile Express Checkout Library................................ 8
Localization Support in the Mobile Express Checkout Library ..................................... 9
How to Set the Language and the Region ............................................................. 9
Locales Supported by the Mobile Express Checkout Library .............................. 10
Library Support for Devices and OS versions ............................................................ 10
Adding the Mobile Express Checkout Library to Your Android Project ...................... 10
Method Sequence with the PayPal Button in Your Mobile App ................................. 11
Method Sequence with the PayPal Button on Your Mobile Webpage ....................... 12
Sample Code .............................................................................................................. 13
Fetching the Device Token .................................................................................. 13
Placing the PayPal Button in Your Mobile Application ......................................... 13
Redirecting Buyers to PayPal .............................................................................. 13
Completing the Payment ............................................................................................ 14
2. The Checkout Experience with the Mobile Express Checkout Library . 15
Express Checkout Experience ................................................................................... 15
3. Submitting Your Application to PayPal ................................................... 17