Install the REST SDK


Important: These /v1/payments and general-purpose REST SDKs are deprecated. See our current SDK offerings, which include the /v2/checkout and Payouts use cases. For other APIs, use direct integration.

To begin working with the PayPal REST APIs, install one of the available SDKs in your preferred language. The benefit of using an SDK over a direct integration is, the SDK handles authentication for you by obtaining your OAuth 2.0 access token and the SDK automatically reflects any payment API updates.

To install the PayPal REST SDK, type this command in a Terminal window or a command prompt:

npm install paypal-rest-sdk
// Prerequisites: PHP 5.3 or above
// cURL, json & openssl extensions must be enabled

composer require "paypal/rest-api-sdk-php:*"
// System library dependancies: libssl-dev, libffi-dev

// Debian systems
apt-get install libssl-dev libffi-dev

// easy_install method
easy_install paypalrestsdk

// pip method
pip install paypalrestsdk
gem install paypal-sdk-rest
// Maven pom.xml file

// Gradle
repositories {
dependencies {
  compile 'com.paypal.sdk:rest-api-sdk:+'
// Run in NuGet package manager
// Prerequisites: .NET 4.6.1 or later; NuGet 2.2 or later
PM> Install-Package PayPal

Note: PayPal Checkout v2 is available for the Orders and Payments REST APIs. For integration instructions using v2, see the v2 server-side SDK documentation.


Additional information

SDK Repositories: Java v2 Checkout | Java | .NET v2 Checkout | .NET | Node v2 Checkout | Node | PHP v2 Checkout| PHP | Python v2 Checkout | Python | Ruby v2 Checkout| Ruby