Developer's Guide

12 August 2012 PayPal Mobile Payments Developer Guide and Reference – iOS Edition
For a complete list of languages supported by the library, please see the section “Localization
Support in the Mobile Payments Library.”
shippingEnabled Property
This property lets buyers specify shipping addresses. With this property enabled, buyers choose
from the shipping addresses in their PayPal account. The chosen shipping address is used then for
the payment. If this property is disabled, the library does not display shipping options to the
buyer. Shipping is enabled by default, so you need to enable it only if you have previously
disabled it after initializing the library.
@property (nonatomic, assign) BOOL shippingEnabled;
payPalContext Property
Use this property to resume a payment when your application closes and restarts. This lets you
avoid calling the PayPal
getPayButtonWithTarget and checkout methods, again. The usage
is to initialize the PayPal object, get the context object from wherever your application stored it,
and then call this method. In order to resume payments later, store the value of this property in the
applicationWillTerminate method of your AppDelegate class.
@property (nonatomic, retain) PayPalContext *payPalContext;
getInstance Method
This method returns the singleton PayPal object.
+(PayPal *)getInstance;
feePayer Property
Set this property to determine who pays any fees. Available values are FEEPAYER_SENDER,
FEEPAYER_PRIMARYRECEIVER, FEEPAYER_EACHRECEIVER, and
FEEPAYER_SECONDARYONLY. The default value is FEEPAYER_EACHRECEIVER.
@property (nonatomic, assign) PayPalFeePayer feePayer;
dynamicAmountUpdateEnabled Property
Setting this property to TRUE lets you recalculate the payment amount, tax, currency, and
shipping values based on the shipping address chosen by a buyer. If you call this method before
the checkout starts, the library calls the delegate's
adjustAmountsForAddress:andCurrency:andAmount:andTax:andShipping: or
adjustAmountsAdvancedForAddress:andCurrency:andReceiverAmounts:
method,
depending on the payment checkout method. The library passes the buyer’s address as a
PayPalAddress object. Implement the delegate method in the PayPalPaymentDelegate
protocol, and return the adjusted amount object(s) that contain the updated payment amount,
currency, tax, and shipping.
NOTE: If shipping is not enabled, this property is ignored.
@property (nonatomic, assign) BOOL dynamicAmountUpdateEnabled;