CData Python Connector for PayPal

Build 21.0.7930

Establishing a Connection

The objects available within our connector are accessible from the "cdata.paypal" module. In order to use the module's objects directly, the module must first be imported as below:

import cdata.paypal as mod

From there, the connect() method can be called from the connector object to establish a connection using an appropriate connection string, such as the below:

mod.connect("Schema=REST;InitiateOAuth=GETANDREFRESH;OAuthClientId=ClientId;OAuthClientSecret=ClientSecret; UseSandbox=true;")

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

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

  • The REST API uses the OAuth standard. To authenticate to the REST API, you will need to set the AuthScheme to OAuth, the OAuthClientId, and OAuthClientSecret properties. See Connecting to the REST API for more information.
  • The SOAP API requires Signature API credentials. To authenticate to the SOAP API, you will need to set the AuthScheme to Basic, set the Username, Password, and Signature properties. You generate these API credentials when you enable the SOAP API. See Connecting to the SOAP API for more information.

For testing purposes, set UseSandbox to true and use Sandbox credentials.

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930