Rated 5.00 out of 5 based on 7 customer ratings
(8 customer reviews)


This PayPal SDK PHP class library gives PHP developers the ability to integrate PayPal’s classic API web services with ease.  You don’t have to understand how to work with API’s.  You don’t even have to understand how to work with class libraries or SDK’s.  It’s very simple for novice and intermediate developers, but powerful enough for advanced users, too.

See our Fully Functional Integration Demo Kits


SKU: paypal-php Categories: , Tags: , ,

Product Description

PayPal PHP SDK Video Demo

PayPal Classic API

The Classic API is PayPal’s original platform which consists of a variety of NVP or SOAP web services.  The functionality provided in the Classic API is currently well ahead of what the REST API provides, and the REST API will not currently do anything that you cannot do with the Classic API.  As such, I have personally preferred to stick with the Classic API.

This PayPal PHP SDK fully supports all of the PayPal Classic API calls that are available.

Simplified Usage

The underlying class library that drives this PayPal PHP SDK is entirely object-oriented and fully extendable for advanced developers.  However, you do not need to understand how to work with objects and program in that manner in order to use this SDK.

The library comes complete with fully functional samples for the majority of the PayPal API calls that are available, and it also has empty template files for every call ready to go.  All you have to do is open the template file with the name of the API you would like to call, fill out the PHP array parameter values that are prepared for you with your application’s data (ie. session variables, general PHP variables, database values, etc.) and it will handle the rest.

The results of the library are provided in an easy to read PHP array that includes all of the original request data sent to PayPal, the individual response fields returned from PayPal, and a copy of the raw request and response data as well for troubleshooting purposes.

You can have any PayPal API call you need running within minutes!

PayPal GetBalance Usage Sample

// Include required library files.

// Create PayPal object.
$PayPalConfig = array(
					'Sandbox' => $sandbox,
					'APIUsername' => $api_username,
					'APIPassword' => $api_password,
					'APISignature' => $api_signature, 
					'PrintHeaders' => $print_headers,
                    'LogResults' => $log_results,
                    'LogPath' => $log_path,

$PayPal = new angelleye\PayPal\PayPal($PayPalConfig);

// Prepare request arrays
$GBFields = array('returnallcurrencies' => '');
$PayPalRequestData = array('GBFields'=>$GBFields);

// Pass data into class and load the response into $PayPalResult
$PayPalResult = $PayPal->GetBalance($PayPalRequestData);

// Write the contents of the response array to the screen for demo purposes.
echo '

<pre />';



Fully Functional Integration Demo Kits

The library does include functional samples of many of the supported API calls, but they are just the individual calls themselves.

Our demo kits provide a complete shopping cart checkout experience fully integrated with our PayPal PHP SDK.  They also include videos that walk you through the whole process.

This will get you familiar with the general PayPal class usage very quickly, and it will also give you good experience with Express Checkout, Payments Pro, Adaptive Payments, etc. as we make more demo kits available.

See our PayPal API PHP Integration Demo Kits

8 reviews for PayPal SDK PHP

5 star
4 star
3 star
2 star
1 star
  1. Rated 5 out of 5


    Hi! Im using the library, and it’s great! Easy to implement (with Composer) and use, but if anyone can help me with an error I’m getting, that would be great. In Adaptive Payments there is one variable that I can’t find in the REST section of PayPal site, the APPLICATION ID of my application. Anyone knows where is it? Thanks!

    [0] => Array
    [Receiver] =>
    [Category] => Application
    [Domain] => PLATFORM
    [ErrorID] => 560029
    [ExceptionID] =>
    [Message] => The required X-PAYPAL-APPLICATION-ID header is missing from the HTTP request
    [Parameter] => X-PAYPAL-APPLICATION-ID
    [Severity] => Error
    [Subdomain] => Application


    • Andrew Angell

      Hi David,

      Adaptive Payments is no longer available for new applications. The Application ID would be provided after you apply and get approved for your app. They are not approving any new apps, though. As such, you’re going to need to use a different API. What is your goal with Adaptive?

  2. Rated 5 out of 5


    I’m Laravel developer and this lib help me a lot. Can I use your lib to build a Laravel package?
    Thank you!

    • Andrew Angell

      Yes, of course! The library works well in Laravel in general via Composer, but if you want to build Laravel specific packages with it that would be great!

  3. Aether Studios

    This library was a life saver, the PayPal documentation is confusing at best for new developers. Your library provides an easy to understand workflow for anyone to use. You should have a way to donate for the library as I feel you deserve something for putting together something so easy to use.

    • Andrew Angell

      I’m glad it worked out nicely for you. You may certainly buy me a beer (or a few) if you’d like. 🙂

  4. Rated 5 out of 5


    A great library! Helped me out a lot as I am still a beginner and Andrew K. Angell was great with helping me out. Plenty of documentation, once you get the hang of all the variables it really does make it simple. There are samples and templates for everything! Just makes life a lot easier.

  5. Rated 5 out of 5


    The best PHP library for PayPal out there. So easy, even for beginners!

  6. Rated 5 out of 5


    Thank you for providing your php class for PayPal! I have used your class in countless projects and I’m glad to see you are keeping it up to date. I can’t wait to see it packaged for composer.

  7. Rated 5 out of 5

    Paul Le

    I’m a wordpress developer and this library help me a lot in building plugins without worry about the paypal payment api. Really great. Thanks.

  8. Rated 5 out of 5

    Tom Jenson

    I was processing credit cards on my site in a matter of minutes with this thing. Great work! Thanks a bunch!

Add a review

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

AngellEYE PayPal Newsletter Signup

Subscribe To Our Newsletter

Join our list for the latest promotions, news, and updates from AngellEYE and PayPal!

You have Successfully Subscribed!

Pin It on Pinterest