Integrating the PayPal Developer API

In this section, we will integrate the PayPal SDK into our application. The PayPal SDK has two JAR files to be included in the project. It can be downloaded from https://github.com/paypal/rest-api-sdk-java. The details of the two JAR files that are to be included in the project are as follows:

  • paypal-core-1.6.0.jar: This JAR file has all the core classes for the PayPal payment
  • rest-api-sdk-0.9.0.jar: This JAR file consists of all the classes that are required to convert it into a REST-based access

The following screenshot shows the JAR files added to the classpath of our project:

Integrating the PayPal Developer API

For the integration of the PayPal ...

Get Developing Responsive Web Applications with AJAX and jQuery now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.