2012

8 January 2011 PayPal Mobile Express Checkout Library Developer Guide and Reference
Parameter
Description
textType
Type of text that will appear on the button.
Allowable values are:
TEXT_PAY
TEXT_DONATE
getInstance Method
The library provides a singleton instance of the PayPal object. Use the getInstance method to
set and access runtime properties of the library. For example, use the isLibraryInitialized
function to determine whether your attempt to fetch a device token was successful.
public static PayPal getInstance();
The following table lists the functions of the PayPal object that you are most likely to use in your mobile
application.
Property
Description
setLanguage
Pass in the locale code for the label of the PayPal button. By default, the
library uses the locale of the device.
isLibraryInitialized
If your attempt to fetch a device token succeeded, the return value of
this property is true.
Enumerated Values in the Mobile Express Checkout Library
The enumerated values supported by methods in the library are:
PAYPAL_ENVIRONMENT
ENV_LIVE: Use the PayPal production servers to obtain device tokens. This environment
does not support simulators.
ENV_SANDBOX: Use the PayPal testing servers to obtain device tokens.
ENV_NONE: Do not use any PayPal servers to obtain device tokens.