Developer's Guide
Mobile Payments Library Developer Guide and Reference – Android OS Edition July 2011 23
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. Use these objects if you enable dynamic amount
calculation by calling the DynamicAmountUpdate method.
MEPAddress
This object is passed to your PaymentAdjuster class 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.
Method
Description
String getStreet1()
First line of the street address.
String getStreet2()
Second line of the street address.
String getCity()
Name of the city.
String getState()
Name of the state or province.
String
getPostalcode)()
U.S. ZIP code or other country-specific postal code.
String
getCountrycode()
The 2-character country code.
String getCountry()
The name of the country.
MEPAmounts
This object is returned to the Library by the AdjustAmounts method of your PaymentAdjuster
class. This object contains the values for the updated payment.
Property
Description
setCurrency(String currency)
(Optional) Currency code of the amount. Defaults to USD.
setPaymentAmount(String
paymentAmount)
or
setPaymentAmount(BigDecimal
paymentAmount)
(Required) Amount of the payment before tax or shipping.
setTax(String tax)
or
setTax(BigDecimal tax)
(Optional) Tax amount associated with the item.
setShipping(String shipping)
or
setShipping(BigDecimal
(Optional) Shipping amount for the item