Developer's Guide

Mobile Payments Library Developer Guide and Reference –iOS Edition August 2012 11
Parameter Description
buttonTextType:
(Optional) Determines whether the button displays “Pay with PayPal”
or “Donate with PayPal”. The default value is BUTTON_TEXT_PAY.
BUTTON_TEXT_PAY
BUTTON_TEXT_DONATE
Checkout Methods
The library provides 2 methods that launch the PayPal Checkout experience. The Checkout
method handles simple payments, which support single receivers of payments with one
transaction. The
AdvancedCheckout method handles parallel and chained payments, which
support multiple receivers of payments with one transaction.
When you place the Pay with PayPal button on your mobile screen, specify a method of your
own to call when buyers tap the button. In the method that you specify, call the PayPal checkout
method that supports your business model for payment recipients.
Both checkout methods accept a payment object, which defines different aspects of a payment. If
you provide invalid data, you receive an alert in a
UIAlertView.
The library displays itself on top of your application’s
Window object. Make sure that you do not
take control of the Window after the buyer clicks Pay with PayPal.
-(void)checkoutWithPayment:(PayPalPayment *)inPayment;
Parameter Description
inPayment:
(Required) A PayPalPayment object that contains information about
the payment. For the properties of this object type, see
“PayPalPayment.”
-(void)advancedCheckoutWithPayment:(PayPalAdvancedPayment *)inPayment;
Parameter Description
inPayment:
(Required) A PayPalAdvancedPayment object that contains
information about the payment. For the properties of this object type,
see “PayPalAdvancedPayment.”
Optional Methods in the Mobile Payments Library
lang Property
This property allows you to define the language settings that the library uses. If the property is
not set, the library retrieves the current language settings from the device.
@property (nonatomic, retain) NSString *lang;