Developer's Guide

Mobile Payments Library Developer Guide and Reference –iOS Edition August 2012 21
Custom Objects in the Mobile Payments Library
The Mobile Payments Library includes custom objects for passing information between the
library and your application during checkout.
PayPalAddress
This object is passed to the PayPalPaymentDelegate in the AdjustAmounts method. Use
this address to update the payment amount, tax, currency, and shipping values of the payment.
Then, the buyer continues to check out with the new amounts. Use this object if you enable
dynamic amount calculation by calling the
DynamicAmountUpdate method.
Property Description
name
The name of the address.
street1
First line of the street address.
street2
Second line of the street address.
city
Name of the city.
state
Name of the state or province.
postalcode
U.S. ZIP code or other country-specific postal code.
countrycode
The 2-character country code.
country
The name of the country.
PayPalAmounts
This object is returned to the library by the AdjustAmounts method of the
PayPalPaymentDelegate. This object contains the values for the updated payment. Use this
object if you enable dynamic amount calculation by calling the
DynamicAmountUpdate
method.
Property Description
currency
Currency code of the amount. Defaults to @”USD”.
payment_amount
NSDecimalNumber * amount of the payment before tax or
shipping.
tax
NSDecimalNumber * tax amount associated with the item. If no
tax amount, can be nil.
shipping
NSDecimalNumber * shipping amount for the item. If no
shipping amount, can be nil.