Developer's Guide
Mobile Payments Library Developer Guide & Reference – Blackberry OS Edition 14
Optional Methods in the Mobile Payments Library
getInstance Method
This method returns the singleton PayPal object.
PayPal payPal = PayPal.getInstance();
setLang Method
payPal.setLang (String localeCode);
Enable / Disable Shipping Method
This method lets buyers include display of shipping addresses in the library. With shipping
enabled, buyers can choose an address from the list available in their PayPal accounts. The
chosen shipping address is then used for the payment. Shipping is enabled by default.
payPal.setShippingEnabled(boolean isEnabled);
setFeesPayer Method
This method is valid only for Personal payments. Call this method to set who pays any fees, by
default. If you do not call this method, the receiver pays any fees by default.
payPal.setFeePaidByReceiver (boolean feePaidByReceiver);
setDynamicAmountCalculationEnabled Method
This method lets you recalculate the payment amount, tax, currency, and shipping values based
on the shipping address chosen by a buyer. If you use this method to enable dynamic amount
calculation before the checkout starts, the library will dynamically update the payment based on
logic you provide (see above).
NOTE: If shipping is not enabled, this method is ignored.
payPal.setDynamicAmountCalculationEnabled(boolean enabled);