Developer's Guide
Mobile Payments Library Developer Guide & Reference – Blackberry OS Edition 20
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
adjustAmount
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()
String
getCountrycode()
U.S. ZIP code or other country-specific postal code.
The 2-character country code.
String getCountry()
The name of the country.
MEPAmounts
This object is returned to the library by the a
djustAmount
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(BigDecima
l paymentAmount)
setTax(BigDecimal tax)
setShipping(BigDecimal
shipping)
(Required) Amount of the payment before tax or shipping.
(Optional) Tax amount associated with the item.
(Optional) Shipping amount for the item