PHPackages                             drechsler-development/wordpress-paypal-client - 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. [Payment Processing](/categories/payments)
4. /
5. drechsler-development/wordpress-paypal-client

ActiveLibrary[Payment Processing](/categories/payments)

drechsler-development/wordpress-paypal-client
=============================================

A simple PayPal client for WordPress

v1.10(3mo ago)037proprietaryPHP

Since Feb 23Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/drechsler-development/wordpress-paypal-client)[ Packagist](https://packagist.org/packages/drechsler-development/wordpress-paypal-client)[ RSS](/packages/drechsler-development-wordpress-paypal-client/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (8)Versions (12)Used By (0)

\# (Wordpress) PayPal Client
============================

[](#-wordpress-paypal-client)

This PayPal Client can be used to integrate PayPal into your WordPress website. Of course it can be used for other purposes as well, but it was firstly developed with the intention to be used for a WordPress website. It is just simplify the way of the integration already provided in the official PayPal Package

Dependencies
============

[](#dependencies)

This package requires other packages as below:

- drechsler-development/class-library
- paypal/paypal-checkout-sdk

Usage
-----

[](#usage)

It can simply be used using composer as below:

```
composer require drechsler-development/wordpress-paypal-client

```

Or if you prefer a composer.json file add the project name in the require segment as below:

```
{
    "require": {
		"drechsler-development/wordpress-paypal-client": "v1.*"
	}
}

```

Create an Order
---------------

[](#create-an-order)

Assuming you have all necassary variables (and apropriate values) somewhere caught in your script already, you only need to pass it to the appropriate method(s). Required variables are:

```
    /*your payPal Client ID you will get from your PayPal developer console at https://developer.paypal.com/dashboard/ */
    $payPalClientId = ''; //put in your PayPal Client ID

    /*your PayPal Client Secret you will get from your PayPal developer console at https://developer.paypal.com/dashboard/ */
    $payPalClientSecret = ''; //put in your PayPal Client Secret

    //boolean value to define if you want to use the PayPal Sandox for testing (true) or PayPal Production (false)
    $payPalSandbox = true; // or false for production

    /* optional a reference ID that will be used for a reference for example in your ERP- or shop system */
    $referenceId = 'ABC123';
    /* Contact Details like */
    $firstName = 'John';
    $lastName = 'Doe';
    $email = 'john.doe@drechsler-development.de';
    $tel = '1234567890';
    $postCode = '12345';
    $city = 'Musterstadt';
    /* if you will pass street and number, address will become not necassary, as the Contact class method behind will concatenate the street and number with a space and will set that as the address. As well as you will pass rthe address it will be set as street and number, as long it contains a space as a divider between street and number */
    $street = 'Musterstraße';
    $number = '123';
    $address = 'Musterstraße 123'; //optional, if street and number are set, this will be ignored
    /* Items */
    $myItems[];
    /* each item should have */
    $item['name'] = 'Item Name'
    $item['quantity'] = 2;
    $item['netAmount'] = 100.00; //This is the net amount of the item (aka 'unit amount')
    $item['taxPercent'] = 19;
    $item['description'] = 'My beautiful item'; /* optional */
```

In this example I am using the file ajax.php and call it via a POST request from another script via JavaScript/jQuery or whatever you are prefer.

```

```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance82

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~77 days

Recently: every ~191 days

Total

11

Last Release

92d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8391689?v=4)[kugelschreiber](/maintainers/kugelschreiber)[@Kugelschreiber](https://github.com/Kugelschreiber)

---

Top Contributors

[![drechsler-development](https://avatars.githubusercontent.com/u/48915610?v=4)](https://github.com/drechsler-development "drechsler-development (11 commits)")

### Embed Badge

![Health badge](/badges/drechsler-development-wordpress-paypal-client/health.svg)

```
[![Health](https://phpackages.com/badges/drechsler-development-wordpress-paypal-client/health.svg)](https://phpackages.com/packages/drechsler-development-wordpress-paypal-client)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[doppar/framework

The Doppar Framework

4012.4k14](/packages/doppar-framework)[buckaroo/sdk

Buckaroo payment SDK

12233.3k15](/packages/buckaroo-sdk)

PHPackages © 2026

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