Developer's Guide
28 August 2012 PayPal Mobile Payments Developer Guide and Reference – iOS Edition
PayPalPaymentStatus
STATUS_COMPLETED: The payment has completed on the back end.
STATUS_CREATED: The payment has been created but not completed.
STATUS_OTHER: The payment success state is other than created or completed.
PayPalAmountErrorCode
AMOUNT_ERROR_NONE: No error occurred during dynamic amount calculation.
AMOUNT_ERROR_SERVER: A connectivity or server error occurred during dynamic amount
calculation.
AMOUNT_ERROR_OTHER: A generic error occurred during dynamic amount calculation.
PayPalInitializationStatus
STATUS_NOT_STARTED: Initialization never attempted.
STATUS_COMPLETED_SUCCESS: Initialization completed successfully.
STATUS_COMPLETED_ERROR: Initialization completed with errors. The error is displayed in
the device or simulator logs.
STATUS_INPROGRESS: Initialization in progress. Must wait until the current initialization
attempt completes before attempting to retry initialization.
Localization Support in the Mobile Payments Library
The Mobile Payments Library supports many locales. Set the locale when you initialize the
library. The default is the locale of the device. If the library does not support the device locale,
the library uses
en_US, instead.
How to Set the Language and the Region
Set the locale using the lang property. You can set this property any time after you initialize the
library. Set the
lang property before you call the getPayButtonWithTarget method so you
obtain a localized Pay with PayPal button.
Locales Supported by the Mobile Payments Library
The library supports the following locale codes:
Country or Region Supported Locale Codes
Argentina
es_AR
Brazil
pt_BR
Australia
en_AU
Belgium
en_BE nl_BE fr_BE
Canada
en_CA fr_CA
France
fr_FR en_FR