Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ADempiere 3.6 Cookbook

You're reading from   ADempiere 3.6 Cookbook Over 100 recipes for extending and customizing ADempiere beyond its standard capabilities

Arrow left icon
Product type Paperback
Published in Mar 2011
Publisher
ISBN-13 9781849513388
Length 332 pages
Edition Edition
Tools
Arrow right icon
Toc

Table of Contents (16) Chapters Close

ADempiere 3.6 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
1. Preface
1. Preparing the Ground 2. ADempiere Customization Part I FREE CHAPTER 3. ADempiere Customization Part II 4. Web services 5. VirtueMart Integration 6. JasperReports with ADempiere 7. PayPal Integration 8. Equifax Integration 9. Mondrian Integration for Analysis 10. E-mail Integration with Mozilla Thunderbird

Working with PayPal APIs


PayPal provides the following types of APIs:

  • NAV: Name and Value pair based

  • SOAP: Web services API

NAV APIs are very useful for website integration with PayPal services. For back-office integration, SOAP APIs are useful. PayPal provides SDK to speed up the integration. In this recipe, we will look at the steps involved in using the Java SDK and we will use it to test an API to check the API call.

Getting ready

Make sure that the following is installed and set up:

  • Install JDK 1.6

  • Install Eclipse

How to do it...

  1. 1. Download SOAP SDK for Java from https://www.paypal.com/sdk. I have downloaded the Windows version of the SDK.

  1. 2. Extract the downloaded zipped file (to, say, c:\paypal_java_sdk).

  2. 3. Create a new Java project in Eclipse.

  3. 4. Create a PayPalInterfaceImpl.java class file and save the following code in it:

    import com.paypal.sdk.profiles.APIProfile;
    import com.paypal.sdk.profiles.ProfileFactory;
    import com.paypal.sdk.services.CallerServices;
    import com.paypal.soap...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image