Developer's Guide
Mobile Payments Library Developer Guide & Reference – Blackberry OS Edition 3
Table of Contents
Preface .............................................................................................................................................................. 5
Purpose ......................................................................................................................................................... 5
Scope ............................................................................................................................................................. 5
OS and Hardware Support ............................................................................................................................. 5
Revision History ............................................................................................................................................ 5
Where to Go for More Information .............................................................................................................. 6
1. PayPal Mobile Payments Library .............................................................................................................. 7
Mobile Payments Library API Reference ....................................................................................................... 7
Adding the Library Jar File and Importing Classes in Eclipse......................................................................... 7
Required Methods in the Mobile Payments Library ..................................................................................... 8
initWithAppID Method ............................................................................................................................. 8
getCheckoutButton Method ..................................................................................................................... 9
Implement the Delegate ........................................................................................................................... 9
Method Sequence ................................................................................................................................... 13
Optional Methods in the Mobile Payments Library .................................................................................... 14
getInstance Method ............................................................................................................................... 14
setLang Method ...................................................................................................................................... 14
Enable / Disable Shipping Method ......................................................................................................... 14
setFeesPayer Method ............................................................................................................................. 14
setDynamicAmountCalculationEnabled Method ................................................................................... 14
After the Payment ....................................................................................................................................... 15
Instant Payment Notification .................................................................................................................. 15
Transaction Details ................................................................................................................................. 15
Refunds ................................................................................................................................................... 15
Simple, Parallel, and Chained Payments ..................................................................................................... 16
Simple Payments..................................................................................................................................... 16
Parallel Payments ................................................................................................................................... 16
Chained Payments .................................................................................................................................. 17
Preapprovals ............................................................................................................................................... 18
How Preapprovals Work ......................................................................................................................... 18