Ready to get started?

Download a free trial of the PayPal Driver to get started:

 Download Now

Learn more:

PayPal Icon PayPal JDBC Driver

Easy-to-use PayPal client enables Java-based applications to easily consume PayPal Transactions, Orders, Sales, Invoices, etc.

How to connect to PayPal Data from IntelliJ



Integrate connectivity to PayPal data with wizards in IntelliJ.

The CData JDBC Driver for PayPal enables you to access PayPal as a JDBC data source, providing integration with rapid development tools in IDEs. This article shows how to use the data source configuration wizard to connect to PayPal data in IntelliJ.

Create a JBDC Data Source for PayPal

Follow the steps below to add the driver JAR and define connection properties required to connect to PayPal data.

  1. In the Data Sources window, right-click and then click Add Data Source -> DB Data Source.
  2. In the Data Source Properties dialog that appears, the following properties are required:

    • JDBC Driver Files: Click the button next to this menu to add the JDBC Driver file cdata.jdbc.paypal.jar, located in the installation directory.
    • JDBC Driver Class: In this menu, select cdata.jdbc.paypal.PayPalDriver from the list.
    • Database URL: Enter the connection URL in the JDBC URL property. The URL must start with jdbc:paypal: and includes connection properties separated with semicolons.

      The provider surfaces tables from two PayPal APIs. The APIs use different authentication methods.

      • The REST API uses the OAuth standard. To authenticate to the REST API, you will need to set the OAuthClientId, OAuthClientSecret, and CallbackURL properties.
      • The Classic API requires Signature API credentials. To authenticate to the Classic API, you will need to obtain an API username, password, and signature.

      See the "Getting Started" chapter of the help documentation for a guide to obtaining the necessary API credentials.

      To select the API you want to work with, you can set the Schema property to REST or SOAP. By default the SOAP schema will be used.

      For testing purposes you can set UseSandbox to true and use sandbox credentials.

      Built-in Connection String Designer

      For assistance in constructing the JDBC URL, use the connection string designer built into the PayPal JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.

      java -jar cdata.jdbc.paypal.jar

      Fill in the connection properties and copy the connection string to the clipboard.

      A typical JDBC URL is the following:

      jdbc:paypal:Schema=SOAP;Username=sandbox-facilitator_api1.test.com;Password=xyz123;Signature=zx2127;InitiateOAuth=GETANDREFRESH

Edit and Save PayPal Data

To discover schema information, right-click the data source you just created and click Refresh Tables. To query a table, right-click it and then click Open Tables Editor.