PHPackages                             cpierce/paypal-wpp - 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. cpierce/paypal-wpp

ActiveCakephp-plugin

cpierce/paypal-wpp
==================

Client library for Paypal Web Payments Pro.

3.1(4y ago)23731MITPHPPHP &gt;=5.4CI failing

Since Sep 27Pushed 1y ago6 watchersCompare

[ Source](https://github.com/cpierce/paypal-wpp)[ Packagist](https://packagist.org/packages/cpierce/paypal-wpp)[ Docs](https://github.com/cpierce/paypal-wpp)[ RSS](/packages/cpierce-paypal-wpp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (14)Used By (0)

Paypal Web Payments Pro Package
===============================

[](#paypal-web-payments-pro-package)

This package was written to interact with any PHP application, but I'll demo using CakePHP 3.x to show how to connect to it.

Composer Settings
-----------------

[](#composer-settings)

First we'll want to add the library in via the `composer.json` file. `"cpierce/paypal-wpp": "3.*"` will need to be added into your require as follows:

File: `composer.json`

```
{
    "name": "cakephp/app",
    "description": "CakePHP skeleton app",
    "homepage": "http://cakephp.org",
    "type": "project",
    "license": "MIT",
    "require": {
        "php": ">=5.5.9",
        "cakephp/cakephp": "~3.3",
        "mobiledetect/mobiledetectlib": "2.*",
        "cakephp/migrations": "~1.0",
        "cakephp/plugin-installer": "*",
        "cpierce/paypal-wpp": "3.*"
    },
    "require-dev": {
        "psy/psysh": "@stable",
        "cakephp/debug_kit": "~3.2",
        "cakephp/bake": "~1.1"
    },
    "suggest": {
        "phpunit/phpunit": "Allows automated tests to be run without system-wide install.",
        "cakephp/cakephp-codesniffer": "Allows to check the code against the coding standards used in CakePHP."
    },
    "autoload": {
        "psr-4": {
            "App\\": "src"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "App\\Test\\": "tests",
            "Cake\\Test\\": "./vendor/cakephp/cakephp/tests"
        }
    },
    "scripts": {
        "post-install-cmd": "App\\Console\\Installer::postInstall",
        "post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump"
    },
    "minimum-stability": "stable",
    "prefer-stable": true
}

```

Once you have this change saved run `composer update` and let the package download into the vendor app.

General Configuration
---------------------

[](#general-configuration)

To begin you'll need to configure your service username, password and signature. The configuration will need to look something like this:

File: `config/bootstrap.php`

```
/**
 * Paypal WPP Payload
 */
Configure::write('PaypalWPP.username', 'username_api1.domain.com');
Configure::write('PaypalWPP.password', '5SWM6YY8YSUY888');
Configure::write('PaypalWPP.signature', 'tlArzO7mr5uXMO6.H2zPIuzAFYn4irhcVyzOPeiUcocJF.H3mGr');

```

Making a transaction to PayPal WPP
----------------------------------

[](#making-a-transaction-to-paypal-wpp)

After the configuration is setup you'll want to connect to PayPal WPP using the library.

File: `src/Form/SalesForm.php`

```
