PHPackages                             openbuildings/paypal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. openbuildings/paypal

ActiveLibrary[API Development](/categories/api)

openbuildings/paypal
====================

PayPal SDK for ExpressCheckout and AdaptivePayments. Supports recurring payments, simple payments, parallel payments and chained payments.

0.5.0(6y ago)29176.4k24[3 issues](https://github.com/OpenBuildings/paypal/issues)[2 PRs](https://github.com/OpenBuildings/paypal/pulls)BSD-3-ClausePHPPHP ^7.1CI failing

Since Jul 16Pushed 6y ago15 watchersCompare

[ Source](https://github.com/OpenBuildings/paypal)[ Packagist](https://packagist.org/packages/openbuildings/paypal)[ RSS](/packages/openbuildings-paypal/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (1)Versions (14)Used By (0)

**PayPal SDK for ExpressCheckout and Adaptive Payments.**

[![Build Status](https://camo.githubusercontent.com/b104ce985534f1c80e4ccadf731ca1d5ae17630634f39a648a9fffbba12e93af/68747470733a2f2f7472617669732d63692e6f72672f4f70656e4275696c64696e67732f70617970616c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/OpenBuildings/paypal)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/7ca2f49819c0e5eec8643c0633288233bd52a916dee66154249c8780217292d9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4f70656e4275696c64696e67732f70617970616c2f6261646765732f7175616c6974792d73636f72652e706e673f733d35336235623566363064363661663532386532343131303763643734363661663331623564663764)](https://scrutinizer-ci.com/g/OpenBuildings/paypal/)[![Code Coverage](https://camo.githubusercontent.com/0f06e4a5e245768b8a71391eecea70e557fc3b826fe02acf0bdd17408dfa542f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4f70656e4275696c64696e67732f70617970616c2f6261646765732f636f7665726167652e706e673f733d61393565316565663637633234376364353131346363653336633333666539636265613565363034)](https://scrutinizer-ci.com/g/OpenBuildings/paypal/)[![Latest Stable Version](https://camo.githubusercontent.com/14856f874f1b8eff6becd53c5b22a6e967f6ac04092b5020241a34a535319d53/68747470733a2f2f706f7365722e707567782e6f72672f6f70656e6275696c64696e67732f70617970616c2f762f737461626c652e706e67)](https://packagist.org/packages/openbuildings/paypal)

Features:

- recurring payments
- simple payments
- parallel payments
- chained payments

Installation
------------

[](#installation)

You could use this library in your project by running:

```
php composer.phar install

```

[Learn more about Composer](http://getcomposer.org).

Usage
-----

[](#usage)

Here is a simple usage example performing a payment with ExpressCheckout:

```
// Get a Payment instance using the ExpressCheckout driver
$payment = OpenBuildings\PayPal\Payment::instance('ExpressCheckout');

// Set the order
$payment->order(array(
    'items_price' => 10,
    'shipping_price' => 3,
    'total_price' => 13
));

// Set additional params needed for ExpressCheckout
$payment->return_url('example.com/success');
$payment->cancel_url('example.com/success');

// Send a SetExpressCheckout API call
$response = $payment->set_express_checkout();

// Finish the payment with the token and the payer id received.
$payment->do_express_checkout_payment($response['TOKEN'], $response['PAYERID']);
```

Documentation
-------------

[](#documentation)

- [Getting started](docs/getting-started.md)
- [Configuration](docs/configuration.md)
- [ExpressCheckout](docs/ExpressCheckout.md)
- [Recurring Payments](docs/recurring.md)
- [Adaptive Payments](docs/adaptive-payments.md)

Contributing
------------

[](#contributing)

Read the [Contribution guidelines](CONTRIBUTING.md).

License
-------

[](#license)

Licensed under BSD-3-Clause open-source license.

[License file](LICENSE)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~239 days

Recently: every ~575 days

Total

11

Last Release

2326d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.3.5

0.5.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/506129?v=4)[Harry Dobrev](/maintainers/hkdobrev)[@hkdobrev](https://github.com/hkdobrev)

![](https://avatars.githubusercontent.com/u/4113307?v=4)[Danail Kyosev](/maintainers/dkyosev)[@dkyosev](https://github.com/dkyosev)

![](https://avatars.githubusercontent.com/u/7592650?v=4)[Evstati Zarkov](/maintainers/EZarkov)[@EZarkov](https://github.com/EZarkov)

![](https://avatars.githubusercontent.com/u/745771?v=4)[Filip Georgiev](/maintainers/phgeorgiev)[@phgeorgiev](https://github.com/phgeorgiev)

![](https://avatars.githubusercontent.com/u/490439?v=4)[Zdravko Evstatiev](/maintainers/zedevs)[@zedevs](https://github.com/zedevs)

---

Top Contributors

[![hkdobrev](https://avatars.githubusercontent.com/u/506129?v=4)](https://github.com/hkdobrev "hkdobrev (57 commits)")[![ivank](https://avatars.githubusercontent.com/u/4976?v=4)](https://github.com/ivank "ivank (3 commits)")[![marcw](https://avatars.githubusercontent.com/u/160332?v=4)](https://github.com/marcw "marcw (1 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![stanstst](https://avatars.githubusercontent.com/u/9391542?v=4)](https://github.com/stanstst "stanstst (1 commits)")[![tumbalev](https://avatars.githubusercontent.com/u/28398671?v=4)](https://github.com/tumbalev "tumbalev (1 commits)")

---

Tags

apipaymentspaypalExpressCheckoutAdaptivePayments

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/openbuildings-paypal/health.svg)

```
[![Health](https://phpackages.com/badges/openbuildings-paypal/health.svg)](https://phpackages.com/packages/openbuildings-paypal)
```

###  Alternatives

[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60216.0M85](/packages/mollie-mollie-api-php)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.5M36](/packages/mollie-laravel-mollie)[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[transbank/transbank-sdk

Transbank SDK

62676.5k14](/packages/transbank-transbank-sdk)[mollie/magento

iDEAL, Creditcard, Bancontact/Mister Cash, SOFORT, Bank transfer, Bitcoin, PayPal &amp; paysafecard for Magento https://www.mollie.com/

407.9k](/packages/mollie-magento)[kun391/yii2-paypal

Process with Paypal

161.6k](/packages/kun391-yii2-paypal)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
