Developer's Guide
Mobile Payments Library Developer Guide & Reference – Blackberry OS Edition 12
Parameter Description
address
The buyer's address that should be used when calculating adjusted tax
and shipping amounts.
currency
The currency of the payment.
amount
The current subtotal amount.
tax
The current tax amount.
shipping
The current shipping amount.
Your method must return a new Amounts object (see the “Custom Objects in the Mobile
Payments Library” section). This object contains the new currency and amounts.
public Vector<PayPalReceiverDetails> adjustAmountsAdvanced(Address
address, BigDecimal currency, Vector< PayPalReceiverDetails>
receivers);
Parameter Description
address
The buyer's address that should be used when calculating adjusted tax
and shipping amounts.
currency
The currency of the payment.
receivers
A collection of current receivers and the amounts associated with each
receiver.
Your method must return a new
Vector<
PayPalReceiverDetails
>
to update the library
with adjusted amounts for each receiver. (See the “Custom Objects in the Mobile Payments
Library” section).