2012

PayPal Mobile Express Checkout Library Developer Guide and Reference January 2011 7
public static void fetchDeviceReferenceTokenWithAppID(Context context,
String appID, int server, PayPalListener listener);
Parameter
Description
context
The Context from your Activity.
appID
PayPal Application ID from X.com. For the Sandbox environment, use
APP-80W284485P519543T.
server
Which PayPal servers the library uses
Allowable values are:
ENV_LIVE
ENV_SANDBOX
ENV_NONE
NOTE: The ENV_LIVE environment does not support simulators.
NOTE: The ENV_NONE environment forgoes device interrogation for
testing purposes.
listener
Your PayPalListener that receives device tokens
getCheckoutButton Method
If you place the PayPal button in your mobile application, get an instance from the Mobile
Express Checkout Library. This method returns a CheckoutButton that you place on your
mobile application screen.
public CheckoutButton getCheckoutButton(Context context, int style, int
textType);
Parameter
Description
context
The Context of your Activity.
style
Size and appearance of the PayPal button
Allowable values are:
BUTTON_152x33
BUTTON_194x37
BUTTON_278x43
BUTTON_294x45