diff --git a/composer.json b/composer.json index 7d3bdd87d..fe6cf628e 100644 --- a/composer.json +++ b/composer.json @@ -1,34 +1,37 @@ { "name": "wwbn/avideo", "description": "Audio Video Platform", "type": "project", "config": { "vendor-dir": "objects", "platform": { "php": "5.6.0" } }, "require": { "php": ">=5.6.0", "ext-curl": "*", "ext-json": "*", "chrisjean/php-ico": "^1.0", "ezyang/htmlpurifier": "^4.13", "google/apiclient": "^2.1.2", "google/apiclient-services": "^0.156", "google/auth": "^1.14.3", "guzzlehttp/guzzle": "^6.5", "guzzlehttp/psr7": "^1.7", "hybridauth/hybridauth": "^3.3", "james-heinrich/getid3": "^1.9", "monolog/monolog": "^1.17", "phpmailer/phpmailer": "^6.2", "psr/cache": "^1.0", "psr/http-message": "^1.0", "cboden/ratchet": "^0.4.3", "ratchet/pawl": "^0.3.5", "singpolyma/openpgp-php": "^0.4.0", "aws/aws-sdk-php": "^3.180", - "gliterd/backblaze-b2": "^1.1" + "gliterd/backblaze-b2": "^1.1", + "paypal/rest-api-sdk-php": "*", + "paypal/paypal-payouts-sdk": "^1.0", + "paypal/paypal-checkout-sdk": "^1.0" } } diff --git a/composer.lock b/composer.lock index b350f52d1..953c3157a 100644 --- a/composer.lock +++ b/composer.lock @@ -1,2691 +1,2893 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "71a7dd1f78deda9da9b9eaea3d488d75", + "content-hash": "985d8fef4f8a9b27e934c0ea35300d7d", "packages": [ { "name": "aws/aws-sdk-php", "version": "3.185.2", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", "reference": "0e6ece3f9c4ab26bb20183c697fd36e1d55c1053" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/0e6ece3f9c4ab26bb20183c697fd36e1d55c1053", "reference": "0e6ece3f9c4ab26bb20183c697fd36e1d55c1053", "shasum": "" }, "require": { "ext-json": "*", "ext-pcre": "*", "ext-simplexml": "*", "guzzlehttp/guzzle": "^5.3.3|^6.2.1|^7.0", "guzzlehttp/promises": "^1.4.0", "guzzlehttp/psr7": "^1.7.0", "mtdowling/jmespath.php": "^2.6", "php": ">=5.5" }, "require-dev": { "andrewsville/php-token-reflection": "^1.4", "aws/aws-php-sns-message-validator": "~1.0", "behat/behat": "~3.0", "doctrine/cache": "~1.4", "ext-dom": "*", "ext-openssl": "*", "ext-pcntl": "*", "ext-sockets": "*", "nette/neon": "^2.3", "paragonie/random_compat": ">= 2", "phpunit/phpunit": "^4.8.35|^5.4.3", "psr/cache": "^1.0", "psr/simple-cache": "^1.0", "sebastian/comparator": "^1.2.3" }, "suggest": { "aws/aws-php-sns-message-validator": "To validate incoming SNS notifications", "doctrine/cache": "To use the DoctrineCacheAdapter", "ext-curl": "To send requests using cURL", "ext-openssl": "Allows working with CloudFront private distributions and verifying received SNS messages", "ext-sockets": "To use client-side monitoring" }, "type": "library", "extra": { "branch-alias": { "dev-master": "3.0-dev" } }, "autoload": { "psr-4": { "Aws\\": "src/" }, "files": [ "src/functions.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "Apache-2.0" ], "authors": [ { "name": "Amazon Web Services", "homepage": "http://aws.amazon.com" } ], "description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project", "homepage": "http://aws.amazon.com/sdkforphp", "keywords": [ "amazon", "aws", "cloud", "dynamodb", "ec2", "glacier", "s3", "sdk" ], "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", "source": "https://github.com/aws/aws-sdk-php/tree/3.185.2" }, "time": "2021-06-25T18:19:14+00:00" }, { "name": "cboden/ratchet", "version": "v0.4.3", "source": { "type": "git", "url": "https://github.com/ratchetphp/Ratchet.git", "reference": "466a0ecc83209c75b76645eb823401b5c52e5f21" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/ratchetphp/Ratchet/zipball/466a0ecc83209c75b76645eb823401b5c52e5f21", "reference": "466a0ecc83209c75b76645eb823401b5c52e5f21", "shasum": "" }, "require": { "guzzlehttp/psr7": "^1.0", "php": ">=5.4.2", "ratchet/rfc6455": "^0.3", "react/socket": "^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5", "symfony/http-foundation": "^2.6|^3.0|^4.0|^5.0", "symfony/routing": "^2.6|^3.0|^4.0|^5.0" }, "require-dev": { "phpunit/phpunit": "~4.8" }, "type": "library", "autoload": { "psr-4": { "Ratchet\\": "src/Ratchet" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Chris Boden", "email": "cboden@gmail.com", "role": "Developer" }, { "name": "Matt Bonneau", "role": "Developer" } ], "description": "PHP WebSocket library", "homepage": "http://socketo.me", "keywords": [ "Ratchet", "WebSockets", "server", "sockets", "websocket" ], "support": { "chat": "https://gitter.im/reactphp/reactphp", "issues": "https://github.com/ratchetphp/Ratchet/issues", "source": "https://github.com/ratchetphp/Ratchet/tree/master" }, "time": "2020-07-07T15:50:14+00:00" }, { "name": "chrisjean/php-ico", "version": "1.0.4", "source": { "type": "git", "url": "https://github.com/chrisbliss18/php-ico.git", "reference": "ccd5c0d56554f3ddcd7a823e695be83e0d1e43b6" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/chrisbliss18/php-ico/zipball/ccd5c0d56554f3ddcd7a823e695be83e0d1e43b6", "reference": "ccd5c0d56554f3ddcd7a823e695be83e0d1e43b6", "shasum": "" }, "require": { "ext-gd": "*", "php": ">=5.2.4" }, "type": "library", "autoload": { "classmap": [ "class-php-ico.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0+" ], "authors": [ { "name": "Chris Jean", "homepage": "https://chrisjean.com", "role": "Developer" } ], "description": "An easy-to-use library to generate valid ICO files.", "homepage": "https://github.com/chrisbliss18/php-ico", "keywords": [ "favicon", "ico" ], "support": { "issues": "https://github.com/chrisbliss18/php-ico/issues", "source": "https://github.com/chrisbliss18/php-ico" }, "time": "2016-09-27T22:00:56+00:00" }, { "name": "evenement/evenement", "version": "v2.1.0", "source": { "type": "git", "url": "https://github.com/igorw/evenement.git", "reference": "6ba9a777870ab49f417e703229d53931ed40fd7a" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/igorw/evenement/zipball/6ba9a777870ab49f417e703229d53931ed40fd7a", "reference": "6ba9a777870ab49f417e703229d53931ed40fd7a", "shasum": "" }, "require": { "php": ">=5.4.0" }, "require-dev": { "phpunit/phpunit": "^6.0||^5.7||^4.8.35" }, "type": "library", "extra": { "branch-alias": { "dev-master": "2.0-dev" } }, "autoload": { "psr-0": { "Evenement": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Igor Wiedler", "email": "igor@wiedler.ch" } ], "description": "Événement is a very simple event dispatching library for PHP", "keywords": [ "event-dispatcher", "event-emitter" ], "support": { "issues": "https://github.com/igorw/evenement/issues", "source": "https://github.com/igorw/evenement/tree/master" }, "time": "2017-07-17T17:39:19+00:00" }, { "name": "ezyang/htmlpurifier", "version": "v4.13.0", "source": { "type": "git", "url": "https://github.com/ezyang/htmlpurifier.git", "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/08e27c97e4c6ed02f37c5b2b20488046c8d90d75", "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75", "shasum": "" }, "require": { "php": ">=5.2" }, "require-dev": { "simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd" }, "type": "library", "autoload": { "psr-0": { "HTMLPurifier": "library/" }, "files": [ "library/HTMLPurifier.composer.php" ], "exclude-from-classmap": [ "/library/HTMLPurifier/Language/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPL-2.1-or-later" ], "authors": [ { "name": "Edward Z. Yang", "email": "admin@htmlpurifier.org", "homepage": "http://ezyang.com" } ], "description": "Standards compliant HTML filter written in PHP", "homepage": "http://htmlpurifier.org/", "keywords": [ "html" ], "support": { "issues": "https://github.com/ezyang/htmlpurifier/issues", "source": "https://github.com/ezyang/htmlpurifier/tree/master" }, "time": "2020-06-29T00:56:53+00:00" }, { "name": "firebase/php-jwt", "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", "reference": "d2113d9b2e0e349796e72d2a63cf9319100382d2" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/firebase/php-jwt/zipball/d2113d9b2e0e349796e72d2a63cf9319100382d2", "reference": "d2113d9b2e0e349796e72d2a63cf9319100382d2", "shasum": "" }, "require": { "php": ">=5.3.0" }, "require-dev": { "phpunit/phpunit": ">=4.8 <=9" }, "suggest": { "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" }, "type": "library", "autoload": { "psr-4": { "Firebase\\JWT\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "BSD-3-Clause" ], "authors": [ { "name": "Neuman Vong", "email": "neuman+pear@twilio.com", "role": "Developer" }, { "name": "Anant Narayanan", "email": "anant@php.net", "role": "Developer" } ], "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", "homepage": "https://github.com/firebase/php-jwt", "keywords": [ "jwt", "php" ], "support": { "issues": "https://github.com/firebase/php-jwt/issues", "source": "https://github.com/firebase/php-jwt/tree/v5.4.0" }, "time": "2021-06-23T19:00:23+00:00" }, { "name": "gliterd/backblaze-b2", "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/gliterd/backblaze-b2.git", "reference": "1fa0fa0f03cced94cf634c441604cb024826db6e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/gliterd/backblaze-b2/zipball/1fa0fa0f03cced94cf634c441604cb024826db6e", "reference": "1fa0fa0f03cced94cf634c441604cb024826db6e", "shasum": "" }, "require": { "guzzlehttp/guzzle": "^6.1", "php": ">=5.5.0" }, "require-dev": { "phpunit/phpunit": "4.8.*", "scrutinizer/ocular": "~1.1", "squizlabs/php_codesniffer": "~2.3" }, "type": "library", "autoload": { "psr-4": { "BackblazeB2\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Ramesh Mhetre", "email": "mhetreramesh@gmail.com", "homepage": "https://gliterd.com", "role": "Developer" } ], "description": "PHP SDK for working with backblaze B2 cloud storage.", "homepage": "https://github.com/gliterd/b2-sdk-php", "keywords": [ "b2", "backblaze", "backup", "cloud", "cloud-storage", "filesystem", "storage" ], "support": { "issues": "https://github.com/gliterd/backblaze-b2/issues", "source": "https://github.com/gliterd/backblaze-b2/tree/1.1.1" }, "time": "2018-12-29T10:31:19+00:00" }, { "name": "google/apiclient", "version": "v2.9.2", "source": { "type": "git", "url": "https://github.com/googleapis/google-api-php-client.git", "reference": "e9ef4c26a044b8d39a46bcf296be795fe24a1849" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/googleapis/google-api-php-client/zipball/e9ef4c26a044b8d39a46bcf296be795fe24a1849", "reference": "e9ef4c26a044b8d39a46bcf296be795fe24a1849", "shasum": "" }, "require": { "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", "google/apiclient-services": "~0.13", "google/auth": "^1.10", "guzzlehttp/guzzle": "~5.3.3||~6.0||~7.0", "guzzlehttp/psr7": "^1.2", "monolog/monolog": "^1.17|^2.0", "php": "^5.6|^7.0|^8.0", "phpseclib/phpseclib": "~2.0||^3.0.2" }, "require-dev": { "cache/filesystem-adapter": "^0.3.2|^1.1", "composer/composer": "^1.10.22", "dealerdirect/phpcodesniffer-composer-installer": "^0.7", "phpcompatibility/php-compatibility": "^9.2", "phpunit/phpunit": "^5.7||^8.5.13", "squizlabs/php_codesniffer": "~2.3", "symfony/css-selector": "~2.1", "symfony/dom-crawler": "~2.1" }, "suggest": { "cache/filesystem-adapter": "For caching certs and tokens (using Google\\Client::setCache)" }, "type": "library", "extra": { "branch-alias": { "dev-master": "2.x-dev" } }, "autoload": { "psr-4": { "Google\\": "src/" }, "files": [ "src/aliases.php" ], "classmap": [ "src/aliases.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "Apache-2.0" ], "description": "Client library for Google APIs", "homepage": "http://developers.google.com/api-client-library/php", "keywords": [ "google" ], "support": { "issues": "https://github.com/googleapis/google-api-php-client/issues", "source": "https://github.com/googleapis/google-api-php-client/tree/v2.9.2" }, "time": "2021-06-09T22:15:08+00:00" }, { "name": "google/apiclient-services", "version": "v0.156", "source": { "type": "git", "url": "https://github.com/googleapis/google-api-php-client-services.git", "reference": "2f5e54fdef034f856208328126bddd8376dae4b3" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/2f5e54fdef034f856208328126bddd8376dae4b3", "reference": "2f5e54fdef034f856208328126bddd8376dae4b3", "shasum": "" }, "require": { "php": ">=5.4" }, "require-dev": { "phpunit/phpunit": "^4.8|^5" }, "type": "library", "autoload": { "psr-0": { "Google_Service_": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "Apache-2.0" ], "description": "Client library for Google APIs", "homepage": "http://developers.google.com/api-client-library/php", "keywords": [ "google" ], "support": { "issues": "https://github.com/googleapis/google-api-php-client-services/issues", "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.156" }, "time": "2020-11-30T20:03:55+00:00" }, { "name": "google/auth", "version": "v1.16.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-auth-library-php.git", "reference": "c747738d2dd450f541f09f26510198fbedd1c8a0" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/c747738d2dd450f541f09f26510198fbedd1c8a0", "reference": "c747738d2dd450f541f09f26510198fbedd1c8a0", "shasum": "" }, "require": { "firebase/php-jwt": "~2.0|~3.0|~4.0|~5.0", "guzzlehttp/guzzle": "^5.3.1|^6.2.1|^7.0", "guzzlehttp/psr7": "^1.2", "php": ">=5.4", "psr/cache": "^1.0|^2.0", "psr/http-message": "^1.0" }, "require-dev": { "guzzlehttp/promises": "0.1.1|^1.3", "kelvinmo/simplejwt": "^0.2.5|^0.5.1", "phpseclib/phpseclib": "^2.0.31", "phpunit/phpunit": "^4.8.36|^5.7", "sebastian/comparator": ">=1.2.3", "squizlabs/php_codesniffer": "^3.5" }, "suggest": { "phpseclib/phpseclib": "May be used in place of OpenSSL for signing strings or for token management. Please require version ^2." }, "type": "library", "autoload": { "psr-4": { "Google\\Auth\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "Apache-2.0" ], "description": "Google Auth Library for PHP", "homepage": "http://github.com/google/google-auth-library-php", "keywords": [ "Authentication", "google", "oauth2" ], "support": { "docs": "https://googleapis.github.io/google-auth-library-php/master/", "issues": "https://github.com/googleapis/google-auth-library-php/issues", "source": "https://github.com/googleapis/google-auth-library-php/tree/v1.16.0" }, "time": "2021-06-22T18:06:03+00:00" }, { "name": "guzzlehttp/guzzle", "version": "6.5.5", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/guzzle/guzzle/zipball/9d4290de1cfd701f38099ef7e183b64b4b7b0c5e", "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e", "shasum": "" }, "require": { "ext-json": "*", "guzzlehttp/promises": "^1.0", "guzzlehttp/psr7": "^1.6.1", "php": ">=5.5", "symfony/polyfill-intl-idn": "^1.17.0" }, "require-dev": { "ext-curl": "*", "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", "psr/log": "^1.1" }, "suggest": { "psr/log": "Required for using the Log middleware" }, "type": "library", "extra": { "branch-alias": { "dev-master": "6.5-dev" } }, "autoload": { "psr-4": { "GuzzleHttp\\": "src/" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" } ], "description": "Guzzle is a PHP HTTP client library", "homepage": "http://guzzlephp.org/", "keywords": [ "client", "curl", "framework", "http", "http client", "rest", "web service" ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", "source": "https://github.com/guzzle/guzzle/tree/6.5" }, "time": "2020-06-16T21:01:06+00:00" }, { "name": "guzzlehttp/promises", "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/guzzle/promises/zipball/8e7d04f1f6450fef59366c399cfad4b9383aa30d", "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d", "shasum": "" }, "require": { "php": ">=5.5" }, "require-dev": { "symfony/phpunit-bridge": "^4.4 || ^5.1" }, "type": "library", "extra": { "branch-alias": { "dev-master": "1.4-dev" } }, "autoload": { "psr-4": { "GuzzleHttp\\Promise\\": "src/" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" } ], "description": "Guzzle promises library", "keywords": [ "promise" ], "support": { "issues": "https://github.com/guzzle/promises/issues", "source": "https://github.com/guzzle/promises/tree/1.4.1" }, "time": "2021-03-07T09:25:29+00:00" }, { "name": "guzzlehttp/psr7", "version": "1.8.2", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", "reference": "dc960a912984efb74d0a90222870c72c87f10c91" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/guzzle/psr7/zipball/dc960a912984efb74d0a90222870c72c87f10c91", "reference": "dc960a912984efb74d0a90222870c72c87f10c91", "shasum": "" }, "require": { "php": ">=5.4.0", "psr/http-message": "~1.0", "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" }, "provide": { "psr/http-message-implementation": "1.0" }, "require-dev": { "ext-zlib": "*", "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" }, "type": "library", "extra": { "branch-alias": { "dev-master": "1.7-dev" } }, "autoload": { "psr-4": { "GuzzleHttp\\Psr7\\": "src/" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" }, { "name": "Tobias Schultze", "homepage": "https://github.com/Tobion" } ], "description": "PSR-7 message implementation that also provides common utility methods", "keywords": [ "http", "message", "psr-7", "request", "response", "stream", "uri", "url" ], "support": { "issues": "https://github.com/guzzle/psr7/issues", "source": "https://github.com/guzzle/psr7/tree/1.8.2" }, "time": "2021-04-26T09:17:50+00:00" }, { "name": "hybridauth/hybridauth", "version": "3.7.1", "source": { "type": "git", "url": "https://github.com/hybridauth/hybridauth.git", "reference": "0ec1b8cb8b230aae739422c5e42bc5733b3a7316" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/hybridauth/hybridauth/zipball/0ec1b8cb8b230aae739422c5e42bc5733b3a7316", "reference": "0ec1b8cb8b230aae739422c5e42bc5733b3a7316", "shasum": "" }, "require": { "php": "^5.4 || ^7.0 || ^8.0" }, "require-dev": { "ext-curl": "*", "phpunit/phpunit": "^4.8.35 || ^6.5 || ^8.0" }, "suggest": { "firebase/php-jwt": "Needed to support Apple provider", "phpseclib/phpseclib": "Needed to support Apple provider" }, "type": "library", "autoload": { "psr-4": { "Hybridauth\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Miled", "email": "hybridauth@gmail.com" } ], "description": "PHP Social Authentication Library", "homepage": "https://hybridauth.github.io", "keywords": [ "Authentication", "OpenId", "api", "apple", "authorization", "facebook", "google", "oauth", "social", "twitter" ], "support": { "gitter": "https://gitter.im/hybridauth/hybridauth", "issues": "https://github.com/hybridauth/hybridauth/issues", "source": "https://github.com/hybridauth/hybridauth/tree/3.7.1" }, "time": "2021-03-13T17:35:33+00:00" }, { "name": "james-heinrich/getid3", "version": "v1.9.20", "source": { "type": "git", "url": "https://github.com/JamesHeinrich/getID3.git", "reference": "3c15e353b9bb1252201c73394bb8390b573a751d" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/JamesHeinrich/getID3/zipball/3c15e353b9bb1252201c73394bb8390b573a751d", "reference": "3c15e353b9bb1252201c73394bb8390b573a751d", "shasum": "" }, "require": { "php": ">=5.3.0" }, "require-dev": { "jakub-onderka/php-parallel-lint": "^0.9 || ^1.0" }, "suggest": { "ext-SimpleXML": "SimpleXML extension is required to analyze RIFF/WAV/BWF audio files (also requires `ext-libxml`).", "ext-com_dotnet": "COM extension is required when loading files larger than 2GB on Windows.", "ext-ctype": "ctype extension is required when loading files larger than 2GB on 32-bit PHP (also on 64-bit PHP on Windows) or executing `getid3_lib::CopyTagsToComments`.", "ext-dba": "DBA extension is required to use the DBA database as a cache storage.", "ext-exif": "EXIF extension is required for graphic modules.", "ext-iconv": "iconv extension is required to work with different character sets (when `ext-mbstring` is not available).", "ext-json": "JSON extension is required to analyze Apple Quicktime videos.", "ext-libxml": "libxml extension is required to analyze RIFF/WAV/BWF audio files.", "ext-mbstring": "mbstring extension is required to work with different character sets.", "ext-mysql": "MySQL extension is required to use the MySQL database as a cache storage (deprecated in PHP 5.5, removed in PHP >= 7.0, use `ext-mysqli` instead).", "ext-mysqli": "MySQLi extension is required to use the MySQL database as a cache storage.", "ext-rar": "RAR extension is required for RAR archive module.", "ext-sqlite3": "SQLite3 extension is required to use the SQLite3 database as a cache storage.", "ext-xml": "XML extension is required for graphic modules to analyze the XML metadata.", "ext-zlib": "Zlib extension is required for archive modules and compressed metadata." }, "type": "library", "extra": { "branch-alias": { "dev-master": "1.9.x-dev" } }, "autoload": { "classmap": [ "getid3/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-1.0-or-later", "LGPL-3.0-only", "MPL-2.0" ], "description": "PHP script that extracts useful information from popular multimedia file formats", "homepage": "https://www.getid3.org/", "keywords": [ "codecs", "php", "tags" ], "support": { "issues": "https://github.com/JamesHeinrich/getID3/issues", "source": "https://github.com/JamesHeinrich/getID3/tree/master" }, "time": "2020-06-30T18:43:34+00:00" }, { "name": "monolog/monolog", "version": "1.26.1", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", "reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c6b00f05152ae2c9b04a448f99c7590beb6042f5", "reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5", "shasum": "" }, "require": { "php": ">=5.3.0", "psr/log": "~1.0" }, "provide": { "psr/log-implementation": "1.0.0" }, "require-dev": { "aws/aws-sdk-php": "^2.4.9 || ^3.0", "doctrine/couchdb": "~1.0@dev", "graylog2/gelf-php": "~1.0", "php-amqplib/php-amqplib": "~2.4", "php-console/php-console": "^3.1.3", "phpstan/phpstan": "^0.12.59", "phpunit/phpunit": "~4.5", "ruflin/elastica": ">=0.90 <3.0", "sentry/sentry": "^0.13", "swiftmailer/swiftmailer": "^5.3|^6.0" }, "suggest": { "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", "doctrine/couchdb": "Allow sending log messages to a CouchDB server", "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", "ext-mongo": "Allow sending log messages to a MongoDB server", "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", "php-console/php-console": "Allow sending log messages to Google Chrome", "rollbar/rollbar": "Allow sending log messages to Rollbar", "ruflin/elastica": "Allow sending log messages to an Elastic Search server", "sentry/sentry": "Allow sending log messages to a Sentry server" }, "type": "library", "autoload": { "psr-4": { "Monolog\\": "src/Monolog" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Jordi Boggiano", "email": "j.boggiano@seld.be", "homepage": "http://seld.be" } ], "description": "Sends your logs to files, sockets, inboxes, databases and various web services", "homepage": "http://github.com/Seldaek/monolog", "keywords": [ "log", "logging", "psr-3" ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", "source": "https://github.com/Seldaek/monolog/tree/1.26.1" }, "funding": [ { "url": "https://github.com/Seldaek", "type": "github" }, { "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", "type": "tidelift" } ], "time": "2021-05-28T08:32:12+00:00" }, { "name": "mtdowling/jmespath.php", "version": "2.6.1", "source": { "type": "git", "url": "https://github.com/jmespath/jmespath.php.git", "reference": "9b87907a81b87bc76d19a7fb2d61e61486ee9edb" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/jmespath/jmespath.php/zipball/9b87907a81b87bc76d19a7fb2d61e61486ee9edb", "reference": "9b87907a81b87bc76d19a7fb2d61e61486ee9edb", "shasum": "" }, "require": { "php": "^5.4 || ^7.0 || ^8.0", "symfony/polyfill-mbstring": "^1.17" }, "require-dev": { "composer/xdebug-handler": "^1.4 || ^2.0", "phpunit/phpunit": "^4.8.36 || ^7.5.15" }, "bin": [ "bin/jp.php" ], "type": "library", "extra": { "branch-alias": { "dev-master": "2.6-dev" } }, "autoload": { "psr-4": { "JmesPath\\": "src/" }, "files": [ "src/JmesPath.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" } ], "description": "Declaratively specify how to extract elements from a JSON document", "keywords": [ "json", "jsonpath" ], "support": { "issues": "https://github.com/jmespath/jmespath.php/issues", "source": "https://github.com/jmespath/jmespath.php/tree/2.6.1" }, "time": "2021-06-14T00:11:39+00:00" }, { "name": "paragonie/random_compat", "version": "v2.0.20", "source": { "type": "git", "url": "https://github.com/paragonie/random_compat.git", "reference": "0f1f60250fccffeaf5dda91eea1c018aed1adc2a" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/paragonie/random_compat/zipball/0f1f60250fccffeaf5dda91eea1c018aed1adc2a", "reference": "0f1f60250fccffeaf5dda91eea1c018aed1adc2a", "shasum": "" }, "require": { "php": ">=5.2.0" }, "require-dev": { "phpunit/phpunit": "4.*|5.*" }, "suggest": { "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." }, "type": "library", "autoload": { "files": [ "lib/random.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Paragon Initiative Enterprises", "email": "security@paragonie.com", "homepage": "https://paragonie.com" } ], "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", "keywords": [ "csprng", "polyfill", "pseudorandom", "random" ], "support": { "email": "info@paragonie.com", "issues": "https://github.com/paragonie/random_compat/issues", "source": "https://github.com/paragonie/random_compat" }, "time": "2021-04-17T09:33:01+00:00" }, + { + "name": "paypal/paypal-checkout-sdk", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/paypal/Checkout-PHP-SDK.git", + "reference": "ed6a55075448308b87a8b59dcb7fedf04a048cb1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paypal/Checkout-PHP-SDK/zipball/ed6a55075448308b87a8b59dcb7fedf04a048cb1", + "reference": "ed6a55075448308b87a8b59dcb7fedf04a048cb1", + "shasum": "" + }, + "require": { + "paypal/paypalhttp": "1.0.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "PayPalCheckoutSdk\\": "lib/PayPalCheckoutSdk", + "Sample\\": "samples/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "https://github.com/paypal/Checkout-PHP-SDK/blob/master/LICENSE" + ], + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/Checkout-PHP-SDK/contributors" + } + ], + "description": "PayPal's PHP SDK for Checkout REST APIs", + "homepage": "http://github.com/paypal/Checkout-PHP-SDK/", + "keywords": [ + "checkout", + "orders", + "payments", + "paypal", + "rest", + "sdk" + ], + "support": { + "issues": "https://github.com/paypal/Checkout-PHP-SDK/issues", + "source": "https://github.com/paypal/Checkout-PHP-SDK/tree/1.0.1" + }, + "time": "2019-11-07T23:16:44+00:00" + }, + { + "name": "paypal/paypal-payouts-sdk", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/paypal/Payouts-PHP-SDK.git", + "reference": "45558e007569bd5b1967c07abc6505a58b8d9672" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paypal/Payouts-PHP-SDK/zipball/45558e007569bd5b1967c07abc6505a58b8d9672", + "reference": "45558e007569bd5b1967c07abc6505a58b8d9672", + "shasum": "" + }, + "require": { + "paypal/paypalhttp": "~1.0.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "PaypalPayoutsSDK\\": "lib/PaypalPayoutsSDK", + "Sample\\": "samples/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/PAYOUTS-PHP-SDK/contributors" + } + ], + "description": "PayPal's PHP SDK for Payouts REST APIs", + "homepage": "http://github.com/paypal/PAYOUTS-PHP-SDK/", + "keywords": [ + "payouts", + "paypal", + "rest", + "sdk" + ], + "support": { + "issues": "https://github.com/paypal/Payouts-PHP-SDK/issues", + "source": "https://github.com/paypal/Payouts-PHP-SDK/tree/v1.0.0" + }, + "time": "2020-02-07T10:48:57+00:00" + }, + { + "name": "paypal/paypalhttp", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/paypal/paypalhttp_php.git", + "reference": "1ad9b846a046f09d6135cbf2cbaa7701bbc630a3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paypal/paypalhttp_php/zipball/1ad9b846a046f09d6135cbf2cbaa7701bbc630a3", + "reference": "1ad9b846a046f09d6135cbf2cbaa7701bbc630a3", + "shasum": "" + }, + "require": { + "ext-curl": "*" + }, + "require-dev": { + "phpunit/phpunit": "^5.7", + "wiremock-php/wiremock-php": "1.43.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "PayPalHttp\\": "lib/PayPalHttp" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/paypalhttp_php/contributors" + } + ], + "support": { + "issues": "https://github.com/paypal/paypalhttp_php/issues", + "source": "https://github.com/paypal/paypalhttp_php/tree/1.0.0" + }, + "abandoned": true, + "time": "2019-11-06T21:27:12+00:00" + }, + { + "name": "paypal/rest-api-sdk-php", + "version": "1.14.0", + "source": { + "type": "git", + "url": "https://github.com/paypal/PayPal-PHP-SDK.git", + "reference": "72e2f2466975bf128a31e02b15110180f059fc04" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paypal/PayPal-PHP-SDK/zipball/72e2f2466975bf128a31e02b15110180f059fc04", + "reference": "72e2f2466975bf128a31e02b15110180f059fc04", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "php": ">=5.3.0", + "psr/log": "^1.0.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35" + }, + "type": "library", + "autoload": { + "psr-0": { + "PayPal": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/rest-api-sdk-php/contributors" + } + ], + "description": "PayPal's PHP SDK for REST APIs", + "homepage": "http://paypal.github.io/PayPal-PHP-SDK/", + "keywords": [ + "payments", + "paypal", + "rest", + "sdk" + ], + "support": { + "issues": "https://github.com/paypal/PayPal-PHP-SDK/issues", + "source": "https://github.com/paypal/PayPal-PHP-SDK/tree/master" + }, + "abandoned": true, + "time": "2019-01-04T20:04:25+00:00" + }, { "name": "phpmailer/phpmailer", "version": "v6.5.0", "source": { "type": "git", "url": "https://github.com/PHPMailer/PHPMailer.git", "reference": "a5b5c43e50b7fba655f793ad27303cd74c57363c" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/a5b5c43e50b7fba655f793ad27303cd74c57363c", "reference": "a5b5c43e50b7fba655f793ad27303cd74c57363c", "shasum": "" }, "require": { "ext-ctype": "*", "ext-filter": "*", "ext-hash": "*", "php": ">=5.5.0" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", "doctrine/annotations": "^1.2", "phpcompatibility/php-compatibility": "^9.3.5", "roave/security-advisories": "dev-latest", "squizlabs/php_codesniffer": "^3.5.6", "yoast/phpunit-polyfills": "^0.2.0" }, "suggest": { "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", "league/oauth2-google": "Needed for Google XOAUTH2 authentication", "psr/log": "For optional PSR-3 debug logging", "stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication", "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)" }, "type": "library", "autoload": { "psr-4": { "PHPMailer\\PHPMailer\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPL-2.1-only" ], "authors": [ { "name": "Marcus Bointon", "email": "phpmailer@synchromedia.co.uk" }, { "name": "Jim Jagielski", "email": "jimjag@gmail.com" }, { "name": "Andy Prevost", "email": "codeworxtech@users.sourceforge.net" }, { "name": "Brent R. Matzelle" } ], "description": "PHPMailer is a full-featured email creation and transfer class for PHP", "support": { "issues": "https://github.com/PHPMailer/PHPMailer/issues", "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.5.0" }, "funding": [ { "url": "https://github.com/Synchro", "type": "github" } ], "time": "2021-06-16T14:33:43+00:00" }, { "name": "phpseclib/phpseclib", "version": "2.0.32", "source": { "type": "git", "url": "https://github.com/phpseclib/phpseclib.git", "reference": "f5c4c19880d45d0be3e7d24ae8ac434844a898cd" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/f5c4c19880d45d0be3e7d24ae8ac434844a898cd", "reference": "f5c4c19880d45d0be3e7d24ae8ac434844a898cd", "shasum": "" }, "require": { "php": ">=5.3.3" }, "require-dev": { "phing/phing": "~2.7", "phpunit/phpunit": "^4.8.35|^5.7|^6.0|^9.4", "squizlabs/php_codesniffer": "~2.0" }, "suggest": { "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." }, "type": "library", "autoload": { "files": [ "phpseclib/bootstrap.php" ], "psr-4": { "phpseclib\\": "phpseclib/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Jim Wigginton", "email": "terrafrost@php.net", "role": "Lead Developer" }, { "name": "Patrick Monnerat", "email": "pm@datasphere.ch", "role": "Developer" }, { "name": "Andreas Fischer", "email": "bantu@phpbb.com", "role": "Developer" }, { "name": "Hans-Jürgen Petrich", "email": "petrich@tronic-media.com", "role": "Developer" }, { "name": "Graham Campbell", "email": "graham@alt-three.com", "role": "Developer" } ], "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", "homepage": "http://phpseclib.sourceforge.net", "keywords": [ "BigInteger", "aes", "asn.1", "asn1", "blowfish", "crypto", "cryptography", "encryption", "rsa", "security", "sftp", "signature", "signing", "ssh", "twofish", "x.509", "x509" ], "support": { "issues": "https://github.com/phpseclib/phpseclib/issues", "source": "https://github.com/phpseclib/phpseclib/tree/2.0.32" }, "funding": [ { "url": "https://github.com/terrafrost", "type": "github" }, { "url": "https://www.patreon.com/phpseclib", "type": "patreon" }, { "url": "https://tidelift.com/funding/github/packagist/phpseclib/phpseclib", "type": "tidelift" } ], "time": "2021-06-12T12:12:59+00:00" }, { "name": "psr/cache", "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/php-fig/cache.git", "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", "shasum": "" }, "require": { "php": ">=5.3.0" }, "type": "library", "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }, "autoload": { "psr-4": { "Psr\\Cache\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "PHP-FIG", "homepage": "http://www.php-fig.org/" } ], "description": "Common interface for caching libraries", "keywords": [ "cache", "psr", "psr-6" ], "support": { "source": "https://github.com/php-fig/cache/tree/master" }, "time": "2016-08-06T20:24:11+00:00" }, { "name": "psr/http-message", "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", "shasum": "" }, "require": { "php": ">=5.3.0" }, "type": "library", "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }, "autoload": { "psr-4": { "Psr\\Http\\Message\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "PHP-FIG", "homepage": "http://www.php-fig.org/" } ], "description": "Common interface for HTTP messages", "homepage": "https://github.com/php-fig/http-message", "keywords": [ "http", "http-message", "psr", "psr-7", "request", "response" ], "support": { "source": "https://github.com/php-fig/http-message/tree/master" }, "time": "2016-08-06T14:39:51+00:00" }, { "name": "psr/log", "version": "1.1.4", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", "reference": "d49695b909c3b7628b6289db5479a1c204601f11" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", "reference": "d49695b909c3b7628b6289db5479a1c204601f11", "shasum": "" }, "require": { "php": ">=5.3.0" }, "type": "library", "extra": { "branch-alias": { "dev-master": "1.1.x-dev" } }, "autoload": { "psr-4": { "Psr\\Log\\": "Psr/Log/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "PHP-FIG", "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for logging libraries", "homepage": "https://github.com/php-fig/log", "keywords": [ "log", "psr", "psr-3" ], "support": { "source": "https://github.com/php-fig/log/tree/1.1.4" }, "time": "2021-05-03T11:20:27+00:00" }, { "name": "ralouphie/getallheaders", "version": "3.0.3", "source": { "type": "git", "url": "https://github.com/ralouphie/getallheaders.git", "reference": "120b605dfeb996808c31b6477290a714d356e822" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", "reference": "120b605dfeb996808c31b6477290a714d356e822", "shasum": "" }, "require": { "php": ">=5.6" }, "require-dev": { "php-coveralls/php-coveralls": "^2.1", "phpunit/phpunit": "^5 || ^6.5" }, "type": "library", "autoload": { "files": [ "src/getallheaders.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Ralph Khattar", "email": "ralph.khattar@gmail.com" } ], "description": "A polyfill for getallheaders.", "support": { "issues": "https://github.com/ralouphie/getallheaders/issues", "source": "https://github.com/ralouphie/getallheaders/tree/develop" }, "time": "2019-03-08T08:55:37+00:00" }, { "name": "ratchet/pawl", "version": "v0.3.5", "source": { "type": "git", "url": "https://github.com/ratchetphp/Pawl.git", "reference": "89ec703c76dc893484a2a0ed44b48a37d445abd5" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/ratchetphp/Pawl/zipball/89ec703c76dc893484a2a0ed44b48a37d445abd5", "reference": "89ec703c76dc893484a2a0ed44b48a37d445abd5", "shasum": "" }, "require": { "evenement/evenement": "^3.0 || ^2.0", "php": ">=5.4", "ratchet/rfc6455": "^0.3", "react/socket": "^1.0 || ^0.8 || ^0.7" }, "require-dev": { "phpunit/phpunit": "~4.8" }, "suggest": { "reactivex/rxphp": "~2.0" }, "type": "library", "autoload": { "psr-4": { "Ratchet\\Client\\": "src" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "description": "Asynchronous WebSocket client", "keywords": [ "Ratchet", "async", "client", "websocket", "websocket client" ], "support": { "issues": "https://github.com/ratchetphp/Pawl/issues", "source": "https://github.com/ratchetphp/Pawl/tree/master" }, "time": "2020-07-17T15:32:47+00:00" }, { "name": "ratchet/rfc6455", "version": "v0.3", "source": { "type": "git", "url": "https://github.com/ratchetphp/RFC6455.git", "reference": "c8651c7938651c2d55f5d8c2422ac5e57a183341" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/ratchetphp/RFC6455/zipball/c8651c7938651c2d55f5d8c2422ac5e57a183341", "reference": "c8651c7938651c2d55f5d8c2422ac5e57a183341", "shasum": "" }, "require": { "guzzlehttp/psr7": "^1.0", "php": ">=5.4.2" }, "require-dev": { "phpunit/phpunit": "5.7.*", "react/socket": "^1.3" }, "type": "library", "autoload": { "psr-4": { "Ratchet\\RFC6455\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Chris Boden", "email": "cboden@gmail.com", "role": "Developer" }, { "name": "Matt Bonneau", "role": "Developer" } ], "description": "RFC6455 WebSocket protocol handler", "homepage": "http://socketo.me", "keywords": [ "WebSockets", "rfc6455", "websocket" ], "support": { "chat": "https://gitter.im/reactphp/reactphp", "issues": "https://github.com/ratchetphp/RFC6455/issues", "source": "https://github.com/ratchetphp/RFC6455/tree/v0.3" }, "time": "2020-05-15T18:31:24+00:00" }, { "name": "react/cache", "version": "v1.1.1", "source": { "type": "git", "url": "https://github.com/reactphp/cache.git", "reference": "4bf736a2cccec7298bdf745db77585966fc2ca7e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/cache/zipball/4bf736a2cccec7298bdf745db77585966fc2ca7e", "reference": "4bf736a2cccec7298bdf745db77585966fc2ca7e", "shasum": "" }, "require": { "php": ">=5.3.0", "react/promise": "^3.0 || ^2.0 || ^1.1" }, "require-dev": { "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" }, "type": "library", "autoload": { "psr-4": { "React\\Cache\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Christian Lück", "email": "christian@clue.engineering", "homepage": "https://clue.engineering/" }, { "name": "Cees-Jan Kiewiet", "email": "reactphp@ceesjankiewiet.nl", "homepage": "https://wyrihaximus.net/" }, { "name": "Jan Sorgalla", "email": "jsorgalla@gmail.com", "homepage": "https://sorgalla.com/" }, { "name": "Chris Boden", "email": "cboden@gmail.com", "homepage": "https://cboden.dev/" } ], "description": "Async, Promise-based cache interface for ReactPHP", "keywords": [ "cache", "caching", "promise", "reactphp" ], "support": { "issues": "https://github.com/reactphp/cache/issues", "source": "https://github.com/reactphp/cache/tree/v1.1.1" }, "funding": [ { "url": "https://github.com/WyriHaximus", "type": "github" }, { "url": "https://github.com/clue", "type": "github" } ], "time": "2021-02-02T06:47:52+00:00" }, { "name": "react/dns", "version": "v1.7.0", "source": { "type": "git", "url": "https://github.com/reactphp/dns.git", "reference": "a45784faebf8fbd59058fad2d8497f71a787d20c" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/dns/zipball/a45784faebf8fbd59058fad2d8497f71a787d20c", "reference": "a45784faebf8fbd59058fad2d8497f71a787d20c", "shasum": "" }, "require": { "php": ">=5.3.0", "react/cache": "^1.0 || ^0.6 || ^0.5", "react/event-loop": "^1.0 || ^0.5", "react/promise": "^3.0 || ^2.7 || ^1.2.1", "react/promise-timer": "^1.2" }, "require-dev": { "clue/block-react": "^1.2", "phpunit/phpunit": "^9.3 || ^4.8.35" }, "type": "library", "autoload": { "psr-4": { "React\\Dns\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Christian Lück", "email": "christian@clue.engineering", "homepage": "https://clue.engineering/" }, { "name": "Cees-Jan Kiewiet", "email": "reactphp@ceesjankiewiet.nl", "homepage": "https://wyrihaximus.net/" }, { "name": "Jan Sorgalla", "email": "jsorgalla@gmail.com", "homepage": "https://sorgalla.com/" }, { "name": "Chris Boden", "email": "cboden@gmail.com", "homepage": "https://cboden.dev/" } ], "description": "Async DNS resolver for ReactPHP", "keywords": [ "async", "dns", "dns-resolver", "reactphp" ], "support": { "issues": "https://github.com/reactphp/dns/issues", "source": "https://github.com/reactphp/dns/tree/v1.7.0" }, "funding": [ { "url": "https://github.com/WyriHaximus", "type": "github" }, { "url": "https://github.com/clue", "type": "github" } ], "time": "2021-06-25T10:54:13+00:00" }, { "name": "react/event-loop", "version": "v1.1.1", "source": { "type": "git", "url": "https://github.com/reactphp/event-loop.git", "reference": "6d24de090cd59cfc830263cfba965be77b563c13" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/event-loop/zipball/6d24de090cd59cfc830263cfba965be77b563c13", "reference": "6d24de090cd59cfc830263cfba965be77b563c13", "shasum": "" }, "require": { "php": ">=5.3.0" }, "require-dev": { "phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35" }, "suggest": { "ext-event": "~1.0 for ExtEventLoop", "ext-pcntl": "For signal handling support when using the StreamSelectLoop", "ext-uv": "* for ExtUvLoop" }, "type": "library", "autoload": { "psr-4": { "React\\EventLoop\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "description": "ReactPHP's core reactor event loop that libraries can use for evented I/O.", "keywords": [ "asynchronous", "event-loop" ], "support": { "issues": "https://github.com/reactphp/event-loop/issues", "source": "https://github.com/reactphp/event-loop/tree/v1.1.1" }, "time": "2020-01-01T18:39:52+00:00" }, { "name": "react/promise", "version": "v2.8.0", "source": { "type": "git", "url": "https://github.com/reactphp/promise.git", "reference": "f3cff96a19736714524ca0dd1d4130de73dbbbc4" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/promise/zipball/f3cff96a19736714524ca0dd1d4130de73dbbbc4", "reference": "f3cff96a19736714524ca0dd1d4130de73dbbbc4", "shasum": "" }, "require": { "php": ">=5.4.0" }, "require-dev": { "phpunit/phpunit": "^7.0 || ^6.5 || ^5.7 || ^4.8.36" }, "type": "library", "autoload": { "psr-4": { "React\\Promise\\": "src/" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Jan Sorgalla", "email": "jsorgalla@gmail.com" } ], "description": "A lightweight implementation of CommonJS Promises/A for PHP", "keywords": [ "promise", "promises" ], "support": { "issues": "https://github.com/reactphp/promise/issues", "source": "https://github.com/reactphp/promise/tree/v2.8.0" }, "time": "2020-05-12T15:16:56+00:00" }, { "name": "react/promise-timer", "version": "v1.6.0", "source": { "type": "git", "url": "https://github.com/reactphp/promise-timer.git", "reference": "daee9baf6ef30c43ea4c86399f828bb5f558f6e6" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/daee9baf6ef30c43ea4c86399f828bb5f558f6e6", "reference": "daee9baf6ef30c43ea4c86399f828bb5f558f6e6", "shasum": "" }, "require": { "php": ">=5.3", "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", "react/promise": "^3.0 || ^2.7.0 || ^1.2.1" }, "require-dev": { "phpunit/phpunit": "^9.0 || ^5.7 || ^4.8.35" }, "type": "library", "autoload": { "psr-4": { "React\\Promise\\Timer\\": "src/" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Christian Lück", "email": "christian@lueck.tv" } ], "description": "A trivial implementation of timeouts for Promises, built on top of ReactPHP.", "homepage": "https://github.com/reactphp/promise-timer", "keywords": [ "async", "event-loop", "promise", "reactphp", "timeout", "timer" ], "support": { "issues": "https://github.com/reactphp/promise-timer/issues", "source": "https://github.com/reactphp/promise-timer/tree/v1.6.0" }, "time": "2020-07-10T12:18:06+00:00" }, { "name": "react/socket", "version": "v1.7.0", "source": { "type": "git", "url": "https://github.com/reactphp/socket.git", "reference": "5d39e3fa56ea7cc443c86f2788a40867cdba1659" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/socket/zipball/5d39e3fa56ea7cc443c86f2788a40867cdba1659", "reference": "5d39e3fa56ea7cc443c86f2788a40867cdba1659", "shasum": "" }, "require": { "evenement/evenement": "^3.0 || ^2.0 || ^1.0", "php": ">=5.3.0", "react/dns": "^1.7", "react/event-loop": "^1.0 || ^0.5", "react/promise": "^2.6.0 || ^1.2.1", "react/promise-timer": "^1.4.0", "react/stream": "^1.1" }, "require-dev": { "clue/block-react": "^1.2", "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35", "react/promise-stream": "^1.2" }, "type": "library", "autoload": { "psr-4": { "React\\Socket\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Christian Lück", "email": "christian@clue.engineering", "homepage": "https://clue.engineering/" }, { "name": "Cees-Jan Kiewiet", "email": "reactphp@ceesjankiewiet.nl", "homepage": "https://wyrihaximus.net/" }, { "name": "Jan Sorgalla", "email": "jsorgalla@gmail.com", "homepage": "https://sorgalla.com/" }, { "name": "Chris Boden", "email": "cboden@gmail.com", "homepage": "https://cboden.dev/" } ], "description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP", "keywords": [ "Connection", "Socket", "async", "reactphp", "stream" ], "support": { "issues": "https://github.com/reactphp/socket/issues", "source": "https://github.com/reactphp/socket/tree/v1.7.0" }, "funding": [ { "url": "https://github.com/WyriHaximus", "type": "github" }, { "url": "https://github.com/clue", "type": "github" } ], "time": "2021-06-25T11:05:10+00:00" }, { "name": "react/stream", "version": "v1.1.1", "source": { "type": "git", "url": "https://github.com/reactphp/stream.git", "reference": "7c02b510ee3f582c810aeccd3a197b9c2f52ff1a" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/stream/zipball/7c02b510ee3f582c810aeccd3a197b9c2f52ff1a", "reference": "7c02b510ee3f582c810aeccd3a197b9c2f52ff1a", "shasum": "" }, "require": { "evenement/evenement": "^3.0 || ^2.0 || ^1.0", "php": ">=5.3.8", "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5" }, "require-dev": { "clue/stream-filter": "~1.2", "phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35" }, "type": "library", "autoload": { "psr-4": { "React\\Stream\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP", "keywords": [ "event-driven", "io", "non-blocking", "pipe", "reactphp", "readable", "stream", "writable" ], "support": { "issues": "https://github.com/reactphp/stream/issues", "source": "https://github.com/reactphp/stream/tree/v1.1.1" }, "time": "2020-05-04T10:17:57+00:00" }, { "name": "singpolyma/openpgp-php", "version": "0.4.0", "source": { "type": "git", "url": "https://github.com/singpolyma/openpgp-php.git", "reference": "67aba786991e3cb3e555025b6d357779ab32a0ab" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/singpolyma/openpgp-php/zipball/67aba786991e3cb3e555025b6d357779ab32a0ab", "reference": "67aba786991e3cb3e555025b6d357779ab32a0ab", "shasum": "" }, "require": { "php": "^5.6 || ^7.0", "phpseclib/phpseclib": "^2.0 !=2.0.8" }, "require-dev": { "phpunit/phpunit": "^5.0" }, "suggest": { "ext-mcrypt": "required if you use encryption cast5" }, "type": "library", "autoload": { "classmap": [ "lib/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "Unlicense" ], "authors": [ { "name": "Arto Bendiken", "email": "arto.bendiken@gmail.com" }, { "name": "Stephen Paul Weber", "email": "singpolyma@singpolyma.net" } ], "description": "Pure-PHP implementation of the OpenPGP Message Format (RFC 4880)", "support": { "issues": "https://github.com/singpolyma/openpgp-php/issues", "source": "https://github.com/singpolyma/openpgp-php/tree/0.4.0" }, "time": "2019-08-01T18:11:09+00:00" }, { "name": "symfony/http-foundation", "version": "v3.4.47", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", "reference": "b9885fcce6fe494201da4f70a9309770e9d13dc8" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/http-foundation/zipball/b9885fcce6fe494201da4f70a9309770e9d13dc8", "reference": "b9885fcce6fe494201da4f70a9309770e9d13dc8", "shasum": "" }, "require": { "php": "^5.5.9|>=7.0.8", "symfony/polyfill-mbstring": "~1.1", "symfony/polyfill-php70": "~1.6" }, "require-dev": { "symfony/expression-language": "~2.8|~3.0|~4.0" }, "type": "library", "autoload": { "psr-4": { "Symfony\\Component\\HttpFoundation\\": "" }, "exclude-from-classmap": [ "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Fabien Potencier", "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", "support": { "source": "https://github.com/symfony/http-foundation/tree/v3.4.47" }, "funding": [ { "url": "https://symfony.com/sponsor", "type": "custom" }, { "url": "https://github.com/fabpot", "type": "github" }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], "time": "2020-10-24T10:57:07+00:00" }, { "name": "symfony/polyfill-intl-idn", "version": "v1.19.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-idn.git", "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/4ad5115c0f5d5172a9fe8147675ec6de266d8826", "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826", "shasum": "" }, "require": { "php": ">=5.3.3", "symfony/polyfill-intl-normalizer": "^1.10", "symfony/polyfill-php70": "^1.10", "symfony/polyfill-php72": "^1.10" }, "suggest": { "ext-intl": "For best performance" }, "type": "library", "extra": { "branch-alias": { "dev-main": "1.19-dev" }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } }, "autoload": { "psr-4": { "Symfony\\Polyfill\\Intl\\Idn\\": "" }, "files": [ "bootstrap.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Laurent Bassin", "email": "laurent@bassin.info" }, { "name": "Trevor Rowbotham", "email": "trevor.rowbotham@pm.me" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", "homepage": "https://symfony.com", "keywords": [ "compatibility", "idn", "intl", "polyfill", "portable", "shim" ], "support": { "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.19.0" }, "funding": [ { "url": "https://symfony.com/sponsor", "type": "custom" }, { "url": "https://github.com/fabpot", "type": "github" }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], "time": "2020-10-21T09:57:48+00:00" }, { "name": "symfony/polyfill-intl-normalizer", "version": "v1.19.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8db0ae7936b42feb370840cf24de1a144fb0ef27", "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27", "shasum": "" }, "require": { "php": ">=5.3.3" }, "suggest": { "ext-intl": "For best performance" }, "type": "library", "extra": { "branch-alias": { "dev-main": "1.19-dev" }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } }, "autoload": { "psr-4": { "Symfony\\Polyfill\\Intl\\Normalizer\\": "" }, "files": [ "bootstrap.php" ], "classmap": [ "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Nicolas Grekas", "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony polyfill for intl's Normalizer class and related functions", "homepage": "https://symfony.com", "keywords": [ "compatibility", "intl", "normalizer", "polyfill", "portable", "shim" ], "support": { "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.19.0" }, "funding": [ { "url": "https://symfony.com/sponsor", "type": "custom" }, { "url": "https://github.com/fabpot", "type": "github" }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], "time": "2020-10-23T09:01:57+00:00" }, { "name": "symfony/polyfill-mbstring", "version": "v1.19.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/b5f7b932ee6fa802fc792eabd77c4c88084517ce", "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce", "shasum": "" }, "require": { "php": ">=5.3.3" }, "suggest": { "ext-mbstring": "For best performance" }, "type": "library", "extra": { "branch-alias": { "dev-main": "1.19-dev" }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } }, "autoload": { "psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" }, "files": [ "bootstrap.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Nicolas Grekas", "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony polyfill for the Mbstring extension", "homepage": "https://symfony.com", "keywords": [ "compatibility", "mbstring", "polyfill", "portable", "shim" ], "support": { "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.19.0" }, "funding": [ { "url": "https://symfony.com/sponsor", "type": "custom" }, { "url": "https://github.com/fabpot", "type": "github" }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], "time": "2020-10-23T09:01:57+00:00" }, { "name": "symfony/polyfill-php70", "version": "v1.19.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php70.git", "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/3fe414077251a81a1b15b1c709faf5c2fbae3d4e", "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e", "shasum": "" }, "require": { "paragonie/random_compat": "~1.0|~2.0|~9.99", "php": ">=5.3.3" }, "type": "library", "extra": { "branch-alias": { "dev-main": "1.19-dev" }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } }, "autoload": { "psr-4": { "Symfony\\Polyfill\\Php70\\": "" }, "files": [ "bootstrap.php" ], "classmap": [ "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Nicolas Grekas", "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", "polyfill", "portable", "shim" ], "support": { "source": "https://github.com/symfony/polyfill-php70/tree/v1.19.0" }, "funding": [ { "url": "https://symfony.com/sponsor", "type": "custom" }, { "url": "https://github.com/fabpot", "type": "github" }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], "time": "2020-10-23T09:01:57+00:00" }, { "name": "symfony/polyfill-php72", "version": "v1.19.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", "reference": "beecef6b463b06954638f02378f52496cb84bacc" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/beecef6b463b06954638f02378f52496cb84bacc", "reference": "beecef6b463b06954638f02378f52496cb84bacc", "shasum": "" }, "require": { "php": ">=5.3.3" }, "type": "library", "extra": { "branch-alias": { "dev-main": "1.19-dev" }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } }, "autoload": { "psr-4": { "Symfony\\Polyfill\\Php72\\": "" }, "files": [ "bootstrap.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Nicolas Grekas", "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", "polyfill", "portable", "shim" ], "support": { "source": "https://github.com/symfony/polyfill-php72/tree/v1.19.0" }, "funding": [ { "url": "https://symfony.com/sponsor", "type": "custom" }, { "url": "https://github.com/fabpot", "type": "github" }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], "time": "2020-10-23T09:01:57+00:00" }, { "name": "symfony/routing", "version": "v3.4.47", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", "reference": "3e522ac69cadffd8131cc2b22157fa7662331a6c" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/routing/zipball/3e522ac69cadffd8131cc2b22157fa7662331a6c", "reference": "3e522ac69cadffd8131cc2b22157fa7662331a6c", "shasum": "" }, "require": { "php": "^5.5.9|>=7.0.8" }, "conflict": { "symfony/config": "<3.3.1", "symfony/dependency-injection": "<3.3", "symfony/yaml": "<3.4" }, "require-dev": { "doctrine/annotations": "~1.0", "psr/log": "~1.0", "symfony/config": "^3.3.1|~4.0", "symfony/dependency-injection": "~3.3|~4.0", "symfony/expression-language": "~2.8|~3.0|~4.0", "symfony/http-foundation": "~2.8|~3.0|~4.0", "symfony/yaml": "~3.4|~4.0" }, "suggest": { "doctrine/annotations": "For using the annotation loader", "symfony/config": "For using the all-in-one router or any loader", "symfony/expression-language": "For using expression matching", "symfony/http-foundation": "For using a Symfony Request object", "symfony/yaml": "For using the YAML loader" }, "type": "library", "autoload": { "psr-4": { "Symfony\\Component\\Routing\\": "" }, "exclude-from-classmap": [ "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Fabien Potencier", "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony Routing Component", "homepage": "https://symfony.com", "keywords": [ "router", "routing", "uri", "url" ], "support": { "source": "https://github.com/symfony/routing/tree/v3.4.47" }, "funding": [ { "url": "https://symfony.com/sponsor", "type": "custom" }, { "url": "https://github.com/fabpot", "type": "github" }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], "time": "2020-10-24T10:57:07+00:00" } ], "packages-dev": [], "aliases": [], "minimum-stability": "stable", "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": { "php": ">=5.6.0", "ext-curl": "*", "ext-json": "*" }, "platform-dev": [], "platform-overrides": { "php": "5.6.0" }, "plugin-api-version": "2.0.0" } diff --git a/objects/composer/InstalledVersions.php b/objects/composer/InstalledVersions.php index a86a18b0a..30bd41c8f 100644 --- a/objects/composer/InstalledVersions.php +++ b/objects/composer/InstalledVersions.php @@ -1,666 +1,702 @@ array ( 'pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array ( ), - 'reference' => '58aabfc7d43dc4cd19df6b44128269ef86dd8772', + 'reference' => '822e364fad02c43c84c64c6faaa12b22f1da7b8f', 'name' => 'wwbn/avideo', ), 'versions' => array ( 'aws/aws-sdk-php' => array ( 'pretty_version' => '3.185.2', 'version' => '3.185.2.0', 'aliases' => array ( ), 'reference' => '0e6ece3f9c4ab26bb20183c697fd36e1d55c1053', ), 'cboden/ratchet' => array ( 'pretty_version' => 'v0.4.3', 'version' => '0.4.3.0', 'aliases' => array ( ), 'reference' => '466a0ecc83209c75b76645eb823401b5c52e5f21', ), 'chrisjean/php-ico' => array ( 'pretty_version' => '1.0.4', 'version' => '1.0.4.0', 'aliases' => array ( ), 'reference' => 'ccd5c0d56554f3ddcd7a823e695be83e0d1e43b6', ), 'evenement/evenement' => array ( 'pretty_version' => 'v2.1.0', 'version' => '2.1.0.0', 'aliases' => array ( ), 'reference' => '6ba9a777870ab49f417e703229d53931ed40fd7a', ), 'ezyang/htmlpurifier' => array ( 'pretty_version' => 'v4.13.0', 'version' => '4.13.0.0', 'aliases' => array ( ), 'reference' => '08e27c97e4c6ed02f37c5b2b20488046c8d90d75', ), 'firebase/php-jwt' => array ( 'pretty_version' => 'v5.4.0', 'version' => '5.4.0.0', 'aliases' => array ( ), 'reference' => 'd2113d9b2e0e349796e72d2a63cf9319100382d2', ), 'gliterd/backblaze-b2' => array ( 'pretty_version' => '1.1.1', 'version' => '1.1.1.0', 'aliases' => array ( ), 'reference' => '1fa0fa0f03cced94cf634c441604cb024826db6e', ), 'google/apiclient' => array ( 'pretty_version' => 'v2.9.2', 'version' => '2.9.2.0', 'aliases' => array ( ), 'reference' => 'e9ef4c26a044b8d39a46bcf296be795fe24a1849', ), 'google/apiclient-services' => array ( 'pretty_version' => 'v0.156', 'version' => '0.156.0.0', 'aliases' => array ( ), 'reference' => '2f5e54fdef034f856208328126bddd8376dae4b3', ), 'google/auth' => array ( 'pretty_version' => 'v1.16.0', 'version' => '1.16.0.0', 'aliases' => array ( ), 'reference' => 'c747738d2dd450f541f09f26510198fbedd1c8a0', ), 'guzzlehttp/guzzle' => array ( 'pretty_version' => '6.5.5', 'version' => '6.5.5.0', 'aliases' => array ( ), 'reference' => '9d4290de1cfd701f38099ef7e183b64b4b7b0c5e', ), 'guzzlehttp/promises' => array ( 'pretty_version' => '1.4.1', 'version' => '1.4.1.0', 'aliases' => array ( ), 'reference' => '8e7d04f1f6450fef59366c399cfad4b9383aa30d', ), 'guzzlehttp/psr7' => array ( 'pretty_version' => '1.8.2', 'version' => '1.8.2.0', 'aliases' => array ( ), 'reference' => 'dc960a912984efb74d0a90222870c72c87f10c91', ), 'hybridauth/hybridauth' => array ( 'pretty_version' => '3.7.1', 'version' => '3.7.1.0', 'aliases' => array ( ), 'reference' => '0ec1b8cb8b230aae739422c5e42bc5733b3a7316', ), 'james-heinrich/getid3' => array ( 'pretty_version' => 'v1.9.20', 'version' => '1.9.20.0', 'aliases' => array ( ), 'reference' => '3c15e353b9bb1252201c73394bb8390b573a751d', ), 'monolog/monolog' => array ( 'pretty_version' => '1.26.1', 'version' => '1.26.1.0', 'aliases' => array ( ), 'reference' => 'c6b00f05152ae2c9b04a448f99c7590beb6042f5', ), 'mtdowling/jmespath.php' => array ( 'pretty_version' => '2.6.1', 'version' => '2.6.1.0', 'aliases' => array ( ), 'reference' => '9b87907a81b87bc76d19a7fb2d61e61486ee9edb', ), 'paragonie/random_compat' => array ( 'pretty_version' => 'v2.0.20', 'version' => '2.0.20.0', 'aliases' => array ( ), 'reference' => '0f1f60250fccffeaf5dda91eea1c018aed1adc2a', ), + 'paypal/paypal-checkout-sdk' => + array ( + 'pretty_version' => '1.0.1', + 'version' => '1.0.1.0', + 'aliases' => + array ( + ), + 'reference' => 'ed6a55075448308b87a8b59dcb7fedf04a048cb1', + ), + 'paypal/paypal-payouts-sdk' => + array ( + 'pretty_version' => 'v1.0.0', + 'version' => '1.0.0.0', + 'aliases' => + array ( + ), + 'reference' => '45558e007569bd5b1967c07abc6505a58b8d9672', + ), + 'paypal/paypalhttp' => + array ( + 'pretty_version' => '1.0.0', + 'version' => '1.0.0.0', + 'aliases' => + array ( + ), + 'reference' => '1ad9b846a046f09d6135cbf2cbaa7701bbc630a3', + ), + 'paypal/rest-api-sdk-php' => + array ( + 'pretty_version' => '1.14.0', + 'version' => '1.14.0.0', + 'aliases' => + array ( + ), + 'reference' => '72e2f2466975bf128a31e02b15110180f059fc04', + ), 'phpmailer/phpmailer' => array ( 'pretty_version' => 'v6.5.0', 'version' => '6.5.0.0', 'aliases' => array ( ), 'reference' => 'a5b5c43e50b7fba655f793ad27303cd74c57363c', ), 'phpseclib/phpseclib' => array ( 'pretty_version' => '2.0.32', 'version' => '2.0.32.0', 'aliases' => array ( ), 'reference' => 'f5c4c19880d45d0be3e7d24ae8ac434844a898cd', ), 'psr/cache' => array ( 'pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'aliases' => array ( ), 'reference' => 'd11b50ad223250cf17b86e38383413f5a6764bf8', ), 'psr/http-message' => array ( 'pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'aliases' => array ( ), 'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363', ), 'psr/http-message-implementation' => array ( 'provided' => array ( 0 => '1.0', ), ), 'psr/log' => array ( 'pretty_version' => '1.1.4', 'version' => '1.1.4.0', 'aliases' => array ( ), 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', ), 'psr/log-implementation' => array ( 'provided' => array ( 0 => '1.0.0', ), ), 'ralouphie/getallheaders' => array ( 'pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'aliases' => array ( ), 'reference' => '120b605dfeb996808c31b6477290a714d356e822', ), 'ratchet/pawl' => array ( 'pretty_version' => 'v0.3.5', 'version' => '0.3.5.0', 'aliases' => array ( ), 'reference' => '89ec703c76dc893484a2a0ed44b48a37d445abd5', ), 'ratchet/rfc6455' => array ( 'pretty_version' => 'v0.3', 'version' => '0.3.0.0', 'aliases' => array ( ), 'reference' => 'c8651c7938651c2d55f5d8c2422ac5e57a183341', ), 'react/cache' => array ( 'pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'aliases' => array ( ), 'reference' => '4bf736a2cccec7298bdf745db77585966fc2ca7e', ), 'react/dns' => array ( 'pretty_version' => 'v1.7.0', 'version' => '1.7.0.0', 'aliases' => array ( ), 'reference' => 'a45784faebf8fbd59058fad2d8497f71a787d20c', ), 'react/event-loop' => array ( 'pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'aliases' => array ( ), 'reference' => '6d24de090cd59cfc830263cfba965be77b563c13', ), 'react/promise' => array ( 'pretty_version' => 'v2.8.0', 'version' => '2.8.0.0', 'aliases' => array ( ), 'reference' => 'f3cff96a19736714524ca0dd1d4130de73dbbbc4', ), 'react/promise-timer' => array ( 'pretty_version' => 'v1.6.0', 'version' => '1.6.0.0', 'aliases' => array ( ), 'reference' => 'daee9baf6ef30c43ea4c86399f828bb5f558f6e6', ), 'react/socket' => array ( 'pretty_version' => 'v1.7.0', 'version' => '1.7.0.0', 'aliases' => array ( ), 'reference' => '5d39e3fa56ea7cc443c86f2788a40867cdba1659', ), 'react/stream' => array ( 'pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'aliases' => array ( ), 'reference' => '7c02b510ee3f582c810aeccd3a197b9c2f52ff1a', ), 'singpolyma/openpgp-php' => array ( 'pretty_version' => '0.4.0', 'version' => '0.4.0.0', 'aliases' => array ( ), 'reference' => '67aba786991e3cb3e555025b6d357779ab32a0ab', ), 'symfony/http-foundation' => array ( 'pretty_version' => 'v3.4.47', 'version' => '3.4.47.0', 'aliases' => array ( ), 'reference' => 'b9885fcce6fe494201da4f70a9309770e9d13dc8', ), 'symfony/polyfill-intl-idn' => array ( 'pretty_version' => 'v1.19.0', 'version' => '1.19.0.0', 'aliases' => array ( ), 'reference' => '4ad5115c0f5d5172a9fe8147675ec6de266d8826', ), 'symfony/polyfill-intl-normalizer' => array ( 'pretty_version' => 'v1.19.0', 'version' => '1.19.0.0', 'aliases' => array ( ), 'reference' => '8db0ae7936b42feb370840cf24de1a144fb0ef27', ), 'symfony/polyfill-mbstring' => array ( 'pretty_version' => 'v1.19.0', 'version' => '1.19.0.0', 'aliases' => array ( ), 'reference' => 'b5f7b932ee6fa802fc792eabd77c4c88084517ce', ), 'symfony/polyfill-php70' => array ( 'pretty_version' => 'v1.19.0', 'version' => '1.19.0.0', 'aliases' => array ( ), 'reference' => '3fe414077251a81a1b15b1c709faf5c2fbae3d4e', ), 'symfony/polyfill-php72' => array ( 'pretty_version' => 'v1.19.0', 'version' => '1.19.0.0', 'aliases' => array ( ), 'reference' => 'beecef6b463b06954638f02378f52496cb84bacc', ), 'symfony/routing' => array ( 'pretty_version' => 'v3.4.47', 'version' => '3.4.47.0', 'aliases' => array ( ), 'reference' => '3e522ac69cadffd8131cc2b22157fa7662331a6c', ), 'wwbn/avideo' => array ( 'pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array ( ), - 'reference' => '58aabfc7d43dc4cd19df6b44128269ef86dd8772', + 'reference' => '822e364fad02c43c84c64c6faaa12b22f1da7b8f', ), ), ); private static $canGetVendors; private static $installedByVendor = array(); public static function getInstalledPackages() { $packages = array(); foreach (self::getInstalled() as $installed) { $packages[] = array_keys($installed['versions']); } if (1 === \count($packages)) { return $packages[0]; } return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); } public static function isInstalled($packageName) { foreach (self::getInstalled() as $installed) { if (isset($installed['versions'][$packageName])) { return true; } } return false; } public static function satisfies(VersionParser $parser, $packageName, $constraint) { $constraint = $parser->parseConstraints($constraint); $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); return $provided->matches($constraint); } public static function getVersionRanges($packageName) { foreach (self::getInstalled() as $installed) { if (!isset($installed['versions'][$packageName])) { continue; } $ranges = array(); if (isset($installed['versions'][$packageName]['pretty_version'])) { $ranges[] = $installed['versions'][$packageName]['pretty_version']; } if (array_key_exists('aliases', $installed['versions'][$packageName])) { $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); } if (array_key_exists('replaced', $installed['versions'][$packageName])) { $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); } if (array_key_exists('provided', $installed['versions'][$packageName])) { $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); } return implode(' || ', $ranges); } throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } public static function getVersion($packageName) { foreach (self::getInstalled() as $installed) { if (!isset($installed['versions'][$packageName])) { continue; } if (!isset($installed['versions'][$packageName]['version'])) { return null; } return $installed['versions'][$packageName]['version']; } throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } public static function getPrettyVersion($packageName) { foreach (self::getInstalled() as $installed) { if (!isset($installed['versions'][$packageName])) { continue; } if (!isset($installed['versions'][$packageName]['pretty_version'])) { return null; } return $installed['versions'][$packageName]['pretty_version']; } throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } public static function getReference($packageName) { foreach (self::getInstalled() as $installed) { if (!isset($installed['versions'][$packageName])) { continue; } if (!isset($installed['versions'][$packageName]['reference'])) { return null; } return $installed['versions'][$packageName]['reference']; } throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } public static function getRootPackage() { $installed = self::getInstalled(); return $installed[0]['root']; } public static function getRawData() { return self::$installed; } public static function reload($data) { self::$installed = $data; self::$installedByVendor = array(); } private static function getInstalled() { if (null === self::$canGetVendors) { self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); } $installed = array(); if (self::$canGetVendors) { foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { if (isset(self::$installedByVendor[$vendorDir])) { $installed[] = self::$installedByVendor[$vendorDir]; } elseif (is_file($vendorDir.'/composer/installed.php')) { $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; } } } $installed[] = self::$installed; return $installed; } } diff --git a/objects/composer/autoload_namespaces.php b/objects/composer/autoload_namespaces.php index 5dd41b2c3..e50f2b26f 100644 --- a/objects/composer/autoload_namespaces.php +++ b/objects/composer/autoload_namespaces.php @@ -1,12 +1,13 @@ array($vendorDir . '/paypal/rest-api-sdk-php/lib'), 'HTMLPurifier' => array($vendorDir . '/ezyang/htmlpurifier/library'), 'Google_Service_' => array($vendorDir . '/google/apiclient-services/src'), 'Evenement' => array($vendorDir . '/evenement/evenement/src'), ); diff --git a/objects/composer/autoload_psr4.php b/objects/composer/autoload_psr4.php index c8418e0ba..acdc23c0c 100644 --- a/objects/composer/autoload_psr4.php +++ b/objects/composer/autoload_psr4.php @@ -1,42 +1,46 @@ array($vendorDir . '/phpseclib/phpseclib/phpseclib'), 'Symfony\\Polyfill\\Php72\\' => array($vendorDir . '/symfony/polyfill-php72'), 'Symfony\\Polyfill\\Php70\\' => array($vendorDir . '/symfony/polyfill-php70'), 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'), 'Symfony\\Polyfill\\Intl\\Normalizer\\' => array($vendorDir . '/symfony/polyfill-intl-normalizer'), 'Symfony\\Polyfill\\Intl\\Idn\\' => array($vendorDir . '/symfony/polyfill-intl-idn'), 'Symfony\\Component\\Routing\\' => array($vendorDir . '/symfony/routing'), 'Symfony\\Component\\HttpFoundation\\' => array($vendorDir . '/symfony/http-foundation'), + 'Sample\\' => array($vendorDir . '/paypal/paypal-payouts-sdk/samples', $vendorDir . '/paypal/paypal-checkout-sdk/samples'), 'React\\Stream\\' => array($vendorDir . '/react/stream/src'), 'React\\Socket\\' => array($vendorDir . '/react/socket/src'), 'React\\Promise\\Timer\\' => array($vendorDir . '/react/promise-timer/src'), 'React\\Promise\\' => array($vendorDir . '/react/promise/src'), 'React\\EventLoop\\' => array($vendorDir . '/react/event-loop/src'), 'React\\Dns\\' => array($vendorDir . '/react/dns/src'), 'React\\Cache\\' => array($vendorDir . '/react/cache/src'), 'Ratchet\\RFC6455\\' => array($vendorDir . '/ratchet/rfc6455/src'), 'Ratchet\\Client\\' => array($vendorDir . '/ratchet/pawl/src'), 'Ratchet\\' => array($vendorDir . '/cboden/ratchet/src/Ratchet'), 'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'), 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), 'Psr\\Cache\\' => array($vendorDir . '/psr/cache/src'), + 'PaypalPayoutsSDK\\' => array($vendorDir . '/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK'), + 'PayPalHttp\\' => array($vendorDir . '/paypal/paypalhttp/lib/PayPalHttp'), + 'PayPalCheckoutSdk\\' => array($vendorDir . '/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk'), 'PHPMailer\\PHPMailer\\' => array($vendorDir . '/phpmailer/phpmailer/src'), 'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'), 'JmesPath\\' => array($vendorDir . '/mtdowling/jmespath.php/src'), 'Hybridauth\\' => array($vendorDir . '/hybridauth/hybridauth/src'), 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), 'Google\\Auth\\' => array($vendorDir . '/google/auth/src'), 'Google\\' => array($vendorDir . '/google/apiclient/src'), 'Firebase\\JWT\\' => array($vendorDir . '/firebase/php-jwt/src'), 'BackblazeB2\\' => array($vendorDir . '/gliterd/backblaze-b2/src'), 'Aws\\' => array($vendorDir . '/aws/aws-sdk-php/src'), ); diff --git a/objects/composer/autoload_static.php b/objects/composer/autoload_static.php index b548c978e..f3fe9f37a 100644 --- a/objects/composer/autoload_static.php +++ b/objects/composer/autoload_static.php @@ -1,438 +1,466 @@ __DIR__ . '/..' . '/react/promise/src/functions_include.php', '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', 'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php', '5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php', 'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php', '972fda704d680a3a53c68e34e193cb22' => __DIR__ . '/..' . '/react/promise-timer/src/functions_include.php', '023d27dca8066ef29e6739335ea73bad' => __DIR__ . '/..' . '/symfony/polyfill-php70/bootstrap.php', 'e69f7f6ee287b969198c3c9d6777bd38' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/bootstrap.php', '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php', 'f598d06aa772fa33d905e87be6398fb1' => __DIR__ . '/..' . '/symfony/polyfill-intl-idn/bootstrap.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', 'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php', 'b067bc7112e384b61c701452d53a14a8' => __DIR__ . '/..' . '/mtdowling/jmespath.php/src/JmesPath.php', '8a9dc1de0ca7e01f3e08231539562f61' => __DIR__ . '/..' . '/aws/aws-sdk-php/src/functions.php', '2cffec82183ee1cea088009cef9a6fc3' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php', 'a8d3953fd9959404dd22d3dfcd0a79f0' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', '3be16222a6efa6dd226a219eaaff823b' => __DIR__ . '/..' . '/ratchet/pawl/src/functions_include.php', ); public static $prefixLengthsPsr4 = array ( 'p' => array ( 'phpseclib\\' => 10, ), 'S' => array ( 'Symfony\\Polyfill\\Php72\\' => 23, 'Symfony\\Polyfill\\Php70\\' => 23, 'Symfony\\Polyfill\\Mbstring\\' => 26, 'Symfony\\Polyfill\\Intl\\Normalizer\\' => 33, 'Symfony\\Polyfill\\Intl\\Idn\\' => 26, 'Symfony\\Component\\Routing\\' => 26, 'Symfony\\Component\\HttpFoundation\\' => 33, + 'Sample\\' => 7, ), 'R' => array ( 'React\\Stream\\' => 13, 'React\\Socket\\' => 13, 'React\\Promise\\Timer\\' => 20, 'React\\Promise\\' => 14, 'React\\EventLoop\\' => 16, 'React\\Dns\\' => 10, 'React\\Cache\\' => 12, 'Ratchet\\RFC6455\\' => 16, 'Ratchet\\Client\\' => 15, 'Ratchet\\' => 8, ), 'P' => array ( 'Psr\\Log\\' => 8, 'Psr\\Http\\Message\\' => 17, 'Psr\\Cache\\' => 10, + 'PaypalPayoutsSDK\\' => 17, + 'PayPalHttp\\' => 11, + 'PayPalCheckoutSdk\\' => 18, 'PHPMailer\\PHPMailer\\' => 20, ), 'M' => array ( 'Monolog\\' => 8, ), 'J' => array ( 'JmesPath\\' => 9, ), 'H' => array ( 'Hybridauth\\' => 11, ), 'G' => array ( 'GuzzleHttp\\Psr7\\' => 16, 'GuzzleHttp\\Promise\\' => 19, 'GuzzleHttp\\' => 11, 'Google\\Auth\\' => 12, 'Google\\' => 7, ), 'F' => array ( 'Firebase\\JWT\\' => 13, ), 'B' => array ( 'BackblazeB2\\' => 12, ), 'A' => array ( 'Aws\\' => 4, ), ); public static $prefixDirsPsr4 = array ( 'phpseclib\\' => array ( 0 => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib', ), 'Symfony\\Polyfill\\Php72\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-php72', ), 'Symfony\\Polyfill\\Php70\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-php70', ), 'Symfony\\Polyfill\\Mbstring\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring', ), 'Symfony\\Polyfill\\Intl\\Normalizer\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer', ), 'Symfony\\Polyfill\\Intl\\Idn\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-intl-idn', ), 'Symfony\\Component\\Routing\\' => array ( 0 => __DIR__ . '/..' . '/symfony/routing', ), 'Symfony\\Component\\HttpFoundation\\' => array ( 0 => __DIR__ . '/..' . '/symfony/http-foundation', ), + 'Sample\\' => + array ( + 0 => __DIR__ . '/..' . '/paypal/paypal-payouts-sdk/samples', + 1 => __DIR__ . '/..' . '/paypal/paypal-checkout-sdk/samples', + ), 'React\\Stream\\' => array ( 0 => __DIR__ . '/..' . '/react/stream/src', ), 'React\\Socket\\' => array ( 0 => __DIR__ . '/..' . '/react/socket/src', ), 'React\\Promise\\Timer\\' => array ( 0 => __DIR__ . '/..' . '/react/promise-timer/src', ), 'React\\Promise\\' => array ( 0 => __DIR__ . '/..' . '/react/promise/src', ), 'React\\EventLoop\\' => array ( 0 => __DIR__ . '/..' . '/react/event-loop/src', ), 'React\\Dns\\' => array ( 0 => __DIR__ . '/..' . '/react/dns/src', ), 'React\\Cache\\' => array ( 0 => __DIR__ . '/..' . '/react/cache/src', ), 'Ratchet\\RFC6455\\' => array ( 0 => __DIR__ . '/..' . '/ratchet/rfc6455/src', ), 'Ratchet\\Client\\' => array ( 0 => __DIR__ . '/..' . '/ratchet/pawl/src', ), 'Ratchet\\' => array ( 0 => __DIR__ . '/..' . '/cboden/ratchet/src/Ratchet', ), 'Psr\\Log\\' => array ( 0 => __DIR__ . '/..' . '/psr/log/Psr/Log', ), 'Psr\\Http\\Message\\' => array ( 0 => __DIR__ . '/..' . '/psr/http-message/src', ), 'Psr\\Cache\\' => array ( 0 => __DIR__ . '/..' . '/psr/cache/src', ), + 'PaypalPayoutsSDK\\' => + array ( + 0 => __DIR__ . '/..' . '/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK', + ), + 'PayPalHttp\\' => + array ( + 0 => __DIR__ . '/..' . '/paypal/paypalhttp/lib/PayPalHttp', + ), + 'PayPalCheckoutSdk\\' => + array ( + 0 => __DIR__ . '/..' . '/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk', + ), 'PHPMailer\\PHPMailer\\' => array ( 0 => __DIR__ . '/..' . '/phpmailer/phpmailer/src', ), 'Monolog\\' => array ( 0 => __DIR__ . '/..' . '/monolog/monolog/src/Monolog', ), 'JmesPath\\' => array ( 0 => __DIR__ . '/..' . '/mtdowling/jmespath.php/src', ), 'Hybridauth\\' => array ( 0 => __DIR__ . '/..' . '/hybridauth/hybridauth/src', ), 'GuzzleHttp\\Psr7\\' => array ( 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src', ), 'GuzzleHttp\\Promise\\' => array ( 0 => __DIR__ . '/..' . '/guzzlehttp/promises/src', ), 'GuzzleHttp\\' => array ( 0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src', ), 'Google\\Auth\\' => array ( 0 => __DIR__ . '/..' . '/google/auth/src', ), 'Google\\' => array ( 0 => __DIR__ . '/..' . '/google/apiclient/src', ), 'Firebase\\JWT\\' => array ( 0 => __DIR__ . '/..' . '/firebase/php-jwt/src', ), 'BackblazeB2\\' => array ( 0 => __DIR__ . '/..' . '/gliterd/backblaze-b2/src', ), 'Aws\\' => array ( 0 => __DIR__ . '/..' . '/aws/aws-sdk-php/src', ), ); public static $prefixesPsr0 = array ( + 'P' => + array ( + 'PayPal' => + array ( + 0 => __DIR__ . '/..' . '/paypal/rest-api-sdk-php/lib', + ), + ), 'H' => array ( 'HTMLPurifier' => array ( 0 => __DIR__ . '/..' . '/ezyang/htmlpurifier/library', ), ), 'G' => array ( 'Google_Service_' => array ( 0 => __DIR__ . '/..' . '/google/apiclient-services/src', ), ), 'E' => array ( 'Evenement' => array ( 0 => __DIR__ . '/..' . '/evenement/evenement/src', ), ), ); public static $classMap = array ( 'AMFReader' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.flv.php', 'AMFStream' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.flv.php', 'AVCSequenceParameterSetReader' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.flv.php', 'ArithmeticError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php', 'AssertionError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/AssertionError.php', 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 'DivisionByZeroError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php', 'Error' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/Error.php', 'Google_AccessToken_Revoke' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_AccessToken_Verify' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_AuthHandler_AuthHandlerFactory' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_AuthHandler_Guzzle5AuthHandler' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_AuthHandler_Guzzle6AuthHandler' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_AuthHandler_Guzzle7AuthHandler' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Client' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Collection' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Exception' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Http_Batch' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Http_MediaFileUpload' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Http_REST' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Model' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Service' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Service_Exception' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Service_Resource' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Task_Composer' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Task_Exception' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Task_Retryable' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Task_Runner' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Google_Utils_UriTemplate' => __DIR__ . '/..' . '/google/apiclient/src/aliases.php', 'Image_XMP' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.tag.xmp.php', 'MCryptWrapper' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp_mcrypt_wrapper.php', 'Normalizer' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php', 'OpenPGP' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_AsymmetricSessionKeyPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_CompressedDataPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_Crypt_RSA' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp_crypt_rsa.php', 'OpenPGP_Crypt_Symmetric' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp_crypt_symmetric.php', 'OpenPGP_EncryptedDataPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_ExperimentalPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_IntegrityProtectedDataPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_LiteralDataPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_MarkerPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_Message' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_ModificationDetectionCodePacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_OnePassSignaturePacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_Packet' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_PublicKeyPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_PublicSubkeyPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_S2K' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SecretKeyPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SecretSubkeyPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_EmbeddedSignaturePacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_ExportableCertificationPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_FeaturesPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_IssuerPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_KeyExpirationTimePacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_KeyFlagsPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_KeyServerPreferencesPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_NotationDataPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_PolicyURIPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_PreferredCompressionAlgorithmsPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_PreferredHashAlgorithmsPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_PreferredKeyServerPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_PreferredSymmetricAlgorithmsPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_PrimaryUserIDPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_ReasonforRevocationPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_RegularExpressionPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_RevocablePacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_RevocationKeyPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_SignatureCreationTimePacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_SignatureExpirationTimePacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_SignatureTargetPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_SignersUserIDPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_Subpacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SignaturePacket_TrustSignaturePacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_SymmetricSessionKeyPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_TrustPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_UserAttributePacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenPGP_UserIDPacket' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp.php', 'OpenSSLWrapper' => __DIR__ . '/..' . '/singpolyma/openpgp-php/lib/openpgp_openssl_wrapper.php', 'PHP_ICO' => __DIR__ . '/..' . '/chrisjean/php-ico/class-php-ico.php', 'ParseError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/ParseError.php', 'SessionUpdateTimestampHandlerInterface' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/SessionUpdateTimestampHandlerInterface.php', 'TypeError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/TypeError.php', 'getID3' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/getid3.php', 'getID3_cached_dbm' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/extension.cache.dbm.php', 'getID3_cached_mysql' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/extension.cache.mysql.php', 'getID3_cached_mysqli' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/extension.cache.mysqli.php', 'getID3_cached_sqlite3' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/extension.cache.sqlite3.php', 'getid3_aa' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.aa.php', 'getid3_aac' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.aac.php', 'getid3_ac3' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.ac3.php', 'getid3_amr' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.amr.php', 'getid3_apetag' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.tag.apetag.php', 'getid3_asf' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.asf.php', 'getid3_au' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.au.php', 'getid3_avr' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.avr.php', 'getid3_bink' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.bink.php', 'getid3_bmp' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.graphic.bmp.php', 'getid3_bonk' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.bonk.php', 'getid3_cue' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.misc.cue.php', 'getid3_dsdiff' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.dsdiff.php', 'getid3_dsf' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.dsf.php', 'getid3_dss' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.dss.php', 'getid3_dts' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.dts.php', 'getid3_efax' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.graphic.efax.php', 'getid3_exception' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/getid3.php', 'getid3_exe' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.misc.exe.php', 'getid3_flac' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.flac.php', 'getid3_flv' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.flv.php', 'getid3_gif' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.graphic.gif.php', 'getid3_gzip' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.archive.gzip.php', 'getid3_handler' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/getid3.php', 'getid3_hpk' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.archive.hpk.php', 'getid3_id3v1' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.tag.id3v1.php', 'getid3_id3v2' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.tag.id3v2.php', 'getid3_iso' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.misc.iso.php', 'getid3_ivf' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.ivf.php', 'getid3_jpg' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.graphic.jpg.php', 'getid3_la' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.la.php', 'getid3_lib' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/getid3.lib.php', 'getid3_lpac' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.lpac.php', 'getid3_lyrics3' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.tag.lyrics3.php', 'getid3_matroska' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.matroska.php', 'getid3_midi' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.midi.php', 'getid3_mod' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.mod.php', 'getid3_monkey' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.monkey.php', 'getid3_mp3' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.mp3.php', 'getid3_mpc' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.mpc.php', 'getid3_mpeg' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.mpeg.php', 'getid3_msoffice' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.misc.msoffice.php', 'getid3_nsv' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.nsv.php', 'getid3_ogg' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.ogg.php', 'getid3_optimfrog' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.optimfrog.php', 'getid3_par2' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.misc.par2.php', 'getid3_pcd' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.graphic.pcd.php', 'getid3_pdf' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.misc.pdf.php', 'getid3_png' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.graphic.png.php', 'getid3_quicktime' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.quicktime.php', 'getid3_rar' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.archive.rar.php', 'getid3_real' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.real.php', 'getid3_riff' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.riff.php', 'getid3_rkau' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.rkau.php', 'getid3_shorten' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.shorten.php', 'getid3_svg' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.graphic.svg.php', 'getid3_swf' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.swf.php', 'getid3_szip' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.archive.szip.php', 'getid3_tak' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.tak.php', 'getid3_tar' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.archive.tar.php', 'getid3_tiff' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.graphic.tiff.php', 'getid3_ts' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.ts.php', 'getid3_tta' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.tta.php', 'getid3_voc' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.voc.php', 'getid3_vqf' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.vqf.php', 'getid3_wavpack' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio.wavpack.php', 'getid3_write_apetag' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/write.apetag.php', 'getid3_write_id3v1' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/write.id3v1.php', 'getid3_write_id3v2' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/write.id3v2.php', 'getid3_write_lyrics3' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/write.lyrics3.php', 'getid3_write_metaflac' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/write.metaflac.php', 'getid3_write_real' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/write.real.php', 'getid3_write_vorbiscomment' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/write.vorbiscomment.php', 'getid3_writetags' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/write.php', 'getid3_wtv' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.audio-video.wtv.php', 'getid3_xz' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.archive.xz.php', 'getid3_zip' => __DIR__ . '/..' . '/james-heinrich/getid3/getid3/module.archive.zip.php', ); public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { $loader->prefixLengthsPsr4 = ComposerStaticInit78837c7a9c090d873268c14c1a5daf3d::$prefixLengthsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit78837c7a9c090d873268c14c1a5daf3d::$prefixDirsPsr4; $loader->prefixesPsr0 = ComposerStaticInit78837c7a9c090d873268c14c1a5daf3d::$prefixesPsr0; $loader->classMap = ComposerStaticInit78837c7a9c090d873268c14c1a5daf3d::$classMap; }, null, ClassLoader::class); } } diff --git a/objects/composer/installed.json b/objects/composer/installed.json index 2769ac67e..cf2912f34 100644 --- a/objects/composer/installed.json +++ b/objects/composer/installed.json @@ -1,2653 +1,2867 @@ { "packages": [ { "name": "aws/aws-sdk-php", "version": "3.185.2", "version_normalized": "3.185.2.0", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", "reference": "0e6ece3f9c4ab26bb20183c697fd36e1d55c1053" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/0e6ece3f9c4ab26bb20183c697fd36e1d55c1053", "reference": "0e6ece3f9c4ab26bb20183c697fd36e1d55c1053", "shasum": "" }, "require": { "ext-json": "*", "ext-pcre": "*", "ext-simplexml": "*", "guzzlehttp/guzzle": "^5.3.3|^6.2.1|^7.0", "guzzlehttp/promises": "^1.4.0", "guzzlehttp/psr7": "^1.7.0", "mtdowling/jmespath.php": "^2.6", "php": ">=5.5" }, "require-dev": { "andrewsville/php-token-reflection": "^1.4", "aws/aws-php-sns-message-validator": "~1.0", "behat/behat": "~3.0", "doctrine/cache": "~1.4", "ext-dom": "*", "ext-openssl": "*", "ext-pcntl": "*", "ext-sockets": "*", "nette/neon": "^2.3", "paragonie/random_compat": ">= 2", "phpunit/phpunit": "^4.8.35|^5.4.3", "psr/cache": "^1.0", "psr/simple-cache": "^1.0", "sebastian/comparator": "^1.2.3" }, "suggest": { "aws/aws-php-sns-message-validator": "To validate incoming SNS notifications", "doctrine/cache": "To use the DoctrineCacheAdapter", "ext-curl": "To send requests using cURL", "ext-openssl": "Allows working with CloudFront private distributions and verifying received SNS messages", "ext-sockets": "To use client-side monitoring" }, "time": "2021-06-25T18:19:14+00:00", "type": "library", "extra": { "branch-alias": { "dev-master": "3.0-dev" } }, "installation-source": "dist", "autoload": { "psr-4": { "Aws\\": "src/" }, "files": [ "src/functions.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "Apache-2.0" ], "authors": [ { "name": "Amazon Web Services", "homepage": "http://aws.amazon.com" } ], "description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project", "homepage": "http://aws.amazon.com/sdkforphp", "keywords": [ "amazon", "aws", "cloud", "dynamodb", "ec2", "glacier", "s3", "sdk" ], "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", "source": "https://github.com/aws/aws-sdk-php/tree/3.185.2" }, "install-path": "../aws/aws-sdk-php" }, { "name": "cboden/ratchet", "version": "v0.4.3", "version_normalized": "0.4.3.0", "source": { "type": "git", "url": "https://github.com/ratchetphp/Ratchet.git", "reference": "466a0ecc83209c75b76645eb823401b5c52e5f21" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/ratchetphp/Ratchet/zipball/466a0ecc83209c75b76645eb823401b5c52e5f21", "reference": "466a0ecc83209c75b76645eb823401b5c52e5f21", "shasum": "" }, "require": { "guzzlehttp/psr7": "^1.0", "php": ">=5.4.2", "ratchet/rfc6455": "^0.3", "react/socket": "^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5", "symfony/http-foundation": "^2.6|^3.0|^4.0|^5.0", "symfony/routing": "^2.6|^3.0|^4.0|^5.0" }, "require-dev": { "phpunit/phpunit": "~4.8" }, "time": "2020-07-07T15:50:14+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "Ratchet\\": "src/Ratchet" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Chris Boden", "email": "cboden@gmail.com", "role": "Developer" }, { "name": "Matt Bonneau", "role": "Developer" } ], "description": "PHP WebSocket library", "homepage": "http://socketo.me", "keywords": [ "Ratchet", "WebSockets", "server", "sockets", "websocket" ], "install-path": "../cboden/ratchet" }, { "name": "chrisjean/php-ico", "version": "1.0.4", "version_normalized": "1.0.4.0", "source": { "type": "git", "url": "https://github.com/chrisbliss18/php-ico.git", "reference": "ccd5c0d56554f3ddcd7a823e695be83e0d1e43b6" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/chrisbliss18/php-ico/zipball/ccd5c0d56554f3ddcd7a823e695be83e0d1e43b6", "reference": "ccd5c0d56554f3ddcd7a823e695be83e0d1e43b6", "shasum": "" }, "require": { "ext-gd": "*", "php": ">=5.2.4" }, "time": "2016-09-27T22:00:56+00:00", "type": "library", "installation-source": "dist", "autoload": { "classmap": [ "class-php-ico.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-2.0+" ], "authors": [ { "name": "Chris Jean", "homepage": "https://chrisjean.com", "role": "Developer" } ], "description": "An easy-to-use library to generate valid ICO files.", "homepage": "https://github.com/chrisbliss18/php-ico", "keywords": [ "favicon", "ico" ], "support": { "issues": "https://github.com/chrisbliss18/php-ico/issues", "source": "https://github.com/chrisbliss18/php-ico" }, "install-path": "../chrisjean/php-ico" }, { "name": "evenement/evenement", "version": "v2.1.0", "version_normalized": "2.1.0.0", "source": { "type": "git", "url": "https://github.com/igorw/evenement.git", "reference": "6ba9a777870ab49f417e703229d53931ed40fd7a" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/igorw/evenement/zipball/6ba9a777870ab49f417e703229d53931ed40fd7a", "reference": "6ba9a777870ab49f417e703229d53931ed40fd7a", "shasum": "" }, "require": { "php": ">=5.4.0" }, "require-dev": { "phpunit/phpunit": "^6.0||^5.7||^4.8.35" }, "time": "2017-07-17T17:39:19+00:00", "type": "library", "extra": { "branch-alias": { "dev-master": "2.0-dev" } }, "installation-source": "dist", "autoload": { "psr-0": { "Evenement": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Igor Wiedler", "email": "igor@wiedler.ch" } ], "description": "Événement is a very simple event dispatching library for PHP", "keywords": [ "event-dispatcher", "event-emitter" ], "install-path": "../evenement/evenement" }, { "name": "ezyang/htmlpurifier", "version": "v4.13.0", "version_normalized": "4.13.0.0", "source": { "type": "git", "url": "https://github.com/ezyang/htmlpurifier.git", "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/08e27c97e4c6ed02f37c5b2b20488046c8d90d75", "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75", "shasum": "" }, "require": { "php": ">=5.2" }, "require-dev": { "simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd" }, "time": "2020-06-29T00:56:53+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-0": { "HTMLPurifier": "library/" }, "files": [ "library/HTMLPurifier.composer.php" ], "exclude-from-classmap": [ "/library/HTMLPurifier/Language/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPL-2.1-or-later" ], "authors": [ { "name": "Edward Z. Yang", "email": "admin@htmlpurifier.org", "homepage": "http://ezyang.com" } ], "description": "Standards compliant HTML filter written in PHP", "homepage": "http://htmlpurifier.org/", "keywords": [ "html" ], "support": { "issues": "https://github.com/ezyang/htmlpurifier/issues", "source": "https://github.com/ezyang/htmlpurifier/tree/master" }, "install-path": "../ezyang/htmlpurifier" }, { "name": "firebase/php-jwt", "version": "v5.4.0", "version_normalized": "5.4.0.0", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", "reference": "d2113d9b2e0e349796e72d2a63cf9319100382d2" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/firebase/php-jwt/zipball/d2113d9b2e0e349796e72d2a63cf9319100382d2", "reference": "d2113d9b2e0e349796e72d2a63cf9319100382d2", "shasum": "" }, "require": { "php": ">=5.3.0" }, "require-dev": { "phpunit/phpunit": ">=4.8 <=9" }, "suggest": { "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" }, "time": "2021-06-23T19:00:23+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "Firebase\\JWT\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "BSD-3-Clause" ], "authors": [ { "name": "Neuman Vong", "email": "neuman+pear@twilio.com", "role": "Developer" }, { "name": "Anant Narayanan", "email": "anant@php.net", "role": "Developer" } ], "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", "homepage": "https://github.com/firebase/php-jwt", "keywords": [ "jwt", "php" ], "support": { "issues": "https://github.com/firebase/php-jwt/issues", "source": "https://github.com/firebase/php-jwt/tree/v5.4.0" }, "install-path": "../firebase/php-jwt" }, { "name": "gliterd/backblaze-b2", "version": "1.1.1", "version_normalized": "1.1.1.0", "source": { "type": "git", "url": "https://github.com/gliterd/backblaze-b2.git", "reference": "1fa0fa0f03cced94cf634c441604cb024826db6e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/gliterd/backblaze-b2/zipball/1fa0fa0f03cced94cf634c441604cb024826db6e", "reference": "1fa0fa0f03cced94cf634c441604cb024826db6e", "shasum": "" }, "require": { "guzzlehttp/guzzle": "^6.1", "php": ">=5.5.0" }, "require-dev": { "phpunit/phpunit": "4.8.*", "scrutinizer/ocular": "~1.1", "squizlabs/php_codesniffer": "~2.3" }, "time": "2018-12-29T10:31:19+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "BackblazeB2\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Ramesh Mhetre", "email": "mhetreramesh@gmail.com", "homepage": "https://gliterd.com", "role": "Developer" } ], "description": "PHP SDK for working with backblaze B2 cloud storage.", "homepage": "https://github.com/gliterd/b2-sdk-php", "keywords": [ "b2", "backblaze", "backup", "cloud", "cloud-storage", "filesystem", "storage" ], "support": { "issues": "https://github.com/gliterd/backblaze-b2/issues", "source": "https://github.com/gliterd/backblaze-b2/tree/1.1.1" }, "install-path": "../gliterd/backblaze-b2" }, { "name": "google/apiclient", "version": "v2.9.2", "version_normalized": "2.9.2.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-api-php-client.git", "reference": "e9ef4c26a044b8d39a46bcf296be795fe24a1849" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/googleapis/google-api-php-client/zipball/e9ef4c26a044b8d39a46bcf296be795fe24a1849", "reference": "e9ef4c26a044b8d39a46bcf296be795fe24a1849", "shasum": "" }, "require": { "firebase/php-jwt": "~2.0||~3.0||~4.0||~5.0", "google/apiclient-services": "~0.13", "google/auth": "^1.10", "guzzlehttp/guzzle": "~5.3.3||~6.0||~7.0", "guzzlehttp/psr7": "^1.2", "monolog/monolog": "^1.17|^2.0", "php": "^5.6|^7.0|^8.0", "phpseclib/phpseclib": "~2.0||^3.0.2" }, "require-dev": { "cache/filesystem-adapter": "^0.3.2|^1.1", "composer/composer": "^1.10.22", "dealerdirect/phpcodesniffer-composer-installer": "^0.7", "phpcompatibility/php-compatibility": "^9.2", "phpunit/phpunit": "^5.7||^8.5.13", "squizlabs/php_codesniffer": "~2.3", "symfony/css-selector": "~2.1", "symfony/dom-crawler": "~2.1" }, "suggest": { "cache/filesystem-adapter": "For caching certs and tokens (using Google\\Client::setCache)" }, "time": "2021-06-09T22:15:08+00:00", "type": "library", "extra": { "branch-alias": { "dev-master": "2.x-dev" } }, "installation-source": "dist", "autoload": { "psr-4": { "Google\\": "src/" }, "files": [ "src/aliases.php" ], "classmap": [ "src/aliases.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "Apache-2.0" ], "description": "Client library for Google APIs", "homepage": "http://developers.google.com/api-client-library/php", "keywords": [ "google" ], "support": { "issues": "https://github.com/googleapis/google-api-php-client/issues", "source": "https://github.com/googleapis/google-api-php-client/tree/v2.9.2" }, "install-path": "../google/apiclient" }, { "name": "google/apiclient-services", "version": "v0.156", "version_normalized": "0.156.0.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-api-php-client-services.git", "reference": "2f5e54fdef034f856208328126bddd8376dae4b3" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/2f5e54fdef034f856208328126bddd8376dae4b3", "reference": "2f5e54fdef034f856208328126bddd8376dae4b3", "shasum": "" }, "require": { "php": ">=5.4" }, "require-dev": { "phpunit/phpunit": "^4.8|^5" }, "time": "2020-11-30T20:03:55+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-0": { "Google_Service_": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "Apache-2.0" ], "description": "Client library for Google APIs", "homepage": "http://developers.google.com/api-client-library/php", "keywords": [ "google" ], "support": { "issues": "https://github.com/googleapis/google-api-php-client-services/issues", "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.156" }, "install-path": "../google/apiclient-services" }, { "name": "google/auth", "version": "v1.16.0", "version_normalized": "1.16.0.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-auth-library-php.git", "reference": "c747738d2dd450f541f09f26510198fbedd1c8a0" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/c747738d2dd450f541f09f26510198fbedd1c8a0", "reference": "c747738d2dd450f541f09f26510198fbedd1c8a0", "shasum": "" }, "require": { "firebase/php-jwt": "~2.0|~3.0|~4.0|~5.0", "guzzlehttp/guzzle": "^5.3.1|^6.2.1|^7.0", "guzzlehttp/psr7": "^1.2", "php": ">=5.4", "psr/cache": "^1.0|^2.0", "psr/http-message": "^1.0" }, "require-dev": { "guzzlehttp/promises": "0.1.1|^1.3", "kelvinmo/simplejwt": "^0.2.5|^0.5.1", "phpseclib/phpseclib": "^2.0.31", "phpunit/phpunit": "^4.8.36|^5.7", "sebastian/comparator": ">=1.2.3", "squizlabs/php_codesniffer": "^3.5" }, "suggest": { "phpseclib/phpseclib": "May be used in place of OpenSSL for signing strings or for token management. Please require version ^2." }, "time": "2021-06-22T18:06:03+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "Google\\Auth\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "Apache-2.0" ], "description": "Google Auth Library for PHP", "homepage": "http://github.com/google/google-auth-library-php", "keywords": [ "Authentication", "google", "oauth2" ], "support": { "docs": "https://googleapis.github.io/google-auth-library-php/master/", "issues": "https://github.com/googleapis/google-auth-library-php/issues", "source": "https://github.com/googleapis/google-auth-library-php/tree/v1.16.0" }, "install-path": "../google/auth" }, { "name": "guzzlehttp/guzzle", "version": "6.5.5", "version_normalized": "6.5.5.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/guzzle/guzzle/zipball/9d4290de1cfd701f38099ef7e183b64b4b7b0c5e", "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e", "shasum": "" }, "require": { "ext-json": "*", "guzzlehttp/promises": "^1.0", "guzzlehttp/psr7": "^1.6.1", "php": ">=5.5", "symfony/polyfill-intl-idn": "^1.17.0" }, "require-dev": { "ext-curl": "*", "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", "psr/log": "^1.1" }, "suggest": { "psr/log": "Required for using the Log middleware" }, "time": "2020-06-16T21:01:06+00:00", "type": "library", "extra": { "branch-alias": { "dev-master": "6.5-dev" } }, "installation-source": "dist", "autoload": { "psr-4": { "GuzzleHttp\\": "src/" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" } ], "description": "Guzzle is a PHP HTTP client library", "homepage": "http://guzzlephp.org/", "keywords": [ "client", "curl", "framework", "http", "http client", "rest", "web service" ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", "source": "https://github.com/guzzle/guzzle/tree/6.5" }, "install-path": "../guzzlehttp/guzzle" }, { "name": "guzzlehttp/promises", "version": "1.4.1", "version_normalized": "1.4.1.0", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/guzzle/promises/zipball/8e7d04f1f6450fef59366c399cfad4b9383aa30d", "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d", "shasum": "" }, "require": { "php": ">=5.5" }, "require-dev": { "symfony/phpunit-bridge": "^4.4 || ^5.1" }, "time": "2021-03-07T09:25:29+00:00", "type": "library", "extra": { "branch-alias": { "dev-master": "1.4-dev" } }, "installation-source": "dist", "autoload": { "psr-4": { "GuzzleHttp\\Promise\\": "src/" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" } ], "description": "Guzzle promises library", "keywords": [ "promise" ], "support": { "issues": "https://github.com/guzzle/promises/issues", "source": "https://github.com/guzzle/promises/tree/1.4.1" }, "install-path": "../guzzlehttp/promises" }, { "name": "guzzlehttp/psr7", "version": "1.8.2", "version_normalized": "1.8.2.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", "reference": "dc960a912984efb74d0a90222870c72c87f10c91" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/guzzle/psr7/zipball/dc960a912984efb74d0a90222870c72c87f10c91", "reference": "dc960a912984efb74d0a90222870c72c87f10c91", "shasum": "" }, "require": { "php": ">=5.4.0", "psr/http-message": "~1.0", "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" }, "provide": { "psr/http-message-implementation": "1.0" }, "require-dev": { "ext-zlib": "*", "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" }, "time": "2021-04-26T09:17:50+00:00", "type": "library", "extra": { "branch-alias": { "dev-master": "1.7-dev" } }, "installation-source": "dist", "autoload": { "psr-4": { "GuzzleHttp\\Psr7\\": "src/" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" }, { "name": "Tobias Schultze", "homepage": "https://github.com/Tobion" } ], "description": "PSR-7 message implementation that also provides common utility methods", "keywords": [ "http", "message", "psr-7", "request", "response", "stream", "uri", "url" ], "support": { "issues": "https://github.com/guzzle/psr7/issues", "source": "https://github.com/guzzle/psr7/tree/1.8.2" }, "install-path": "../guzzlehttp/psr7" }, { "name": "hybridauth/hybridauth", "version": "3.7.1", "version_normalized": "3.7.1.0", "source": { "type": "git", "url": "https://github.com/hybridauth/hybridauth.git", "reference": "0ec1b8cb8b230aae739422c5e42bc5733b3a7316" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/hybridauth/hybridauth/zipball/0ec1b8cb8b230aae739422c5e42bc5733b3a7316", "reference": "0ec1b8cb8b230aae739422c5e42bc5733b3a7316", "shasum": "" }, "require": { "php": "^5.4 || ^7.0 || ^8.0" }, "require-dev": { "ext-curl": "*", "phpunit/phpunit": "^4.8.35 || ^6.5 || ^8.0" }, "suggest": { "firebase/php-jwt": "Needed to support Apple provider", "phpseclib/phpseclib": "Needed to support Apple provider" }, "time": "2021-03-13T17:35:33+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "Hybridauth\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Miled", "email": "hybridauth@gmail.com" } ], "description": "PHP Social Authentication Library", "homepage": "https://hybridauth.github.io", "keywords": [ "Authentication", "OpenId", "api", "apple", "authorization", "facebook", "google", "oauth", "social", "twitter" ], "support": { "gitter": "https://gitter.im/hybridauth/hybridauth", "issues": "https://github.com/hybridauth/hybridauth/issues", "source": "https://github.com/hybridauth/hybridauth/tree/3.7.1" }, "install-path": "../hybridauth/hybridauth" }, { "name": "james-heinrich/getid3", "version": "v1.9.20", "version_normalized": "1.9.20.0", "source": { "type": "git", "url": "https://github.com/JamesHeinrich/getID3.git", "reference": "3c15e353b9bb1252201c73394bb8390b573a751d" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/JamesHeinrich/getID3/zipball/3c15e353b9bb1252201c73394bb8390b573a751d", "reference": "3c15e353b9bb1252201c73394bb8390b573a751d", "shasum": "" }, "require": { "php": ">=5.3.0" }, "require-dev": { "jakub-onderka/php-parallel-lint": "^0.9 || ^1.0" }, "suggest": { "ext-SimpleXML": "SimpleXML extension is required to analyze RIFF/WAV/BWF audio files (also requires `ext-libxml`).", "ext-com_dotnet": "COM extension is required when loading files larger than 2GB on Windows.", "ext-ctype": "ctype extension is required when loading files larger than 2GB on 32-bit PHP (also on 64-bit PHP on Windows) or executing `getid3_lib::CopyTagsToComments`.", "ext-dba": "DBA extension is required to use the DBA database as a cache storage.", "ext-exif": "EXIF extension is required for graphic modules.", "ext-iconv": "iconv extension is required to work with different character sets (when `ext-mbstring` is not available).", "ext-json": "JSON extension is required to analyze Apple Quicktime videos.", "ext-libxml": "libxml extension is required to analyze RIFF/WAV/BWF audio files.", "ext-mbstring": "mbstring extension is required to work with different character sets.", "ext-mysql": "MySQL extension is required to use the MySQL database as a cache storage (deprecated in PHP 5.5, removed in PHP >= 7.0, use `ext-mysqli` instead).", "ext-mysqli": "MySQLi extension is required to use the MySQL database as a cache storage.", "ext-rar": "RAR extension is required for RAR archive module.", "ext-sqlite3": "SQLite3 extension is required to use the SQLite3 database as a cache storage.", "ext-xml": "XML extension is required for graphic modules to analyze the XML metadata.", "ext-zlib": "Zlib extension is required for archive modules and compressed metadata." }, "time": "2020-06-30T18:43:34+00:00", "type": "library", "extra": { "branch-alias": { "dev-master": "1.9.x-dev" } }, "installation-source": "dist", "autoload": { "classmap": [ "getid3/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "GPL-1.0-or-later", "LGPL-3.0-only", "MPL-2.0" ], "description": "PHP script that extracts useful information from popular multimedia file formats", "homepage": "https://www.getid3.org/", "keywords": [ "codecs", "php", "tags" ], "support": { "issues": "https://github.com/JamesHeinrich/getID3/issues", "source": "https://github.com/JamesHeinrich/getID3/tree/master" }, "install-path": "../james-heinrich/getid3" }, { "name": "monolog/monolog", "version": "1.26.1", "version_normalized": "1.26.1.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", "reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c6b00f05152ae2c9b04a448f99c7590beb6042f5", "reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5", "shasum": "" }, "require": { "php": ">=5.3.0", "psr/log": "~1.0" }, "provide": { "psr/log-implementation": "1.0.0" }, "require-dev": { "aws/aws-sdk-php": "^2.4.9 || ^3.0", "doctrine/couchdb": "~1.0@dev", "graylog2/gelf-php": "~1.0", "php-amqplib/php-amqplib": "~2.4", "php-console/php-console": "^3.1.3", "phpstan/phpstan": "^0.12.59", "phpunit/phpunit": "~4.5", "ruflin/elastica": ">=0.90 <3.0", "sentry/sentry": "^0.13", "swiftmailer/swiftmailer": "^5.3|^6.0" }, "suggest": { "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", "doctrine/couchdb": "Allow sending log messages to a CouchDB server", "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", "ext-mongo": "Allow sending log messages to a MongoDB server", "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", "php-console/php-console": "Allow sending log messages to Google Chrome", "rollbar/rollbar": "Allow sending log messages to Rollbar", "ruflin/elastica": "Allow sending log messages to an Elastic Search server", "sentry/sentry": "Allow sending log messages to a Sentry server" }, "time": "2021-05-28T08:32:12+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "Monolog\\": "src/Monolog" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Jordi Boggiano", "email": "j.boggiano@seld.be", "homepage": "http://seld.be" } ], "description": "Sends your logs to files, sockets, inboxes, databases and various web services", "homepage": "http://github.com/Seldaek/monolog", "keywords": [ "log", "logging", "psr-3" ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", "source": "https://github.com/Seldaek/monolog/tree/1.26.1" }, "funding": [ { "url": "https://github.com/Seldaek", "type": "github" }, { "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", "type": "tidelift" } ], "install-path": "../monolog/monolog" }, { "name": "mtdowling/jmespath.php", "version": "2.6.1", "version_normalized": "2.6.1.0", "source": { "type": "git", "url": "https://github.com/jmespath/jmespath.php.git", "reference": "9b87907a81b87bc76d19a7fb2d61e61486ee9edb" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/jmespath/jmespath.php/zipball/9b87907a81b87bc76d19a7fb2d61e61486ee9edb", "reference": "9b87907a81b87bc76d19a7fb2d61e61486ee9edb", "shasum": "" }, "require": { "php": "^5.4 || ^7.0 || ^8.0", "symfony/polyfill-mbstring": "^1.17" }, "require-dev": { "composer/xdebug-handler": "^1.4 || ^2.0", "phpunit/phpunit": "^4.8.36 || ^7.5.15" }, "time": "2021-06-14T00:11:39+00:00", "bin": [ "bin/jp.php" ], "type": "library", "extra": { "branch-alias": { "dev-master": "2.6-dev" } }, "installation-source": "dist", "autoload": { "psr-4": { "JmesPath\\": "src/" }, "files": [ "src/JmesPath.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" } ], "description": "Declaratively specify how to extract elements from a JSON document", "keywords": [ "json", "jsonpath" ], "support": { "issues": "https://github.com/jmespath/jmespath.php/issues", "source": "https://github.com/jmespath/jmespath.php/tree/2.6.1" }, "install-path": "../mtdowling/jmespath.php" }, { "name": "paragonie/random_compat", "version": "v2.0.20", "version_normalized": "2.0.20.0", "source": { "type": "git", "url": "https://github.com/paragonie/random_compat.git", "reference": "0f1f60250fccffeaf5dda91eea1c018aed1adc2a" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/paragonie/random_compat/zipball/0f1f60250fccffeaf5dda91eea1c018aed1adc2a", "reference": "0f1f60250fccffeaf5dda91eea1c018aed1adc2a", "shasum": "" }, "require": { "php": ">=5.2.0" }, "require-dev": { "phpunit/phpunit": "4.*|5.*" }, "suggest": { "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." }, "time": "2021-04-17T09:33:01+00:00", "type": "library", "installation-source": "dist", "autoload": { "files": [ "lib/random.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Paragon Initiative Enterprises", "email": "security@paragonie.com", "homepage": "https://paragonie.com" } ], "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", "keywords": [ "csprng", "polyfill", "pseudorandom", "random" ], "support": { "email": "info@paragonie.com", "issues": "https://github.com/paragonie/random_compat/issues", "source": "https://github.com/paragonie/random_compat" }, "install-path": "../paragonie/random_compat" }, + { + "name": "paypal/paypal-checkout-sdk", + "version": "1.0.1", + "version_normalized": "1.0.1.0", + "source": { + "type": "git", + "url": "https://github.com/paypal/Checkout-PHP-SDK.git", + "reference": "ed6a55075448308b87a8b59dcb7fedf04a048cb1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paypal/Checkout-PHP-SDK/zipball/ed6a55075448308b87a8b59dcb7fedf04a048cb1", + "reference": "ed6a55075448308b87a8b59dcb7fedf04a048cb1", + "shasum": "" + }, + "require": { + "paypal/paypalhttp": "1.0.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7" + }, + "time": "2019-11-07T23:16:44+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "PayPalCheckoutSdk\\": "lib/PayPalCheckoutSdk", + "Sample\\": "samples/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "https://github.com/paypal/Checkout-PHP-SDK/blob/master/LICENSE" + ], + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/Checkout-PHP-SDK/contributors" + } + ], + "description": "PayPal's PHP SDK for Checkout REST APIs", + "homepage": "http://github.com/paypal/Checkout-PHP-SDK/", + "keywords": [ + "checkout", + "orders", + "payments", + "paypal", + "rest", + "sdk" + ], + "support": { + "issues": "https://github.com/paypal/Checkout-PHP-SDK/issues", + "source": "https://github.com/paypal/Checkout-PHP-SDK/tree/1.0.1" + }, + "install-path": "../paypal/paypal-checkout-sdk" + }, + { + "name": "paypal/paypal-payouts-sdk", + "version": "v1.0.0", + "version_normalized": "1.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/paypal/Payouts-PHP-SDK.git", + "reference": "45558e007569bd5b1967c07abc6505a58b8d9672" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paypal/Payouts-PHP-SDK/zipball/45558e007569bd5b1967c07abc6505a58b8d9672", + "reference": "45558e007569bd5b1967c07abc6505a58b8d9672", + "shasum": "" + }, + "require": { + "paypal/paypalhttp": "~1.0.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7" + }, + "time": "2020-02-07T10:48:57+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "PaypalPayoutsSDK\\": "lib/PaypalPayoutsSDK", + "Sample\\": "samples/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/PAYOUTS-PHP-SDK/contributors" + } + ], + "description": "PayPal's PHP SDK for Payouts REST APIs", + "homepage": "http://github.com/paypal/PAYOUTS-PHP-SDK/", + "keywords": [ + "payouts", + "paypal", + "rest", + "sdk" + ], + "support": { + "issues": "https://github.com/paypal/Payouts-PHP-SDK/issues", + "source": "https://github.com/paypal/Payouts-PHP-SDK/tree/v1.0.0" + }, + "install-path": "../paypal/paypal-payouts-sdk" + }, + { + "name": "paypal/paypalhttp", + "version": "1.0.0", + "version_normalized": "1.0.0.0", + "source": { + "type": "git", + "url": "https://github.com/paypal/paypalhttp_php.git", + "reference": "1ad9b846a046f09d6135cbf2cbaa7701bbc630a3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paypal/paypalhttp_php/zipball/1ad9b846a046f09d6135cbf2cbaa7701bbc630a3", + "reference": "1ad9b846a046f09d6135cbf2cbaa7701bbc630a3", + "shasum": "" + }, + "require": { + "ext-curl": "*" + }, + "require-dev": { + "phpunit/phpunit": "^5.7", + "wiremock-php/wiremock-php": "1.43.2" + }, + "time": "2019-11-06T21:27:12+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-4": { + "PayPalHttp\\": "lib/PayPalHttp" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/paypalhttp_php/contributors" + } + ], + "support": { + "issues": "https://github.com/paypal/paypalhttp_php/issues", + "source": "https://github.com/paypal/paypalhttp_php/tree/1.0.0" + }, + "abandoned": true, + "install-path": "../paypal/paypalhttp" + }, + { + "name": "paypal/rest-api-sdk-php", + "version": "1.14.0", + "version_normalized": "1.14.0.0", + "source": { + "type": "git", + "url": "https://github.com/paypal/PayPal-PHP-SDK.git", + "reference": "72e2f2466975bf128a31e02b15110180f059fc04" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paypal/PayPal-PHP-SDK/zipball/72e2f2466975bf128a31e02b15110180f059fc04", + "reference": "72e2f2466975bf128a31e02b15110180f059fc04", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "php": ">=5.3.0", + "psr/log": "^1.0.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35" + }, + "time": "2019-01-04T20:04:25+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "psr-0": { + "PayPal": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/rest-api-sdk-php/contributors" + } + ], + "description": "PayPal's PHP SDK for REST APIs", + "homepage": "http://paypal.github.io/PayPal-PHP-SDK/", + "keywords": [ + "payments", + "paypal", + "rest", + "sdk" + ], + "support": { + "issues": "https://github.com/paypal/PayPal-PHP-SDK/issues", + "source": "https://github.com/paypal/PayPal-PHP-SDK/tree/master" + }, + "abandoned": true, + "install-path": "../paypal/rest-api-sdk-php" + }, { "name": "phpmailer/phpmailer", "version": "v6.5.0", "version_normalized": "6.5.0.0", "source": { "type": "git", "url": "https://github.com/PHPMailer/PHPMailer.git", "reference": "a5b5c43e50b7fba655f793ad27303cd74c57363c" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/a5b5c43e50b7fba655f793ad27303cd74c57363c", "reference": "a5b5c43e50b7fba655f793ad27303cd74c57363c", "shasum": "" }, "require": { "ext-ctype": "*", "ext-filter": "*", "ext-hash": "*", "php": ">=5.5.0" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", "doctrine/annotations": "^1.2", "phpcompatibility/php-compatibility": "^9.3.5", "roave/security-advisories": "dev-latest", "squizlabs/php_codesniffer": "^3.5.6", "yoast/phpunit-polyfills": "^0.2.0" }, "suggest": { "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", "league/oauth2-google": "Needed for Google XOAUTH2 authentication", "psr/log": "For optional PSR-3 debug logging", "stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication", "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)" }, "time": "2021-06-16T14:33:43+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "PHPMailer\\PHPMailer\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "LGPL-2.1-only" ], "authors": [ { "name": "Marcus Bointon", "email": "phpmailer@synchromedia.co.uk" }, { "name": "Jim Jagielski", "email": "jimjag@gmail.com" }, { "name": "Andy Prevost", "email": "codeworxtech@users.sourceforge.net" }, { "name": "Brent R. Matzelle" } ], "description": "PHPMailer is a full-featured email creation and transfer class for PHP", "support": { "issues": "https://github.com/PHPMailer/PHPMailer/issues", "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.5.0" }, "funding": [ { "url": "https://github.com/Synchro", "type": "github" } ], "install-path": "../phpmailer/phpmailer" }, { "name": "phpseclib/phpseclib", "version": "2.0.32", "version_normalized": "2.0.32.0", "source": { "type": "git", "url": "https://github.com/phpseclib/phpseclib.git", "reference": "f5c4c19880d45d0be3e7d24ae8ac434844a898cd" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/f5c4c19880d45d0be3e7d24ae8ac434844a898cd", "reference": "f5c4c19880d45d0be3e7d24ae8ac434844a898cd", "shasum": "" }, "require": { "php": ">=5.3.3" }, "require-dev": { "phing/phing": "~2.7", "phpunit/phpunit": "^4.8.35|^5.7|^6.0|^9.4", "squizlabs/php_codesniffer": "~2.0" }, "suggest": { "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." }, "time": "2021-06-12T12:12:59+00:00", "type": "library", "installation-source": "dist", "autoload": { "files": [ "phpseclib/bootstrap.php" ], "psr-4": { "phpseclib\\": "phpseclib/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Jim Wigginton", "email": "terrafrost@php.net", "role": "Lead Developer" }, { "name": "Patrick Monnerat", "email": "pm@datasphere.ch", "role": "Developer" }, { "name": "Andreas Fischer", "email": "bantu@phpbb.com", "role": "Developer" }, { "name": "Hans-Jürgen Petrich", "email": "petrich@tronic-media.com", "role": "Developer" }, { "name": "Graham Campbell", "email": "graham@alt-three.com", "role": "Developer" } ], "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", "homepage": "http://phpseclib.sourceforge.net", "keywords": [ "BigInteger", "aes", "asn.1", "asn1", "blowfish", "crypto", "cryptography", "encryption", "rsa", "security", "sftp", "signature", "signing", "ssh", "twofish", "x.509", "x509" ], "support": { "issues": "https://github.com/phpseclib/phpseclib/issues", "source": "https://github.com/phpseclib/phpseclib/tree/2.0.32" }, "funding": [ { "url": "https://github.com/terrafrost", "type": "github" }, { "url": "https://www.patreon.com/phpseclib", "type": "patreon" }, { "url": "https://tidelift.com/funding/github/packagist/phpseclib/phpseclib", "type": "tidelift" } ], "install-path": "../phpseclib/phpseclib" }, { "name": "psr/cache", "version": "1.0.1", "version_normalized": "1.0.1.0", "source": { "type": "git", "url": "https://github.com/php-fig/cache.git", "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", "shasum": "" }, "require": { "php": ">=5.3.0" }, "time": "2016-08-06T20:24:11+00:00", "type": "library", "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }, "installation-source": "dist", "autoload": { "psr-4": { "Psr\\Cache\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "PHP-FIG", "homepage": "http://www.php-fig.org/" } ], "description": "Common interface for caching libraries", "keywords": [ "cache", "psr", "psr-6" ], "support": { "source": "https://github.com/php-fig/cache/tree/master" }, "install-path": "../psr/cache" }, { "name": "psr/http-message", "version": "1.0.1", "version_normalized": "1.0.1.0", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", "shasum": "" }, "require": { "php": ">=5.3.0" }, "time": "2016-08-06T14:39:51+00:00", "type": "library", "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }, "installation-source": "dist", "autoload": { "psr-4": { "Psr\\Http\\Message\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "PHP-FIG", "homepage": "http://www.php-fig.org/" } ], "description": "Common interface for HTTP messages", "homepage": "https://github.com/php-fig/http-message", "keywords": [ "http", "http-message", "psr", "psr-7", "request", "response" ], "support": { "source": "https://github.com/php-fig/http-message/tree/master" }, "install-path": "../psr/http-message" }, { "name": "psr/log", "version": "1.1.4", "version_normalized": "1.1.4.0", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", "reference": "d49695b909c3b7628b6289db5479a1c204601f11" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", "reference": "d49695b909c3b7628b6289db5479a1c204601f11", "shasum": "" }, "require": { "php": ">=5.3.0" }, "time": "2021-05-03T11:20:27+00:00", "type": "library", "extra": { "branch-alias": { "dev-master": "1.1.x-dev" } }, "installation-source": "dist", "autoload": { "psr-4": { "Psr\\Log\\": "Psr/Log/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "PHP-FIG", "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for logging libraries", "homepage": "https://github.com/php-fig/log", "keywords": [ "log", "psr", "psr-3" ], "support": { "source": "https://github.com/php-fig/log/tree/1.1.4" }, "install-path": "../psr/log" }, { "name": "ralouphie/getallheaders", "version": "3.0.3", "version_normalized": "3.0.3.0", "source": { "type": "git", "url": "https://github.com/ralouphie/getallheaders.git", "reference": "120b605dfeb996808c31b6477290a714d356e822" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", "reference": "120b605dfeb996808c31b6477290a714d356e822", "shasum": "" }, "require": { "php": ">=5.6" }, "require-dev": { "php-coveralls/php-coveralls": "^2.1", "phpunit/phpunit": "^5 || ^6.5" }, "time": "2019-03-08T08:55:37+00:00", "type": "library", "installation-source": "dist", "autoload": { "files": [ "src/getallheaders.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Ralph Khattar", "email": "ralph.khattar@gmail.com" } ], "description": "A polyfill for getallheaders.", "support": { "issues": "https://github.com/ralouphie/getallheaders/issues", "source": "https://github.com/ralouphie/getallheaders/tree/develop" }, "install-path": "../ralouphie/getallheaders" }, { "name": "ratchet/pawl", "version": "v0.3.5", "version_normalized": "0.3.5.0", "source": { "type": "git", "url": "https://github.com/ratchetphp/Pawl.git", "reference": "89ec703c76dc893484a2a0ed44b48a37d445abd5" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/ratchetphp/Pawl/zipball/89ec703c76dc893484a2a0ed44b48a37d445abd5", "reference": "89ec703c76dc893484a2a0ed44b48a37d445abd5", "shasum": "" }, "require": { "evenement/evenement": "^3.0 || ^2.0", "php": ">=5.4", "ratchet/rfc6455": "^0.3", "react/socket": "^1.0 || ^0.8 || ^0.7" }, "require-dev": { "phpunit/phpunit": "~4.8" }, "suggest": { "reactivex/rxphp": "~2.0" }, "time": "2020-07-17T15:32:47+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "Ratchet\\Client\\": "src" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "description": "Asynchronous WebSocket client", "keywords": [ "Ratchet", "async", "client", "websocket", "websocket client" ], "install-path": "../ratchet/pawl" }, { "name": "ratchet/rfc6455", "version": "v0.3", "version_normalized": "0.3.0.0", "source": { "type": "git", "url": "https://github.com/ratchetphp/RFC6455.git", "reference": "c8651c7938651c2d55f5d8c2422ac5e57a183341" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/ratchetphp/RFC6455/zipball/c8651c7938651c2d55f5d8c2422ac5e57a183341", "reference": "c8651c7938651c2d55f5d8c2422ac5e57a183341", "shasum": "" }, "require": { "guzzlehttp/psr7": "^1.0", "php": ">=5.4.2" }, "require-dev": { "phpunit/phpunit": "5.7.*", "react/socket": "^1.3" }, "time": "2020-05-15T18:31:24+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "Ratchet\\RFC6455\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Chris Boden", "email": "cboden@gmail.com", "role": "Developer" }, { "name": "Matt Bonneau", "role": "Developer" } ], "description": "RFC6455 WebSocket protocol handler", "homepage": "http://socketo.me", "keywords": [ "WebSockets", "rfc6455", "websocket" ], "install-path": "../ratchet/rfc6455" }, { "name": "react/cache", "version": "v1.1.1", "version_normalized": "1.1.1.0", "source": { "type": "git", "url": "https://github.com/reactphp/cache.git", "reference": "4bf736a2cccec7298bdf745db77585966fc2ca7e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/cache/zipball/4bf736a2cccec7298bdf745db77585966fc2ca7e", "reference": "4bf736a2cccec7298bdf745db77585966fc2ca7e", "shasum": "" }, "require": { "php": ">=5.3.0", "react/promise": "^3.0 || ^2.0 || ^1.1" }, "require-dev": { "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" }, "time": "2021-02-02T06:47:52+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "React\\Cache\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Christian Lück", "email": "christian@clue.engineering", "homepage": "https://clue.engineering/" }, { "name": "Cees-Jan Kiewiet", "email": "reactphp@ceesjankiewiet.nl", "homepage": "https://wyrihaximus.net/" }, { "name": "Jan Sorgalla", "email": "jsorgalla@gmail.com", "homepage": "https://sorgalla.com/" }, { "name": "Chris Boden", "email": "cboden@gmail.com", "homepage": "https://cboden.dev/" } ], "description": "Async, Promise-based cache interface for ReactPHP", "keywords": [ "cache", "caching", "promise", "reactphp" ], "support": { "issues": "https://github.com/reactphp/cache/issues", "source": "https://github.com/reactphp/cache/tree/v1.1.1" }, "funding": [ { "url": "https://github.com/WyriHaximus", "type": "github" }, { "url": "https://github.com/clue", "type": "github" } ], "install-path": "../react/cache" }, { "name": "react/dns", "version": "v1.7.0", "version_normalized": "1.7.0.0", "source": { "type": "git", "url": "https://github.com/reactphp/dns.git", "reference": "a45784faebf8fbd59058fad2d8497f71a787d20c" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/dns/zipball/a45784faebf8fbd59058fad2d8497f71a787d20c", "reference": "a45784faebf8fbd59058fad2d8497f71a787d20c", "shasum": "" }, "require": { "php": ">=5.3.0", "react/cache": "^1.0 || ^0.6 || ^0.5", "react/event-loop": "^1.0 || ^0.5", "react/promise": "^3.0 || ^2.7 || ^1.2.1", "react/promise-timer": "^1.2" }, "require-dev": { "clue/block-react": "^1.2", "phpunit/phpunit": "^9.3 || ^4.8.35" }, "time": "2021-06-25T10:54:13+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "React\\Dns\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Christian Lück", "email": "christian@clue.engineering", "homepage": "https://clue.engineering/" }, { "name": "Cees-Jan Kiewiet", "email": "reactphp@ceesjankiewiet.nl", "homepage": "https://wyrihaximus.net/" }, { "name": "Jan Sorgalla", "email": "jsorgalla@gmail.com", "homepage": "https://sorgalla.com/" }, { "name": "Chris Boden", "email": "cboden@gmail.com", "homepage": "https://cboden.dev/" } ], "description": "Async DNS resolver for ReactPHP", "keywords": [ "async", "dns", "dns-resolver", "reactphp" ], "support": { "issues": "https://github.com/reactphp/dns/issues", "source": "https://github.com/reactphp/dns/tree/v1.7.0" }, "funding": [ { "url": "https://github.com/WyriHaximus", "type": "github" }, { "url": "https://github.com/clue", "type": "github" } ], "install-path": "../react/dns" }, { "name": "react/event-loop", "version": "v1.1.1", "version_normalized": "1.1.1.0", "source": { "type": "git", "url": "https://github.com/reactphp/event-loop.git", "reference": "6d24de090cd59cfc830263cfba965be77b563c13" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/event-loop/zipball/6d24de090cd59cfc830263cfba965be77b563c13", "reference": "6d24de090cd59cfc830263cfba965be77b563c13", "shasum": "" }, "require": { "php": ">=5.3.0" }, "require-dev": { "phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35" }, "suggest": { "ext-event": "~1.0 for ExtEventLoop", "ext-pcntl": "For signal handling support when using the StreamSelectLoop", "ext-uv": "* for ExtUvLoop" }, "time": "2020-01-01T18:39:52+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "React\\EventLoop\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "description": "ReactPHP's core reactor event loop that libraries can use for evented I/O.", "keywords": [ "asynchronous", "event-loop" ], "install-path": "../react/event-loop" }, { "name": "react/promise", "version": "v2.8.0", "version_normalized": "2.8.0.0", "source": { "type": "git", "url": "https://github.com/reactphp/promise.git", "reference": "f3cff96a19736714524ca0dd1d4130de73dbbbc4" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/promise/zipball/f3cff96a19736714524ca0dd1d4130de73dbbbc4", "reference": "f3cff96a19736714524ca0dd1d4130de73dbbbc4", "shasum": "" }, "require": { "php": ">=5.4.0" }, "require-dev": { "phpunit/phpunit": "^7.0 || ^6.5 || ^5.7 || ^4.8.36" }, "time": "2020-05-12T15:16:56+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "React\\Promise\\": "src/" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Jan Sorgalla", "email": "jsorgalla@gmail.com" } ], "description": "A lightweight implementation of CommonJS Promises/A for PHP", "keywords": [ "promise", "promises" ], "install-path": "../react/promise" }, { "name": "react/promise-timer", "version": "v1.6.0", "version_normalized": "1.6.0.0", "source": { "type": "git", "url": "https://github.com/reactphp/promise-timer.git", "reference": "daee9baf6ef30c43ea4c86399f828bb5f558f6e6" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/daee9baf6ef30c43ea4c86399f828bb5f558f6e6", "reference": "daee9baf6ef30c43ea4c86399f828bb5f558f6e6", "shasum": "" }, "require": { "php": ">=5.3", "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5", "react/promise": "^3.0 || ^2.7.0 || ^1.2.1" }, "require-dev": { "phpunit/phpunit": "^9.0 || ^5.7 || ^4.8.35" }, "time": "2020-07-10T12:18:06+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "React\\Promise\\Timer\\": "src/" }, "files": [ "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Christian Lück", "email": "christian@lueck.tv" } ], "description": "A trivial implementation of timeouts for Promises, built on top of ReactPHP.", "homepage": "https://github.com/reactphp/promise-timer", "keywords": [ "async", "event-loop", "promise", "reactphp", "timeout", "timer" ], "install-path": "../react/promise-timer" }, { "name": "react/socket", "version": "v1.7.0", "version_normalized": "1.7.0.0", "source": { "type": "git", "url": "https://github.com/reactphp/socket.git", "reference": "5d39e3fa56ea7cc443c86f2788a40867cdba1659" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/socket/zipball/5d39e3fa56ea7cc443c86f2788a40867cdba1659", "reference": "5d39e3fa56ea7cc443c86f2788a40867cdba1659", "shasum": "" }, "require": { "evenement/evenement": "^3.0 || ^2.0 || ^1.0", "php": ">=5.3.0", "react/dns": "^1.7", "react/event-loop": "^1.0 || ^0.5", "react/promise": "^2.6.0 || ^1.2.1", "react/promise-timer": "^1.4.0", "react/stream": "^1.1" }, "require-dev": { "clue/block-react": "^1.2", "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35", "react/promise-stream": "^1.2" }, "time": "2021-06-25T11:05:10+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "React\\Socket\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Christian Lück", "email": "christian@clue.engineering", "homepage": "https://clue.engineering/" }, { "name": "Cees-Jan Kiewiet", "email": "reactphp@ceesjankiewiet.nl", "homepage": "https://wyrihaximus.net/" }, { "name": "Jan Sorgalla", "email": "jsorgalla@gmail.com", "homepage": "https://sorgalla.com/" }, { "name": "Chris Boden", "email": "cboden@gmail.com", "homepage": "https://cboden.dev/" } ], "description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP", "keywords": [ "Connection", "Socket", "async", "reactphp", "stream" ], "support": { "issues": "https://github.com/reactphp/socket/issues", "source": "https://github.com/reactphp/socket/tree/v1.7.0" }, "funding": [ { "url": "https://github.com/WyriHaximus", "type": "github" }, { "url": "https://github.com/clue", "type": "github" } ], "install-path": "../react/socket" }, { "name": "react/stream", "version": "v1.1.1", "version_normalized": "1.1.1.0", "source": { "type": "git", "url": "https://github.com/reactphp/stream.git", "reference": "7c02b510ee3f582c810aeccd3a197b9c2f52ff1a" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/reactphp/stream/zipball/7c02b510ee3f582c810aeccd3a197b9c2f52ff1a", "reference": "7c02b510ee3f582c810aeccd3a197b9c2f52ff1a", "shasum": "" }, "require": { "evenement/evenement": "^3.0 || ^2.0 || ^1.0", "php": ">=5.3.8", "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5" }, "require-dev": { "clue/stream-filter": "~1.2", "phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35" }, "time": "2020-05-04T10:17:57+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "React\\Stream\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP", "keywords": [ "event-driven", "io", "non-blocking", "pipe", "reactphp", "readable", "stream", "writable" ], "install-path": "../react/stream" }, { "name": "singpolyma/openpgp-php", "version": "0.4.0", "version_normalized": "0.4.0.0", "source": { "type": "git", "url": "https://github.com/singpolyma/openpgp-php.git", "reference": "67aba786991e3cb3e555025b6d357779ab32a0ab" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/singpolyma/openpgp-php/zipball/67aba786991e3cb3e555025b6d357779ab32a0ab", "reference": "67aba786991e3cb3e555025b6d357779ab32a0ab", "shasum": "" }, "require": { "php": "^5.6 || ^7.0", "phpseclib/phpseclib": "^2.0 !=2.0.8" }, "require-dev": { "phpunit/phpunit": "^5.0" }, "suggest": { "ext-mcrypt": "required if you use encryption cast5" }, "time": "2019-08-01T18:11:09+00:00", "type": "library", "installation-source": "dist", "autoload": { "classmap": [ "lib/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "Unlicense" ], "authors": [ { "name": "Arto Bendiken", "email": "arto.bendiken@gmail.com" }, { "name": "Stephen Paul Weber", "email": "singpolyma@singpolyma.net" } ], "description": "Pure-PHP implementation of the OpenPGP Message Format (RFC 4880)", "support": { "issues": "https://github.com/singpolyma/openpgp-php/issues", "source": "https://github.com/singpolyma/openpgp-php/tree/0.4.0" }, "install-path": "../singpolyma/openpgp-php" }, { "name": "symfony/http-foundation", "version": "v3.4.47", "version_normalized": "3.4.47.0", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", "reference": "b9885fcce6fe494201da4f70a9309770e9d13dc8" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/http-foundation/zipball/b9885fcce6fe494201da4f70a9309770e9d13dc8", "reference": "b9885fcce6fe494201da4f70a9309770e9d13dc8", "shasum": "" }, "require": { "php": "^5.5.9|>=7.0.8", "symfony/polyfill-mbstring": "~1.1", "symfony/polyfill-php70": "~1.6" }, "require-dev": { "symfony/expression-language": "~2.8|~3.0|~4.0" }, "time": "2020-10-24T10:57:07+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "Symfony\\Component\\HttpFoundation\\": "" }, "exclude-from-classmap": [ "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Fabien Potencier", "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", "install-path": "../symfony/http-foundation" }, { "name": "symfony/polyfill-intl-idn", "version": "v1.19.0", "version_normalized": "1.19.0.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-idn.git", "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/4ad5115c0f5d5172a9fe8147675ec6de266d8826", "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826", "shasum": "" }, "require": { "php": ">=5.3.3", "symfony/polyfill-intl-normalizer": "^1.10", "symfony/polyfill-php70": "^1.10", "symfony/polyfill-php72": "^1.10" }, "suggest": { "ext-intl": "For best performance" }, "time": "2020-10-21T09:57:48+00:00", "type": "library", "extra": { "branch-alias": { "dev-main": "1.19-dev" }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } }, "installation-source": "dist", "autoload": { "psr-4": { "Symfony\\Polyfill\\Intl\\Idn\\": "" }, "files": [ "bootstrap.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Laurent Bassin", "email": "laurent@bassin.info" }, { "name": "Trevor Rowbotham", "email": "trevor.rowbotham@pm.me" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", "homepage": "https://symfony.com", "keywords": [ "compatibility", "idn", "intl", "polyfill", "portable", "shim" ], "support": { "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.19.0" }, "install-path": "../symfony/polyfill-intl-idn" }, { "name": "symfony/polyfill-intl-normalizer", "version": "v1.19.0", "version_normalized": "1.19.0.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8db0ae7936b42feb370840cf24de1a144fb0ef27", "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27", "shasum": "" }, "require": { "php": ">=5.3.3" }, "suggest": { "ext-intl": "For best performance" }, "time": "2020-10-23T09:01:57+00:00", "type": "library", "extra": { "branch-alias": { "dev-main": "1.19-dev" }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } }, "installation-source": "dist", "autoload": { "psr-4": { "Symfony\\Polyfill\\Intl\\Normalizer\\": "" }, "files": [ "bootstrap.php" ], "classmap": [ "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Nicolas Grekas", "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony polyfill for intl's Normalizer class and related functions", "homepage": "https://symfony.com", "keywords": [ "compatibility", "intl", "normalizer", "polyfill", "portable", "shim" ], "support": { "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.19.0" }, "install-path": "../symfony/polyfill-intl-normalizer" }, { "name": "symfony/polyfill-mbstring", "version": "v1.19.0", "version_normalized": "1.19.0.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/b5f7b932ee6fa802fc792eabd77c4c88084517ce", "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce", "shasum": "" }, "require": { "php": ">=5.3.3" }, "suggest": { "ext-mbstring": "For best performance" }, "time": "2020-10-23T09:01:57+00:00", "type": "library", "extra": { "branch-alias": { "dev-main": "1.19-dev" }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } }, "installation-source": "dist", "autoload": { "psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" }, "files": [ "bootstrap.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Nicolas Grekas", "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony polyfill for the Mbstring extension", "homepage": "https://symfony.com", "keywords": [ "compatibility", "mbstring", "polyfill", "portable", "shim" ], "install-path": "../symfony/polyfill-mbstring" }, { "name": "symfony/polyfill-php70", "version": "v1.19.0", "version_normalized": "1.19.0.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php70.git", "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/3fe414077251a81a1b15b1c709faf5c2fbae3d4e", "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e", "shasum": "" }, "require": { "paragonie/random_compat": "~1.0|~2.0|~9.99", "php": ">=5.3.3" }, "time": "2020-10-23T09:01:57+00:00", "type": "library", "extra": { "branch-alias": { "dev-main": "1.19-dev" }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } }, "installation-source": "dist", "autoload": { "psr-4": { "Symfony\\Polyfill\\Php70\\": "" }, "files": [ "bootstrap.php" ], "classmap": [ "Resources/stubs" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Nicolas Grekas", "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", "polyfill", "portable", "shim" ], "support": { "source": "https://github.com/symfony/polyfill-php70/tree/v1.19.0" }, "install-path": "../symfony/polyfill-php70" }, { "name": "symfony/polyfill-php72", "version": "v1.19.0", "version_normalized": "1.19.0.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", "reference": "beecef6b463b06954638f02378f52496cb84bacc" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/beecef6b463b06954638f02378f52496cb84bacc", "reference": "beecef6b463b06954638f02378f52496cb84bacc", "shasum": "" }, "require": { "php": ">=5.3.3" }, "time": "2020-10-23T09:01:57+00:00", "type": "library", "extra": { "branch-alias": { "dev-main": "1.19-dev" }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" } }, "installation-source": "dist", "autoload": { "psr-4": { "Symfony\\Polyfill\\Php72\\": "" }, "files": [ "bootstrap.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Nicolas Grekas", "email": "p@tchwork.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", "polyfill", "portable", "shim" ], "support": { "source": "https://github.com/symfony/polyfill-php72/tree/v1.19.0" }, "install-path": "../symfony/polyfill-php72" }, { "name": "symfony/routing", "version": "v3.4.47", "version_normalized": "3.4.47.0", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", "reference": "3e522ac69cadffd8131cc2b22157fa7662331a6c" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/symfony/routing/zipball/3e522ac69cadffd8131cc2b22157fa7662331a6c", "reference": "3e522ac69cadffd8131cc2b22157fa7662331a6c", "shasum": "" }, "require": { "php": "^5.5.9|>=7.0.8" }, "conflict": { "symfony/config": "<3.3.1", "symfony/dependency-injection": "<3.3", "symfony/yaml": "<3.4" }, "require-dev": { "doctrine/annotations": "~1.0", "psr/log": "~1.0", "symfony/config": "^3.3.1|~4.0", "symfony/dependency-injection": "~3.3|~4.0", "symfony/expression-language": "~2.8|~3.0|~4.0", "symfony/http-foundation": "~2.8|~3.0|~4.0", "symfony/yaml": "~3.4|~4.0" }, "suggest": { "doctrine/annotations": "For using the annotation loader", "symfony/config": "For using the all-in-one router or any loader", "symfony/expression-language": "For using expression matching", "symfony/http-foundation": "For using a Symfony Request object", "symfony/yaml": "For using the YAML loader" }, "time": "2020-10-24T10:57:07+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "Symfony\\Component\\Routing\\": "" }, "exclude-from-classmap": [ "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Fabien Potencier", "email": "fabien@symfony.com" }, { "name": "Symfony Community", "homepage": "https://symfony.com/contributors" } ], "description": "Symfony Routing Component", "homepage": "https://symfony.com", "keywords": [ "router", "routing", "uri", "url" ], "install-path": "../symfony/routing" } ], "dev": true, "dev-package-names": [] } diff --git a/objects/composer/installed.php b/objects/composer/installed.php index bced53020..3e3c64d7b 100644 --- a/objects/composer/installed.php +++ b/objects/composer/installed.php @@ -1,407 +1,443 @@ array ( 'pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array ( ), - 'reference' => '58aabfc7d43dc4cd19df6b44128269ef86dd8772', + 'reference' => '822e364fad02c43c84c64c6faaa12b22f1da7b8f', 'name' => 'wwbn/avideo', ), 'versions' => array ( 'aws/aws-sdk-php' => array ( 'pretty_version' => '3.185.2', 'version' => '3.185.2.0', 'aliases' => array ( ), 'reference' => '0e6ece3f9c4ab26bb20183c697fd36e1d55c1053', ), 'cboden/ratchet' => array ( 'pretty_version' => 'v0.4.3', 'version' => '0.4.3.0', 'aliases' => array ( ), 'reference' => '466a0ecc83209c75b76645eb823401b5c52e5f21', ), 'chrisjean/php-ico' => array ( 'pretty_version' => '1.0.4', 'version' => '1.0.4.0', 'aliases' => array ( ), 'reference' => 'ccd5c0d56554f3ddcd7a823e695be83e0d1e43b6', ), 'evenement/evenement' => array ( 'pretty_version' => 'v2.1.0', 'version' => '2.1.0.0', 'aliases' => array ( ), 'reference' => '6ba9a777870ab49f417e703229d53931ed40fd7a', ), 'ezyang/htmlpurifier' => array ( 'pretty_version' => 'v4.13.0', 'version' => '4.13.0.0', 'aliases' => array ( ), 'reference' => '08e27c97e4c6ed02f37c5b2b20488046c8d90d75', ), 'firebase/php-jwt' => array ( 'pretty_version' => 'v5.4.0', 'version' => '5.4.0.0', 'aliases' => array ( ), 'reference' => 'd2113d9b2e0e349796e72d2a63cf9319100382d2', ), 'gliterd/backblaze-b2' => array ( 'pretty_version' => '1.1.1', 'version' => '1.1.1.0', 'aliases' => array ( ), 'reference' => '1fa0fa0f03cced94cf634c441604cb024826db6e', ), 'google/apiclient' => array ( 'pretty_version' => 'v2.9.2', 'version' => '2.9.2.0', 'aliases' => array ( ), 'reference' => 'e9ef4c26a044b8d39a46bcf296be795fe24a1849', ), 'google/apiclient-services' => array ( 'pretty_version' => 'v0.156', 'version' => '0.156.0.0', 'aliases' => array ( ), 'reference' => '2f5e54fdef034f856208328126bddd8376dae4b3', ), 'google/auth' => array ( 'pretty_version' => 'v1.16.0', 'version' => '1.16.0.0', 'aliases' => array ( ), 'reference' => 'c747738d2dd450f541f09f26510198fbedd1c8a0', ), 'guzzlehttp/guzzle' => array ( 'pretty_version' => '6.5.5', 'version' => '6.5.5.0', 'aliases' => array ( ), 'reference' => '9d4290de1cfd701f38099ef7e183b64b4b7b0c5e', ), 'guzzlehttp/promises' => array ( 'pretty_version' => '1.4.1', 'version' => '1.4.1.0', 'aliases' => array ( ), 'reference' => '8e7d04f1f6450fef59366c399cfad4b9383aa30d', ), 'guzzlehttp/psr7' => array ( 'pretty_version' => '1.8.2', 'version' => '1.8.2.0', 'aliases' => array ( ), 'reference' => 'dc960a912984efb74d0a90222870c72c87f10c91', ), 'hybridauth/hybridauth' => array ( 'pretty_version' => '3.7.1', 'version' => '3.7.1.0', 'aliases' => array ( ), 'reference' => '0ec1b8cb8b230aae739422c5e42bc5733b3a7316', ), 'james-heinrich/getid3' => array ( 'pretty_version' => 'v1.9.20', 'version' => '1.9.20.0', 'aliases' => array ( ), 'reference' => '3c15e353b9bb1252201c73394bb8390b573a751d', ), 'monolog/monolog' => array ( 'pretty_version' => '1.26.1', 'version' => '1.26.1.0', 'aliases' => array ( ), 'reference' => 'c6b00f05152ae2c9b04a448f99c7590beb6042f5', ), 'mtdowling/jmespath.php' => array ( 'pretty_version' => '2.6.1', 'version' => '2.6.1.0', 'aliases' => array ( ), 'reference' => '9b87907a81b87bc76d19a7fb2d61e61486ee9edb', ), 'paragonie/random_compat' => array ( 'pretty_version' => 'v2.0.20', 'version' => '2.0.20.0', 'aliases' => array ( ), 'reference' => '0f1f60250fccffeaf5dda91eea1c018aed1adc2a', ), + 'paypal/paypal-checkout-sdk' => + array ( + 'pretty_version' => '1.0.1', + 'version' => '1.0.1.0', + 'aliases' => + array ( + ), + 'reference' => 'ed6a55075448308b87a8b59dcb7fedf04a048cb1', + ), + 'paypal/paypal-payouts-sdk' => + array ( + 'pretty_version' => 'v1.0.0', + 'version' => '1.0.0.0', + 'aliases' => + array ( + ), + 'reference' => '45558e007569bd5b1967c07abc6505a58b8d9672', + ), + 'paypal/paypalhttp' => + array ( + 'pretty_version' => '1.0.0', + 'version' => '1.0.0.0', + 'aliases' => + array ( + ), + 'reference' => '1ad9b846a046f09d6135cbf2cbaa7701bbc630a3', + ), + 'paypal/rest-api-sdk-php' => + array ( + 'pretty_version' => '1.14.0', + 'version' => '1.14.0.0', + 'aliases' => + array ( + ), + 'reference' => '72e2f2466975bf128a31e02b15110180f059fc04', + ), 'phpmailer/phpmailer' => array ( 'pretty_version' => 'v6.5.0', 'version' => '6.5.0.0', 'aliases' => array ( ), 'reference' => 'a5b5c43e50b7fba655f793ad27303cd74c57363c', ), 'phpseclib/phpseclib' => array ( 'pretty_version' => '2.0.32', 'version' => '2.0.32.0', 'aliases' => array ( ), 'reference' => 'f5c4c19880d45d0be3e7d24ae8ac434844a898cd', ), 'psr/cache' => array ( 'pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'aliases' => array ( ), 'reference' => 'd11b50ad223250cf17b86e38383413f5a6764bf8', ), 'psr/http-message' => array ( 'pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'aliases' => array ( ), 'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363', ), 'psr/http-message-implementation' => array ( 'provided' => array ( 0 => '1.0', ), ), 'psr/log' => array ( 'pretty_version' => '1.1.4', 'version' => '1.1.4.0', 'aliases' => array ( ), 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', ), 'psr/log-implementation' => array ( 'provided' => array ( 0 => '1.0.0', ), ), 'ralouphie/getallheaders' => array ( 'pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'aliases' => array ( ), 'reference' => '120b605dfeb996808c31b6477290a714d356e822', ), 'ratchet/pawl' => array ( 'pretty_version' => 'v0.3.5', 'version' => '0.3.5.0', 'aliases' => array ( ), 'reference' => '89ec703c76dc893484a2a0ed44b48a37d445abd5', ), 'ratchet/rfc6455' => array ( 'pretty_version' => 'v0.3', 'version' => '0.3.0.0', 'aliases' => array ( ), 'reference' => 'c8651c7938651c2d55f5d8c2422ac5e57a183341', ), 'react/cache' => array ( 'pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'aliases' => array ( ), 'reference' => '4bf736a2cccec7298bdf745db77585966fc2ca7e', ), 'react/dns' => array ( 'pretty_version' => 'v1.7.0', 'version' => '1.7.0.0', 'aliases' => array ( ), 'reference' => 'a45784faebf8fbd59058fad2d8497f71a787d20c', ), 'react/event-loop' => array ( 'pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'aliases' => array ( ), 'reference' => '6d24de090cd59cfc830263cfba965be77b563c13', ), 'react/promise' => array ( 'pretty_version' => 'v2.8.0', 'version' => '2.8.0.0', 'aliases' => array ( ), 'reference' => 'f3cff96a19736714524ca0dd1d4130de73dbbbc4', ), 'react/promise-timer' => array ( 'pretty_version' => 'v1.6.0', 'version' => '1.6.0.0', 'aliases' => array ( ), 'reference' => 'daee9baf6ef30c43ea4c86399f828bb5f558f6e6', ), 'react/socket' => array ( 'pretty_version' => 'v1.7.0', 'version' => '1.7.0.0', 'aliases' => array ( ), 'reference' => '5d39e3fa56ea7cc443c86f2788a40867cdba1659', ), 'react/stream' => array ( 'pretty_version' => 'v1.1.1', 'version' => '1.1.1.0', 'aliases' => array ( ), 'reference' => '7c02b510ee3f582c810aeccd3a197b9c2f52ff1a', ), 'singpolyma/openpgp-php' => array ( 'pretty_version' => '0.4.0', 'version' => '0.4.0.0', 'aliases' => array ( ), 'reference' => '67aba786991e3cb3e555025b6d357779ab32a0ab', ), 'symfony/http-foundation' => array ( 'pretty_version' => 'v3.4.47', 'version' => '3.4.47.0', 'aliases' => array ( ), 'reference' => 'b9885fcce6fe494201da4f70a9309770e9d13dc8', ), 'symfony/polyfill-intl-idn' => array ( 'pretty_version' => 'v1.19.0', 'version' => '1.19.0.0', 'aliases' => array ( ), 'reference' => '4ad5115c0f5d5172a9fe8147675ec6de266d8826', ), 'symfony/polyfill-intl-normalizer' => array ( 'pretty_version' => 'v1.19.0', 'version' => '1.19.0.0', 'aliases' => array ( ), 'reference' => '8db0ae7936b42feb370840cf24de1a144fb0ef27', ), 'symfony/polyfill-mbstring' => array ( 'pretty_version' => 'v1.19.0', 'version' => '1.19.0.0', 'aliases' => array ( ), 'reference' => 'b5f7b932ee6fa802fc792eabd77c4c88084517ce', ), 'symfony/polyfill-php70' => array ( 'pretty_version' => 'v1.19.0', 'version' => '1.19.0.0', 'aliases' => array ( ), 'reference' => '3fe414077251a81a1b15b1c709faf5c2fbae3d4e', ), 'symfony/polyfill-php72' => array ( 'pretty_version' => 'v1.19.0', 'version' => '1.19.0.0', 'aliases' => array ( ), 'reference' => 'beecef6b463b06954638f02378f52496cb84bacc', ), 'symfony/routing' => array ( 'pretty_version' => 'v3.4.47', 'version' => '3.4.47.0', 'aliases' => array ( ), 'reference' => '3e522ac69cadffd8131cc2b22157fa7662331a6c', ), 'wwbn/avideo' => array ( 'pretty_version' => 'dev-master', 'version' => 'dev-master', 'aliases' => array ( ), - 'reference' => '58aabfc7d43dc4cd19df6b44128269ef86dd8772', + 'reference' => '822e364fad02c43c84c64c6faaa12b22f1da7b8f', ), ), ); diff --git a/objects/paypal/paypal-checkout-sdk/.gitignore b/objects/paypal/paypal-checkout-sdk/.gitignore new file mode 100644 index 000000000..4c36e385c --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/.gitignore @@ -0,0 +1,2 @@ +.idea/ +vendor/ diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/LICENSE b/objects/paypal/paypal-checkout-sdk/LICENSE similarity index 98% copy from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/LICENSE copy to objects/paypal/paypal-checkout-sdk/LICENSE index 11848248b..67d9ac3ac 100644 --- a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/LICENSE +++ b/objects/paypal/paypal-checkout-sdk/LICENSE @@ -1,86 +1,86 @@ -The PayPal PHP SDK is released under the following license: +The PayPal Node SDK is released under the following license: - Copyright (c) 2013-2016 PAYPAL, INC. + Copyright (c) 2013-2019 PAYPAL, INC. SDK LICENSE NOTICE TO USER: PayPal, Inc. is providing the Software and Documentation for use under the terms of this Agreement. Any use, reproduction, modification or distribution of the Software or Documentation, or any derivatives or portions hereof, constitutes your acceptance of this Agreement. As used in this Agreement, "PayPal" means PayPal, Inc. "Software" means the software code accompanying this agreement. "Documentation" means the documents, specifications and all other items accompanying this Agreement other than the Software. 1. LICENSE GRANT Subject to the terms of this Agreement, PayPal hereby grants you a non-exclusive, worldwide, royalty free license to use, reproduce, prepare derivative works from, publicly display, publicly perform, distribute and sublicense the Software for any purpose, provided the copyright notice below appears in a conspicuous location within the source code of the distributed Software and this license is distributed in the supporting documentation of the Software you distribute. Furthermore, you must comply with all third party licenses in order to use the third party software contained in the Software. Subject to the terms of this Agreement, PayPal hereby grants you a non-exclusive, worldwide, royalty free license to use, reproduce, publicly display, publicly perform, distribute and sublicense the Documentation for any purpose. You may not modify the Documentation. No title to the intellectual property in the Software or Documentation is transferred to you under the terms of this Agreement. You do not acquire any rights to the Software or the Documentation except as expressly set forth in this Agreement. If you choose to distribute the Software in a commercial product, you do so with the understanding that you agree to defend, indemnify and hold harmless PayPal and its suppliers against any losses, damages and costs arising from the claims, lawsuits or other legal actions arising out of such distribution. You may distribute the Software in object code form under your own license, provided that your license agreement: (a) complies with the terms and conditions of this license agreement; (b) effectively disclaims all warranties and conditions, express or implied, on behalf of PayPal; (c) effectively excludes all liability for damages on behalf of PayPal; (d) states that any provisions that differ from this Agreement are offered by you alone and not PayPal; and (e) states that the Software is available from you or PayPal and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. 2. DISCLAIMER OF WARRANTY PAYPAL LICENSES THE SOFTWARE AND DOCUMENTATION TO YOU ONLY ON AN "AS IS" BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. PAYPAL MAKES NO WARRANTY THAT THE SOFTWARE OR DOCUMENTATION WILL BE ERROR-FREE. Each user of the Software or Documentation is solely responsible for determining the appropriateness of using and distributing the Software and Documentation and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs, or equipment, and unavailability or interruption of operations. Use of the Software and Documentation is made with the understanding that PayPal will not provide you with any technical or customer support or maintenance. Some states or jurisdictions do not allow the exclusion of implied warranties or limitations on how long an implied warranty may last, so the above limitations may not apply to you. To the extent permissible, any implied warranties are limited to ninety (90) days. 3. LIMITATION OF LIABILITY PAYPAL AND ITS SUPPLIERS SHALL NOT BE LIABLE FOR LOSS OR DAMAGE ARISING OUT OF THIS AGREEMENT OR FROM THE USE OF THE SOFTWARE OR DOCUMENTATION. IN NO EVENT WILL PAYPAL OR ITS SUPPLIERS BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, INCIDENTAL, OR SPECIAL DAMAGES INCLUDING LOST PROFITS, LOST SAVINGS, COSTS, FEES, OR EXPENSES OF ANY KIND ARISING OUT OF ANY PROVISION OF THIS AGREEMENT OR THE USE OR THE INABILITY TO USE THE SOFTWARE OR DOCUMENTATION, HOWEVER CAUSED AND UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. PAYPAL'S AGGREGATE LIABILITY AND THAT OF ITS SUPPLIERS UNDER OR IN CONNECTION WITH THIS AGREEMENT SHALL BE LIMITED TO THE AMOUNT PAID BY YOU FOR THE SOFTWARE AND DOCUMENTATION. 4. TRADEMARK USAGE PayPal is a trademark PayPal, Inc. in the United States and other countries. Such trademarks may not be used to endorse or promote any product unless expressly permitted under separate agreement with PayPal. 5. TERM Your rights under this Agreement shall terminate if you fail to comply with any of the material terms or conditions of this Agreement and do not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all your rights under this Agreement terminate, you agree to cease use and distribution of the Software and Documentation as soon as reasonably practicable. 6. GOVERNING LAW AND JURISDICTION. This Agreement is governed by the statutes and laws of the State of California, without regard to the conflicts of law principles thereof. If any part of this Agreement is found void and unenforceable, it will not affect the validity of the balance of the Agreement, which shall remain valid and enforceable according to its terms. Any dispute arising out of or related to this Agreement shall be brought in the courts of Santa Clara County, California, USA. diff --git a/objects/paypal/paypal-checkout-sdk/README.md b/objects/paypal/paypal-checkout-sdk/README.md new file mode 100644 index 000000000..d8aedc008 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/README.md @@ -0,0 +1,169 @@ +# REST API SDK for PHP V2 + +![Home Image](homepage.jpg) + +__Welcome to PayPal PHP SDK__. This repository contains PayPal's PHP SDK and samples for [v2/checkout/orders](https://developer.paypal.com/docs/api/orders/v2/) and [v2/payments](https://developer.paypal.com/docs/api/payments/v2/) APIs. + +This is a part of the next major PayPal SDK. It includes a simplified interface to only provide simple model objects and blueprints for HTTP calls. This repo currently contains functionality for PayPal Checkout APIs which includes [Orders V2](https://developer.paypal.com/docs/api/orders/v2/) and [Payments V2](https://developer.paypal.com/docs/api/payments/v2/). + +Please refer to the [PayPal Checkout Integration Guide](https://developer.paypal.com/docs/checkout/) for more information. Also refer to [Setup your SDK](https://developer.paypal.com/docs/checkout/reference/server-integration/setup-sdk/) for additional information about setting up the SDK's. + +## Prerequisites + +PHP 5.6 and above + +An environment which supports TLS 1.2 (see the TLS-update site for more information) + +## Usage + +### Binaries + +It is not mandatory to fork this repository for using the PayPal SDK. You can refer [PayPal Checkout Server SDK](https://developer.paypal.com/docs/checkout/reference/server-integration) for configuring and working with SDK without forking this code. + +For contirbuting or referrring the samples, You can fork/refer this repository. + +### Setting up credentials +Get client ID and client secret by going to https://developer.paypal.com/developer/applications and generating a REST API app. Get Client ID and Secret from there. + +```php +require __DIR__ . '/vendor/autoload.php'; +use PayPalCheckoutSdk\Core\PayPalHttpClient; +use PayPalCheckoutSdk\Core\SandboxEnvironment; +// Creating an environment +$clientId = "<>"; +$clientSecret = "<>"; + +$environment = new SandboxEnvironment($clientId, $clientSecret); +$client = new PayPalHttpClient($environment); +``` + +## Examples +### Creating an Order +#### Code: +```php +// Construct a request object and set desired parameters +// Here, OrdersCreateRequest() creates a POST request to /v2/checkout/orders +use PayPalCheckoutSdk\Orders\OrdersCreateRequest; +$request = new OrdersCreateRequest(); +$request->prefer('return=representation'); +$request->body = [ + "intent" => "CAPTURE", + "purchase_units" => [[ + "reference_id" => "test_ref_id1", + "amount" => [ + "value" => "100.00", + "currency_code" => "USD" + ] + ]], + "application_context" => [ + "cancel_url" => "https://example.com/cancel", + "return_url" => "https://example.com/return" + ] + ]; + +try { + // Call API with your client and get a response for your call + $response = $client->execute($request); + + // If call returns body in response, you can get the deserialized version from the result attribute of the response + print_r($response); +}catch (HttpException $ex) { + echo $ex->statusCode; + print_r($ex->getMessage()); +} +``` +#### Example Output: +``` +Status Code: 201 +Id: 8GB67279RC051624C +Intent: CAPTURE +Gross_amount: + Currency_code: USD + Value: 100.00 +Purchase_units: + 1: + Amount: + Currency_code: USD + Value: 100.00 +Create_time: 2018-08-06T23:34:31Z +Links: + 1: + Href: https://api.sandbox.paypal.com/v2/checkout/orders/8GB67279RC051624C + Rel: self + Method: GET + 2: + Href: https://www.sandbox.paypal.com/checkoutnow?token=8GB67279RC051624C + Rel: approve + Method: GET + 3: + Href: https://api.sandbox.paypal.com/v2/checkout/orders/8GB67279RC051624C/capture + Rel: capture + Method: POST +Status: CREATED +``` + +## Capturing an Order +Before capture, Order should be approved by the buyer using the approval URL returned in the create order response. +### Code to Execute: +```php +use PayPalCheckoutSdk\Orders\OrdersCaptureRequest; +// Here, OrdersCaptureRequest() creates a POST request to /v2/checkout/orders +// $response->result->id gives the orderId of the order created above +$request = new OrdersCaptureRequest("APPROVED-ORDER-ID"); +$request->prefer('return=representation'); +try { + // Call API with your client and get a response for your call + $response = $client->execute($request); + + // If call returns body in response, you can get the deserialized version from the result attribute of the response + print_r($response); +}catch (HttpException $ex) { + echo $ex->statusCode; + print_r($ex->getMessage()); +} +``` + +#### Example Output: +``` +Status Code: 201 +Id: 8GB67279RC051624C +Create_time: 2018-08-06T23:39:11Z +Update_time: 2018-08-06T23:39:11Z +Payer: + Name: + Given_name: test + Surname: buyer + Email_address: test-buyer@paypal.com + Payer_id: KWADC7LXRRWCE + Phone: + Phone_number: + National_number: 408-411-2134 + Address: + Country_code: US +Links: + 1: + Href: https://api.sandbox.paypal.com/v2/checkout/orders/3L848818A2897925Y + Rel: self + Method: GET +Status: COMPLETED +``` + +## Running tests + +To run integration tests using your client id and secret, clone this repository and run the following command: +```sh +$ composer install +$ CLIENT_ID=YOUR_SANDBOX_CLIENT_ID CLIENT_SECRET=OUR_SANDBOX_CLIENT_SECRET composer integration +``` + +## Samples + +You can start off by trying out [creating and capturing an order](/samples/CaptureIntentExamples/RunAll.php) + +To try out different samples for both create and authorize intent check [this link](/samples) + +Note: Update the `PayPalClient.php` with your sandbox client credentials or pass your client credentials as environment variable whie executing the samples. + + +## License +Code released under [SDK LICENSE](LICENSE) diff --git a/objects/paypal/paypal-checkout-sdk/composer.json b/objects/paypal/paypal-checkout-sdk/composer.json new file mode 100644 index 000000000..0676fb4c9 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/composer.json @@ -0,0 +1,35 @@ +{ + "name": "paypal/paypal-checkout-sdk", + "description": "PayPal's PHP SDK for Checkout REST APIs", + "keywords": ["paypal", "payments", "rest", "sdk", "orders", "checkout"], + "type": "library", + "license": "https://github.com/paypal/Checkout-PHP-SDK/blob/master/LICENSE", + "homepage": "http://github.com/paypal/Checkout-PHP-SDK/", + "require": { + "paypal/paypalhttp": "1.0.0" + }, + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/Checkout-PHP-SDK/contributors" + } + ], + "require-dev": { + "phpunit/phpunit": "^5.7" + }, + "autoload": { + "psr-4": { + "PayPalCheckoutSdk\\": "lib/PayPalCheckoutSdk", + "Sample\\":"samples/" + } + }, + "autoload-dev": { + "psr-4": { + "Test\\":"tests/" + } + }, + "scripts": { + "unit": "phpunit --testsuite unit", + "integration": "phpunit --testsuite integration" + } +} diff --git a/objects/paypal/paypal-checkout-sdk/composer.phar b/objects/paypal/paypal-checkout-sdk/composer.phar new file mode 100644 index 000000000..801b9a95b Binary files /dev/null and b/objects/paypal/paypal-checkout-sdk/composer.phar differ diff --git a/objects/paypal/paypal-checkout-sdk/gen.yml b/objects/paypal/paypal-checkout-sdk/gen.yml new file mode 100644 index 000000000..b6f3f794d --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/gen.yml @@ -0,0 +1,6 @@ +--- +projectName: PayPalCheckoutSdk +language: php +sourcePath: lib/PayPalCheckoutSdk +testPath: tests +apiVersioning: false diff --git a/objects/paypal/paypal-checkout-sdk/homepage.jpg b/objects/paypal/paypal-checkout-sdk/homepage.jpg new file mode 100644 index 000000000..9b7aa61fc Binary files /dev/null and b/objects/paypal/paypal-checkout-sdk/homepage.jpg differ diff --git a/objects/paypal/paypal-checkout-sdk/init b/objects/paypal/paypal-checkout-sdk/init new file mode 100644 index 000000000..e69de29bb diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AccessToken.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AccessToken.php new file mode 100644 index 000000000..b6f1d2d61 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AccessToken.php @@ -0,0 +1,25 @@ +token = $token; + $this->tokenType = $tokenType; + $this->expiresIn = $expiresIn; + $this->createDate = time(); + } + + public function isExpired() + { + return time() >= $this->createDate + $this->expiresIn; + } +} \ No newline at end of file diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AccessTokenRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AccessTokenRequest.php new file mode 100644 index 000000000..5c3e26e5e --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AccessTokenRequest.php @@ -0,0 +1,27 @@ +headers["Authorization"] = "Basic " . $environment->authorizationString(); + $body = [ + "grant_type" => "client_credentials" + ]; + + if (!is_null($refreshToken)) + { + $body["grant_type"] = "refresh_token"; + $body["refresh_token"] = $refreshToken; + } + + $this->body = $body; + $this->headers["Content-Type"] = "application/x-www-form-urlencoded"; + } +} + diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AuthorizationInjector.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AuthorizationInjector.php new file mode 100644 index 000000000..0b38bba94 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AuthorizationInjector.php @@ -0,0 +1,51 @@ +client = $client; + $this->environment = $environment; + $this->refreshToken = $refreshToken; + } + + public function inject($request) + { + if (!$this->hasAuthHeader($request) && !$this->isAuthRequest($request)) + { + if (is_null($this->accessToken) || $this->accessToken->isExpired()) + { + $this->accessToken = $this->fetchAccessToken(); + } + $request->headers['Authorization'] = 'Bearer ' . $this->accessToken->token; + } + } + + private function fetchAccessToken() + { + $accessTokenResponse = $this->client->execute(new AccessTokenRequest($this->environment, $this->refreshToken)); + $accessToken = $accessTokenResponse->result; + return new AccessToken($accessToken->access_token, $accessToken->token_type, $accessToken->expires_in); + } + + private function isAuthRequest($request) + { + return $request instanceof AccessTokenRequest || $request instanceof RefreshTokenRequest; + } + + private function hasAuthHeader(HttpRequest $request) + { + return array_key_exists("Authorization", $request->headers); + } +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/FPTIInstrumentationInjector.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/FPTIInstrumentationInjector.php new file mode 100644 index 000000000..898a7505f --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/FPTIInstrumentationInjector.php @@ -0,0 +1,16 @@ +headers["sdk_name"] = "Checkout SDK"; + $request->headers["sdk_version"] = "1.0.1"; + $request->headers["sdk_tech_stack"] = "PHP " . PHP_VERSION; + $request->headers["api_integration_type"] = "PAYPALSDK"; + } +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/GzipInjector.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/GzipInjector.php new file mode 100644 index 000000000..202b6b1d5 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/GzipInjector.php @@ -0,0 +1,14 @@ +headers["Accept-Encoding"] = "gzip"; + } +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalEnvironment.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalEnvironment.php new file mode 100644 index 000000000..252864bb9 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalEnvironment.php @@ -0,0 +1,23 @@ +clientId = $clientId; + $this->clientSecret = $clientSecret; + } + + public function authorizationString() + { + return base64_encode($this->clientId . ":" . $this->clientSecret); + } +} + diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalHttpClient.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalHttpClient.php new file mode 100644 index 000000000..3b3c20574 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/PayPalHttpClient.php @@ -0,0 +1,27 @@ +refreshToken = $refreshToken; + $this->authInjector = new AuthorizationInjector($this, $environment, $refreshToken); + $this->addInjector($this->authInjector); + $this->addInjector(new GzipInjector()); + $this->addInjector(new FPTIInstrumentationInjector()); + } + + public function userAgent() + { + return UserAgent::getValue(); + } +} + diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/ProductionEnvironment.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/ProductionEnvironment.php new file mode 100644 index 000000000..20a47b2d5 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/ProductionEnvironment.php @@ -0,0 +1,16 @@ +headers["Authorization"] = "Basic " . $environment->authorizationString(); + $this->headers["Content-Type"] = "application/x-www-form-urlencoded"; + $this->body = [ + "grant_type" => "authorization_code", + "code" => $authorizationCode + ]; + } +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/SandboxEnvironment.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/SandboxEnvironment.php new file mode 100644 index 000000000..92c1f7afc --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/SandboxEnvironment.php @@ -0,0 +1,16 @@ +path = str_replace("{order_id}", urlencode($orderId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + + public function payPalClientMetadataId($payPalClientMetadataId) + { + $this->headers["PayPal-Client-Metadata-Id"] = $payPalClientMetadataId; + } + public function payPalRequestId($payPalRequestId) + { + $this->headers["PayPal-Request-Id"] = $payPalRequestId; + } + public function prefer($prefer) + { + $this->headers["Prefer"] = $prefer; + } +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersCaptureRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersCaptureRequest.php new file mode 100644 index 000000000..8af8a60fb --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersCaptureRequest.php @@ -0,0 +1,37 @@ +path = str_replace("{order_id}", urlencode($orderId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + + public function payPalClientMetadataId($payPalClientMetadataId) + { + $this->headers["PayPal-Client-Metadata-Id"] = $payPalClientMetadataId; + } + public function payPalRequestId($payPalRequestId) + { + $this->headers["PayPal-Request-Id"] = $payPalRequestId; + } + public function prefer($prefer) + { + $this->headers["Prefer"] = $prefer; + } +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersCreateRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersCreateRequest.php new file mode 100644 index 000000000..0d9f5a913 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersCreateRequest.php @@ -0,0 +1,31 @@ +headers["Content-Type"] = "application/json"; + } + + + public function payPalPartnerAttributionId($payPalPartnerAttributionId) + { + $this->headers["PayPal-Partner-Attribution-Id"] = $payPalPartnerAttributionId; + } + public function prefer($prefer) + { + $this->headers["Prefer"] = $prefer; + } +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersGetRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersGetRequest.php new file mode 100644 index 000000000..3d1c8f128 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersGetRequest.php @@ -0,0 +1,26 @@ +path = str_replace("{order_id}", urlencode($orderId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + + +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersPatchRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersPatchRequest.php new file mode 100644 index 000000000..4313c423c --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersPatchRequest.php @@ -0,0 +1,26 @@ +path = str_replace("{order_id}", urlencode($orderId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + + +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersValidateRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersValidateRequest.php new file mode 100644 index 000000000..0a68f90d3 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersValidateRequest.php @@ -0,0 +1,29 @@ +path = str_replace("{order_id}", urlencode($orderId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + + public function payPalClientMetadataId($payPalClientMetadataId) + { + $this->headers["PayPal-Client-Metadata-Id"] = $payPalClientMetadataId; + } +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsCaptureRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsCaptureRequest.php new file mode 100644 index 000000000..68d5e81bd --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsCaptureRequest.php @@ -0,0 +1,33 @@ +path = str_replace("{authorization_id}", urlencode($authorizationId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + + public function payPalRequestId($payPalRequestId) + { + $this->headers["PayPal-Request-Id"] = $payPalRequestId; + } + public function prefer($prefer) + { + $this->headers["Prefer"] = $prefer; + } +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsGetRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsGetRequest.php new file mode 100644 index 000000000..e088224ae --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsGetRequest.php @@ -0,0 +1,25 @@ +path = str_replace("{authorization_id}", urlencode($authorizationId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsReauthorizeRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsReauthorizeRequest.php new file mode 100644 index 000000000..7547ece5b --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsReauthorizeRequest.php @@ -0,0 +1,33 @@ +path = str_replace("{authorization_id}", urlencode($authorizationId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + + public function payPalRequestId($payPalRequestId) + { + $this->headers["PayPal-Request-Id"] = $payPalRequestId; + } + public function prefer($prefer) + { + $this->headers["Prefer"] = $prefer; + } +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsVoidRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsVoidRequest.php new file mode 100644 index 000000000..f5c0f74fc --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsVoidRequest.php @@ -0,0 +1,25 @@ +path = str_replace("{authorization_id}", urlencode($authorizationId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/CapturesGetRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/CapturesGetRequest.php new file mode 100644 index 000000000..5b9b33572 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/CapturesGetRequest.php @@ -0,0 +1,25 @@ +path = str_replace("{capture_id}", urlencode($captureId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/CapturesRefundRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/CapturesRefundRequest.php new file mode 100644 index 000000000..7624c6b20 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/CapturesRefundRequest.php @@ -0,0 +1,33 @@ +path = str_replace("{capture_id}", urlencode($captureId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + + public function payPalRequestId($payPalRequestId) + { + $this->headers["PayPal-Request-Id"] = $payPalRequestId; + } + public function prefer($prefer) + { + $this->headers["Prefer"] = $prefer; + } +} diff --git a/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/RefundsGetRequest.php b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/RefundsGetRequest.php new file mode 100644 index 000000000..cdf1b8af9 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/RefundsGetRequest.php @@ -0,0 +1,25 @@ +path = str_replace("{refund_id}", urlencode($refundId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + +} diff --git a/objects/paypal/paypal-checkout-sdk/phpunit.xml b/objects/paypal/paypal-checkout-sdk/phpunit.xml new file mode 100644 index 000000000..4e64bcbfc --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/phpunit.xml @@ -0,0 +1,9 @@ + + + + + + ./tests/ + + + diff --git a/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/AuthorizeOrder.php b/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/AuthorizeOrder.php new file mode 100644 index 000000000..06cc7755a --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/AuthorizeOrder.php @@ -0,0 +1,61 @@ +body = self::buildRequestBody(); + + $client = PayPalClient::client(); + $response = $client->execute($request); + if ($debug) + { + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Order ID: {$response->result->id}\n"; + print "Authorization ID: {$response->result->purchase_units[0]->payments->authorizations[0]->id}\n"; + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + print "Authorization Links:\n"; + foreach($response->result->purchase_units[0]->payments->authorizations[0]->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } + return $response; + } +} + +/** + * This is an driver function which invokes authorize order. + */ +if (!count(debug_backtrace())) +{ + AuthorizeOrder::authorizeOrder('1U242387CB956380X', true); +} \ No newline at end of file diff --git a/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/CaptureOrder.php b/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/CaptureOrder.php new file mode 100644 index 000000000..9dffd386b --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/CaptureOrder.php @@ -0,0 +1,55 @@ +body = self::buildRequestBody(); + $client = PayPalClient::client(); + $response = $client->execute($request); + + if ($debug) + { + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Capture ID: {$response->result->id}\n"; + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } + return $response; + } +} + +/** + * Driver function for invoking the capture flow. + */ +if (!count(debug_backtrace())) +{ + CaptureOrder::captureOrder('18A38324BV5456924', true); +} \ No newline at end of file diff --git a/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/CreateOrder.php b/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/CreateOrder.php new file mode 100644 index 000000000..e8f96cef7 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/CreateOrder.php @@ -0,0 +1,237 @@ + 'AUTHORIZE', + 'application_context' => + array( + 'return_url' => 'https://example.com/return', + 'cancel_url' => 'https://example.com/cancel', + 'brand_name' => 'EXAMPLE INC', + 'locale' => 'en-US', + 'landing_page' => 'BILLING', + 'shipping_preference' => 'SET_PROVIDED_ADDRESS', + 'user_action' => 'PAY_NOW', + ), + 'purchase_units' => + array( + 0 => + array( + 'reference_id' => 'PUHF', + 'description' => 'Sporting Goods', + 'custom_id' => 'CUST-HighFashions', + 'soft_descriptor' => 'HighFashions', + 'amount' => + array( + 'currency_code' => 'USD', + 'value' => '220.00', + 'breakdown' => + array( + 'item_total' => + array( + 'currency_code' => 'USD', + 'value' => '180.00', + ), + 'shipping' => + array( + 'currency_code' => 'USD', + 'value' => '20.00', + ), + 'handling' => + array( + 'currency_code' => 'USD', + 'value' => '10.00', + ), + 'tax_total' => + array( + 'currency_code' => 'USD', + 'value' => '20.00', + ), + 'shipping_discount' => + array( + 'currency_code' => 'USD', + 'value' => '10.00', + ), + ), + ), + 'items' => + array( + 0 => + array( + 'name' => 'T-Shirt', + 'description' => 'Green XL', + 'sku' => 'sku01', + 'unit_amount' => + array( + 'currency_code' => 'USD', + 'value' => '90.00', + ), + 'tax' => + array( + 'currency_code' => 'USD', + 'value' => '10.00', + ), + 'quantity' => '1', + 'category' => 'PHYSICAL_GOODS', + ), + 1 => + array( + 'name' => 'Shoes', + 'description' => 'Running, Size 10.5', + 'sku' => 'sku02', + 'unit_amount' => + array( + 'currency_code' => 'USD', + 'value' => '45.00', + ), + 'tax' => + array( + 'currency_code' => 'USD', + 'value' => '5.00', + ), + 'quantity' => '2', + 'category' => 'PHYSICAL_GOODS', + ), + ), + 'shipping' => + array( + 'method' => 'United States Postal Service', + 'name' => + array( + 'full_name' => 'John Doe', + ), + 'address' => + array( + 'address_line_1' => '123 Townsend St', + 'address_line_2' => 'Floor 6', + 'admin_area_2' => 'San Francisco', + 'admin_area_1' => 'CA', + 'postal_code' => '94107', + 'country_code' => 'US', + ), + ), + ), + ), + ); + } + + /** + * Setting up the JSON request body for creating the Order with minimum request body. The Intent in the + * request body should be set as "AUTHORIZE" for authorize intent flow. + * + */ + private static function buildMinimumRequestBody() + { + return array( + 'intent' => 'AUTHORIZE', + 'application_context' => + array( + 'return_url' => 'https://example.com/return', + 'cancel_url' => 'https://example.com/cancel' + ), + 'purchase_units' => + array( + 0 => + array( + 'amount' => + array( + 'currency_code' => 'USD', + 'value' => '220.00' + ) + ) + ) + ); + } + + /** + * This is the sample function which can be used to create an order. It uses the + * JSON body returned by buildRequestBody() to create an new Order. + */ + public static function createOrder($debug=false) + { + $request = new OrdersCreateRequest(); + $request->headers["prefer"] = "return=representation"; + $request->body = CreateOrder::buildRequestBody(); + + $client = PayPalClient::client(); + $response = $client->execute($request); + if ($debug) + { + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Order ID: {$response->result->id}\n"; + print "Intent: {$response->result->intent}\n"; + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + + print "Gross Amount: {$response->result->purchase_units[0]->amount->currency_code} {$response->result->purchase_units[0]->amount->value}\n"; + + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } + + + return $response; + } + + /** + * This is the sample function which can be used to create an order. It uses the + * JSON body returned by buildMinimumRequestBody() to create an new Order. + */ + public static function createOrderWithMinimumBody($debug=false) + { + $request = new OrdersCreateRequest(); + $request->headers["prefer"] = "return=representation"; + $request->body = CreateOrder::buildMinimumRequestBody(); + + $client = PayPalClient::client(); + $response = $client->execute($request); + if ($debug) + { + print "Order With Minimum Body\n"; + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Order ID: {$response->result->id}\n"; + print "Intent: {$response->result->intent}\n"; + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + + print "Gross Amount: {$response->result->purchase_units[0]->amount->currency_code} {$response->result->purchase_units[0]->amount->value}\n"; + + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } + + + return $response; + } +} + + + +if (!count(debug_backtrace())) +{ + CreateOrder::createOrder(true); + CreateOrder::createOrderWithMinimumBody(true); +} \ No newline at end of file diff --git a/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/RunAll.php b/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/RunAll.php new file mode 100644 index 000000000..708be9d68 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/AuthorizeIntentExamples/RunAll.php @@ -0,0 +1,82 @@ +statusCode == 201) +{ + $orderId = $order->result->id; + print "Links:\n"; + for ($i = 0; $i < count($order->result->links); ++$i) + { + $link = $order->result->links[$i]; + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + print "Created Successfully\n"; + print "Copy approve link and paste it in browser. Login with buyer account and follow the instructions.\nOnce approved hit enter...\n"; +} +else { + exit(1); +} + +$handle = fopen ("php://stdin","r"); +$line = fgets($handle); +fclose($handle); + +print "Authorizing Order...\n"; +$response = AuthorizeOrder::authorizeOrder($orderId); +$authId = ""; + +if ($response->statusCode == 201) +{ + print "Authorized Successfully\n"; + $authId = $response->result->purchase_units[0]->payments->authorizations[0]->id; +} +else { + exit(1); +} + +print "\nCapturing Order...\n"; +$response = CaptureOrder::captureOrder($authId); +if ($response->statusCode == 201) +{ + print "Captured Successfully\n"; + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + $captureId = $response->result->id; + print "Capture ID: {$captureId}\n"; + print "Links:\n"; + for ($i = 0; $i < count($response->result->links); ++$i){ + $link = $response->result->links[$i]; + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } +} +else { + exit(1); +} + +print "\nRefunding Order...\n"; +$response = RefundOrder::refundOrder($captureId); +if ($response->statusCode == 201) +{ + print "Refunded Successfully\n"; + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Refund ID: {$response->result->id}\n"; + print "Links:\n"; + for ($i = 0; $i < count($response->result->links); ++$i){ + $link = $response->result->links[$i]; + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } +} +else { + exit(1); +} diff --git a/objects/paypal/paypal-checkout-sdk/samples/CaptureIntentExamples/CaptureOrder.php b/objects/paypal/paypal-checkout-sdk/samples/CaptureIntentExamples/CaptureOrder.php new file mode 100644 index 000000000..931d5d95d --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/CaptureIntentExamples/CaptureOrder.php @@ -0,0 +1,60 @@ +execute($request); + if ($debug) + { + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Order ID: {$response->result->id}\n"; + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + print "Capture Ids:\n"; + foreach($response->result->purchase_units as $purchase_unit) + { + foreach($purchase_unit->payments->captures as $capture) + { + print "\t{$capture->id}"; + } + } + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } + + return $response; + } +} + +/** + * This is the driver function which invokes the captureOrder function with + * Approved Order Id to capture the order payment. + */ +if (!count(debug_backtrace())) +{ + CaptureOrder::captureOrder('0F105083N67049335', true); +} \ No newline at end of file diff --git a/objects/paypal/paypal-checkout-sdk/samples/CaptureIntentExamples/CreateOrder.php b/objects/paypal/paypal-checkout-sdk/samples/CaptureIntentExamples/CreateOrder.php new file mode 100644 index 000000000..37a8e6347 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/CaptureIntentExamples/CreateOrder.php @@ -0,0 +1,178 @@ + 'CAPTURE', + 'application_context' => + array( + 'return_url' => 'https://example.com/return', + 'cancel_url' => 'https://example.com/cancel', + 'brand_name' => 'EXAMPLE INC', + 'locale' => 'en-US', + 'landing_page' => 'BILLING', + 'shipping_preference' => 'SET_PROVIDED_ADDRESS', + 'user_action' => 'PAY_NOW', + ), + 'purchase_units' => + array( + 0 => + array( + 'reference_id' => 'PUHF', + 'description' => 'Sporting Goods', + 'custom_id' => 'CUST-HighFashions', + 'soft_descriptor' => 'HighFashions', + 'amount' => + array( + 'currency_code' => 'USD', + 'value' => '220.00', + 'breakdown' => + array( + 'item_total' => + array( + 'currency_code' => 'USD', + 'value' => '180.00', + ), + 'shipping' => + array( + 'currency_code' => 'USD', + 'value' => '20.00', + ), + 'handling' => + array( + 'currency_code' => 'USD', + 'value' => '10.00', + ), + 'tax_total' => + array( + 'currency_code' => 'USD', + 'value' => '20.00', + ), + 'shipping_discount' => + array( + 'currency_code' => 'USD', + 'value' => '10.00', + ), + ), + ), + 'items' => + array( + 0 => + array( + 'name' => 'T-Shirt', + 'description' => 'Green XL', + 'sku' => 'sku01', + 'unit_amount' => + array( + 'currency_code' => 'USD', + 'value' => '90.00', + ), + 'tax' => + array( + 'currency_code' => 'USD', + 'value' => '10.00', + ), + 'quantity' => '1', + 'category' => 'PHYSICAL_GOODS', + ), + 1 => + array( + 'name' => 'Shoes', + 'description' => 'Running, Size 10.5', + 'sku' => 'sku02', + 'unit_amount' => + array( + 'currency_code' => 'USD', + 'value' => '45.00', + ), + 'tax' => + array( + 'currency_code' => 'USD', + 'value' => '5.00', + ), + 'quantity' => '2', + 'category' => 'PHYSICAL_GOODS', + ), + ), + 'shipping' => + array( + 'method' => 'United States Postal Service', + 'name' => + array( + 'full_name' => 'John Doe', + ), + 'address' => + array( + 'address_line_1' => '123 Townsend St', + 'address_line_2' => 'Floor 6', + 'admin_area_2' => 'San Francisco', + 'admin_area_1' => 'CA', + 'postal_code' => '94107', + 'country_code' => 'US', + ), + ), + ), + ), + ); + } + + /** + * This is the sample function which can be sued to create an order. It uses the + * JSON body returned by buildRequestBody() to create an new Order. + */ + public static function createOrder($debug=false) + { + $request = new OrdersCreateRequest(); + $request->headers["prefer"] = "return=representation"; + $request->body = self::buildRequestBody(); + + $client = PayPalClient::client(); + $response = $client->execute($request); + if ($debug) + { + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Order ID: {$response->result->id}\n"; + print "Intent: {$response->result->intent}\n"; + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } + + + return $response; + } +} + + +/** + * This is the driver function which invokes the createOrder function to create + * an sample order. + */ +if (!count(debug_backtrace())) +{ + CreateOrder::createOrder(true); +} + + + diff --git a/objects/paypal/paypal-checkout-sdk/samples/CaptureIntentExamples/RunAll.php b/objects/paypal/paypal-checkout-sdk/samples/CaptureIntentExamples/RunAll.php new file mode 100644 index 000000000..e576ff06e --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/CaptureIntentExamples/RunAll.php @@ -0,0 +1,74 @@ +statusCode == 201) +{ + $orderId = $order->result->id; + print "Links:\n"; + for ($i = 0; $i < count($order->result->links); ++$i) + { + $link = $order->result->links[$i]; + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + print "Created Successfully\n"; + print "Copy approve link and paste it in browser. Login with buyer account and follow the instructions.\nOnce approved hit enter...\n"; +} +else { + exit(1); +} + +$handle = fopen ("php://stdin","r"); +$line = fgets($handle); +fclose($handle); + +print "Capturing Order...\n"; +$response = CaptureOrder::captureOrder($orderId); +if ($response->statusCode == 201) +{ + print "Captured Successfully\n"; + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Order ID: {$response->result->id}\n"; + print "Links:\n"; + for ($i = 0; $i < count($response->result->links); ++$i){ + $link = $response->result->links[$i]; + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + foreach($response->result->purchase_units as $purchase_unit) + { + foreach($purchase_unit->payments->captures as $capture) + { + $captureId = $capture->id; + } + } +} +else { + exit(1); +} + +print "\nRefunding Order...\n"; +$response = RefundOrder::refundOrder($captureId); +if ($response->statusCode == 201) +{ + print "Refunded Successfully\n"; + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Refund ID: {$response->result->id}\n"; + print "Links:\n"; + for ($i = 0; $i < count($response->result->links); ++$i){ + $link = $response->result->links[$i]; + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } +} +else { + exit(1); +} diff --git a/objects/paypal/paypal-checkout-sdk/samples/ErrorSample.php b/objects/paypal/paypal-checkout-sdk/samples/ErrorSample.php new file mode 100644 index 000000000..8daf96b5e --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/ErrorSample.php @@ -0,0 +1,94 @@ + $val) + { + $pretty .= $pre . ucfirst($key) .": "; + if (strcmp(gettype($val), "array") == 0){ + $pretty .= "\n"; + $sno = 1; + foreach ($val as $value) + { + $pretty .= $pre . "\t" . $sno++ . ":\n"; + $pretty .= self::prettyPrint($value, $pre . "\t\t"); + } + } + else { + $pretty .= $val . "\n"; + } + } + return $pretty; + } + + /** + * Body has no required parameters (intent, purchase_units) + */ + public static function createError1() + { + $request = new OrdersCreateRequest(); + $request->body = "{}"; + print "Request Body: {}\n\n"; + + print "Response:\n"; + try{ + $client = PayPalClient::client(); + $response = $client->execute($request); + } + catch(HttpException $exception){ + $message = json_decode($exception->getMessage(), true); + print "Status Code: {$exception->statusCode}\n"; + print(self::prettyPrint($message)); + } + } + + /** + * Body has invalid parameter value for intent + */ + public static function createError2() + { + $request = new OrdersCreateRequest(); + $request->body = array ( + 'intent' => 'INVALID', + 'purchase_units' => + array ( + 0 => + array ( + 'amount' => + array ( + 'currency_code' => 'USD', + 'value' => '100.00', + ), + ), + ), + ); + print "Request Body:\n" . json_encode($request->body, JSON_PRETTY_PRINT) . "\n\n"; + + try{ + $client = PayPalClient::client(); + $response = $client->execute($request); + } + catch(HttpException $exception){ + print "Response:\n"; + $message = json_decode($exception->getMessage(), true); + print "Status Code: {$exception->statusCode}\n"; + print(self::prettyPrint($message)); + } + + } +} + +print "Calling createError1 (Body has no required parameters (intent, purchase_units))\n"; +ErrorSample::createError1(); + +print "\n\nCalling createError2 (Body has invalid parameter value for intent)\n"; +ErrorSample::createError2(); diff --git a/objects/paypal/paypal-checkout-sdk/samples/GetOrder.php b/objects/paypal/paypal-checkout-sdk/samples/GetOrder.php new file mode 100644 index 000000000..f89ac9d56 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/GetOrder.php @@ -0,0 +1,54 @@ +execute(new OrdersGetRequest($orderId)); + /** + * Enable below line to print complete response as JSON. + */ + //print json_encode($response->result); + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Order ID: {$response->result->id}\n"; + print "Intent: {$response->result->intent}\n"; + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + + print "Gross Amount: {$response->result->purchase_units[0]->amount->currency_code} {$response->result->purchase_units[0]->amount->value}\n"; + + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } +} + +/** + * This is the driver function which invokes the getOrder function to retrieve + * an sample order. + * + * To get the correct Order id, we are using the createOrder to create new order + * and then we are using the newly created order id. + */ +if (!count(debug_backtrace())) +{ + $createdOrder = CreateOrder::createOrder()->result; + GetOrder::getOrder($createdOrder ->id); +} \ No newline at end of file diff --git a/objects/paypal/paypal-checkout-sdk/samples/PatchOrder.php b/objects/paypal/paypal-checkout-sdk/samples/PatchOrder.php new file mode 100644 index 000000000..cba8152e6 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/PatchOrder.php @@ -0,0 +1,82 @@ + + array ( + 'op' => 'replace', + 'path' => '/intent', + 'value' => 'CAPTURE', + ), + 1 => + array ( + 'op' => 'replace', + 'path' => '/purchase_units/@reference_id==\'PUHF\'/amount', + 'value' => + array ( + 'currency_code' => 'USD', + 'value' => '200.00', + 'breakdown' => + array ( + 'item_total' => + array ( + 'currency_code' => 'USD', + 'value' => '180.00', + ), + 'tax_total' => + array ( + 'currency_code' => 'USD', + 'value' => '20.00', + ), + ), + ), + ), + ); + } + + public static function patchOrder($orderId) + { + + $client = PayPalClient::client(); + + $request = new OrdersPatchRequest($orderId); + $request->body = PatchOrder::buildRequestBody(); + $client->execute($request); + + $response = $client->execute(new OrdersGetRequest($orderId)); + + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Order ID: {$response->result->id}\n"; + print "Intent: {$response->result->intent}\n"; + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + + print "Gross Amount: {$response->result->purchase_units[0]->amount->currency_code} {$response->result->purchase_units[0]->amount->value}\n"; + + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } +} + +if (!count(debug_backtrace())) +{ + print "Before PATCH:\n"; + $createdOrder = CreateOrder::createOrder(true)->result; + print "\nAfter PATCH (Changed Intent and Amount):\n"; + PatchOrder::patchOrder($createdOrder->id); +} \ No newline at end of file diff --git a/objects/paypal/paypal-checkout-sdk/samples/PayPalClient.php b/objects/paypal/paypal-checkout-sdk/samples/PayPalClient.php new file mode 100644 index 000000000..397b8d2d8 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/PayPalClient.php @@ -0,0 +1,35 @@ +>"; + $clientSecret = getenv("CLIENT_SECRET") ?: "<>"; + return new SandboxEnvironment($clientId, $clientSecret); + } +} diff --git a/objects/paypal/paypal-checkout-sdk/samples/RefundOrder.php b/objects/paypal/paypal-checkout-sdk/samples/RefundOrder.php new file mode 100644 index 000000000..fc9428fd5 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/samples/RefundOrder.php @@ -0,0 +1,60 @@ + + array( + 'value' => '20.00', + 'currency_code' => 'USD' + ) + ); + } + + /** + * This function can be used to preform refund on the capture. + */ + public static function refundOrder($captureId, $debug=false) + { + $request = new CapturesRefundRequest($captureId); + $request->body = self::buildRequestBody(); + $client = PayPalClient::client(); + $response = $client->execute($request); + + if ($debug) + { + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->status}\n"; + print "Order ID: {$response->result->id}\n"; + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } + return $response; + } +} + +/** + * This is the driver function which invokes the refund capture function with + * Capture Id to perform refund on capture. + */ +if (!count(debug_backtrace())) +{ + RefundOrder::refundOrder('8XL09935J2224701N', true); +} diff --git a/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersAuthorizeTest.php b/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersAuthorizeTest.php new file mode 100644 index 000000000..981ce2656 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersAuthorizeTest.php @@ -0,0 +1,26 @@ +markTestSkipped("Need an approved Order ID to execute this test."); + $request = new OrdersAuthorizeRequest('ORDER-ID'); + $request->body = $this->buildRequestBody(); + + $client = TestHarness::client(); + $response = $client->execute($request); + $this->assertEquals(201, $response->statusCode); + $this->assertNotNull($response->result); + } +} diff --git a/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersCaptureTest.php b/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersCaptureTest.php new file mode 100644 index 000000000..683f70c59 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersCaptureTest.php @@ -0,0 +1,26 @@ +markTestSkipped("Need an approved Order ID to execute this test."); + $request = new OrdersCaptureRequest('ORDER-ID'); + + $client = TestHarness::client(); + $response = $client->execute($request); + $this->assertEquals(201, $response->statusCode); + $this->assertNotNull($response->result); + } +} diff --git a/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersCreateTest.php b/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersCreateTest.php new file mode 100644 index 000000000..d2d6dad6d --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersCreateTest.php @@ -0,0 +1,69 @@ + "CAPTURE", + "purchase_units" => [[ + "reference_id" => "test_ref_id1", + "amount" => [ + "value" => "100.00", + "currency_code" => "USD" + ] + ]], + "redirect_urls" => [ + "cancel_url" => "https://example.com/cancel", + "return_url" => "https://example.com/return" + ] + ]; + } + + public static function create($client) { + $request = new OrdersCreateRequest(); + $request->prefer("return=representation"); + $request->body = self::buildRequestBody(); + return $client->execute($request); + } + + public function testOrdersCreateRequest() + { + $client = TestHarness::client(); + $response = self::create($client); + $this->assertEquals(201, $response->statusCode); + $this->assertNotNull($response->result); + + $createdOrder = $response->result; + $this->assertNotNull($createdOrder->id); + $this->assertNotNull($createdOrder->purchase_units); + $this->assertEquals(1, count($createdOrder->purchase_units)); + $firstPurchaseUnit = $createdOrder->purchase_units[0]; + $this->assertEquals("test_ref_id1", $firstPurchaseUnit->reference_id); + $this->assertEquals("USD", $firstPurchaseUnit->amount->currency_code); + $this->assertEquals("100.00", $firstPurchaseUnit->amount->value); + + $this->assertNotNull($createdOrder->create_time); + $this->assertNotNull($createdOrder->links); + $foundApproveUrl = false; + foreach ($createdOrder->links as $link) { + if ("approve" === $link->rel) { + $foundApproveUrl = true; + $this->assertNotNull($link->href); + $this->assertEquals("GET", $link->method); + } + } + $this->assertTrue($foundApproveUrl); + $this->assertEquals("CREATED", $createdOrder->status); + } +} diff --git a/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersGetTest.php b/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersGetTest.php new file mode 100644 index 000000000..12fb9b0f8 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersGetTest.php @@ -0,0 +1,48 @@ +result->id); + $response = $client->execute($request); + $this->assertEquals(200, $response->statusCode); + $this->assertNotNull($response->result); + + $createdOrder = $response->result; + $this->assertNotNull($createdOrder->id); + $this->assertNotNull($createdOrder->purchase_units); + $this->assertEquals(1, count($createdOrder->purchase_units)); + $firstPurchaseUnit = $createdOrder->purchase_units[0]; + $this->assertEquals("test_ref_id1", $firstPurchaseUnit->reference_id); + $this->assertEquals("USD", $firstPurchaseUnit->amount->currency_code); + $this->assertEquals("100.00", $firstPurchaseUnit->amount->value); + + $this->assertNotNull($createdOrder->create_time); + $this->assertNotNull($createdOrder->links); + $foundApproveUrl = false; + foreach ($createdOrder->links as $link) { + if ("approve" === $link->rel) { + $foundApproveUrl = true; + $this->assertNotNull($link->href); + $this->assertEquals("GET", $link->method); + } + } + $this->assertTrue($foundApproveUrl); + $this->assertEquals("CREATED", $createdOrder->status); + } +} diff --git a/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersPatchTest.php b/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersPatchTest.php new file mode 100644 index 000000000..1eaa30710 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/tests/Orders/OrdersPatchTest.php @@ -0,0 +1,73 @@ + "add", + "path" => "/purchase_units/@reference_id=='test_ref_id1'/description", + "value" => "added_description" + ], + [ + "op" => "replace", + "path" => "/purchase_units/@reference_id=='test_ref_id1'/amount", + "value" => [ + "currency_code" => "USD", + "value" => "200.00" + ] + ] + ]; + } + + public function testOrdersPatchRequest() + { + $client = TestHarness::client(); + $createdOrder = OrdersCreateTest::create($client); + + $request = new OrdersPatchRequest($createdOrder->result->id); + $request->body = $this->buildRequestBody(); + $response = $client->execute($request); + $this->assertEquals(204, $response->statusCode); + + $request = new OrdersGetRequest($createdOrder->result->id); + $response = $client->execute($request); + $this->assertEquals(200, $response->statusCode); + $this->assertNotNull($response->result); + + $createdOrder = $response->result; + $this->assertNotNull($createdOrder->id); + $this->assertNotNull($createdOrder->purchase_units); + $this->assertEquals(1, count($createdOrder->purchase_units)); + $firstPurchaseUnit = $createdOrder->purchase_units[0]; + $this->assertEquals("test_ref_id1", $firstPurchaseUnit->reference_id); + $this->assertEquals("USD", $firstPurchaseUnit->amount->currency_code); + $this->assertEquals("200.00", $firstPurchaseUnit->amount->value); + $this->assertEquals("added_description", $firstPurchaseUnit->description); + + $this->assertNotNull($createdOrder->create_time); + $this->assertNotNull($createdOrder->links); + $foundApproveUrl = false; + foreach ($createdOrder->links as $link) { + if ("approve" === $link->rel) { + $foundApproveUrl = true; + $this->assertNotNull($link->href); + $this->assertEquals("GET", $link->method); + } + } + $this->assertTrue($foundApproveUrl); + $this->assertEquals("CREATED", $createdOrder->status); + } +} diff --git a/objects/paypal/paypal-checkout-sdk/tests/TestHarness.php b/objects/paypal/paypal-checkout-sdk/tests/TestHarness.php new file mode 100644 index 000000000..66b4abe20 --- /dev/null +++ b/objects/paypal/paypal-checkout-sdk/tests/TestHarness.php @@ -0,0 +1,24 @@ +>"; + $clientSecret = getenv("CLIENT_SECRET") ?: "<>"; + return new SandboxEnvironment($clientId, $clientSecret); + } +} diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/LICENSE b/objects/paypal/paypal-payouts-sdk/LICENSE similarity index 99% copy from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/LICENSE copy to objects/paypal/paypal-payouts-sdk/LICENSE index 11848248b..7d9fb855c 100644 --- a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/LICENSE +++ b/objects/paypal/paypal-payouts-sdk/LICENSE @@ -1,86 +1,86 @@ The PayPal PHP SDK is released under the following license: - Copyright (c) 2013-2016 PAYPAL, INC. + Copyright (c) 2013-2020 PAYPAL, INC. SDK LICENSE NOTICE TO USER: PayPal, Inc. is providing the Software and Documentation for use under the terms of this Agreement. Any use, reproduction, modification or distribution of the Software or Documentation, or any derivatives or portions hereof, constitutes your acceptance of this Agreement. As used in this Agreement, "PayPal" means PayPal, Inc. "Software" means the software code accompanying this agreement. "Documentation" means the documents, specifications and all other items accompanying this Agreement other than the Software. 1. LICENSE GRANT Subject to the terms of this Agreement, PayPal hereby grants you a non-exclusive, worldwide, royalty free license to use, reproduce, prepare derivative works from, publicly display, publicly perform, distribute and sublicense the Software for any purpose, provided the copyright notice below appears in a conspicuous location within the source code of the distributed Software and this license is distributed in the supporting documentation of the Software you distribute. Furthermore, you must comply with all third party licenses in order to use the third party software contained in the Software. Subject to the terms of this Agreement, PayPal hereby grants you a non-exclusive, worldwide, royalty free license to use, reproduce, publicly display, publicly perform, distribute and sublicense the Documentation for any purpose. You may not modify the Documentation. No title to the intellectual property in the Software or Documentation is transferred to you under the terms of this Agreement. You do not acquire any rights to the Software or the Documentation except as expressly set forth in this Agreement. If you choose to distribute the Software in a commercial product, you do so with the understanding that you agree to defend, indemnify and hold harmless PayPal and its suppliers against any losses, damages and costs arising from the claims, lawsuits or other legal actions arising out of such distribution. You may distribute the Software in object code form under your own license, provided that your license agreement: (a) complies with the terms and conditions of this license agreement; (b) effectively disclaims all warranties and conditions, express or implied, on behalf of PayPal; (c) effectively excludes all liability for damages on behalf of PayPal; (d) states that any provisions that differ from this Agreement are offered by you alone and not PayPal; and (e) states that the Software is available from you or PayPal and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. 2. DISCLAIMER OF WARRANTY PAYPAL LICENSES THE SOFTWARE AND DOCUMENTATION TO YOU ONLY ON AN "AS IS" BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. PAYPAL MAKES NO WARRANTY THAT THE SOFTWARE OR DOCUMENTATION WILL BE ERROR-FREE. Each user of the Software or Documentation is solely responsible for determining the appropriateness of using and distributing the Software and Documentation and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs, or equipment, and unavailability or interruption of operations. Use of the Software and Documentation is made with the understanding that PayPal will not provide you with any technical or customer support or maintenance. Some states or jurisdictions do not allow the exclusion of implied warranties or limitations on how long an implied warranty may last, so the above limitations may not apply to you. To the extent permissible, any implied warranties are limited to ninety (90) days. 3. LIMITATION OF LIABILITY PAYPAL AND ITS SUPPLIERS SHALL NOT BE LIABLE FOR LOSS OR DAMAGE ARISING OUT OF THIS AGREEMENT OR FROM THE USE OF THE SOFTWARE OR DOCUMENTATION. IN NO EVENT WILL PAYPAL OR ITS SUPPLIERS BE LIABLE TO YOU OR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, INCIDENTAL, OR SPECIAL DAMAGES INCLUDING LOST PROFITS, LOST SAVINGS, COSTS, FEES, OR EXPENSES OF ANY KIND ARISING OUT OF ANY PROVISION OF THIS AGREEMENT OR THE USE OR THE INABILITY TO USE THE SOFTWARE OR DOCUMENTATION, HOWEVER CAUSED AND UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE), EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. PAYPAL'S AGGREGATE LIABILITY AND THAT OF ITS SUPPLIERS UNDER OR IN CONNECTION WITH THIS AGREEMENT SHALL BE LIMITED TO THE AMOUNT PAID BY YOU FOR THE SOFTWARE AND DOCUMENTATION. 4. TRADEMARK USAGE PayPal is a trademark PayPal, Inc. in the United States and other countries. Such trademarks may not be used to endorse or promote any product unless expressly permitted under separate agreement with PayPal. 5. TERM Your rights under this Agreement shall terminate if you fail to comply with any of the material terms or conditions of this Agreement and do not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all your rights under this Agreement terminate, you agree to cease use and distribution of the Software and Documentation as soon as reasonably practicable. 6. GOVERNING LAW AND JURISDICTION. This Agreement is governed by the statutes and laws of the State of California, without regard to the conflicts of law principles thereof. If any part of this Agreement is found void and unenforceable, it will not affect the validity of the balance of the Agreement, which shall remain valid and enforceable according to its terms. Any dispute arising out of or related to this Agreement - shall be brought in the courts of Santa Clara County, California, USA. + shall be brought in the courts of Santa Clara County, California, USA. \ No newline at end of file diff --git a/objects/paypal/paypal-payouts-sdk/README.md b/objects/paypal/paypal-payouts-sdk/README.md new file mode 100644 index 000000000..86d007488 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/README.md @@ -0,0 +1,110 @@ +# PayPal Payouts PHP SDK v2 + +![Home Image](homepage.jpg) + +__Welcome to PayPal Payouts__. This repository contains PayPal's PHP SDK for Payouts and samples for [v1/payments/payouts](https://developer.paypal.com/docs/api/payments.payouts-batch/v1/) APIs. + +This is a part of the next major PayPal SDK. It includes a simplified interface to only provide simple model objects and blueprints for HTTP calls. This repo currently contains functionality for PayPal Payouts APIs which includes [Payouts](https://developer.paypal.com/docs/api/payments.payouts-batch/v1/). + +Please refer to the [PayPal Payouts Integration Guide](https://developer.paypal.com/docs/payouts/) for more information. Also refer to [Setup your SDK](https://developer.paypal.com/docs/payouts/reference/setup-sdk) for additional information about setting up the SDK's. + +## Prerequisites + +PHP 5.6 and above + +An environment which supports TLS 1.2 (see the TLS-update site for more information) + +## Usage +### Binaries + +It is not necessary to fork this repository for using the PayPal SDK. Please take a look at [PayPal Payouts Server SDK](https://developer.paypal.com/docs/payouts/reference/setup-sdk/#install-the-sdk) for configuring and working with SDK without forking this code. + +For contributing to this repository or using the samples you can fork this repository. + +### Setting up credentials + +Get client ID and client secret by going to https://developer.paypal.com/developer/applications and generating a REST API app. Get Client ID and Secret from there. + +```PHP +require __DIR__ . '/vendor/autoload.php'; +use PaypalPayoutsSDK\Core\PayPalHttpClient; +use PaypalPayoutsSDK\Core\SandboxEnvironment; +// Creating an environment +$clientId = "<>"; +$clientSecret = "<>"; + +$environment = new SandboxEnvironment($clientId, $clientSecret); +$client = new PayPalHttpClient($environment); +``` + +## Examples +### Creating a Payout +This will create a Payout and print batch id for the created Payouts + +```PHP +use PaypalPayoutsSDK\Payouts\PayoutsPostRequest; +$request = new PayoutsPostRequest(); +$body= json_decode( + '{ + "sender_batch_header": + { + "email_subject": "SDK payouts test txn" + }, + "items": [ + { + "recipient_type": "EMAIL", + "receiver": "payouts2342@paypal.com", + "note": "Your 1$ payout", + "sender_item_id": "Test_txn_12", + "amount": + { + "currency": "USD", + "value": "1.00" + } + }] + }', + true); +$request->body = $body; +$client = PayPalClient::client(); +$response = $client->execute($request); +print "Status Code: {$response->statusCode}\n"; +print "Status: {$response->result->batch_header->batch_status}\n"; +print "Batch ID: {$response->result->batch_header->payout_batch_id}\n"; +print "Links:\n"; +foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } +echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + +``` + +### Retrieve a Payouts Batch +This will retrieve a payouts batch +```PHP + $request = new PayoutsGetRequest($batchId); + $response = $client->execute($request); + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + + +``` +## Running tests + +To run integration tests using your client id and secret, clone this repository and run the following command: + +```sh +$ composer install +$ CLIENT_ID=YOUR_SANDBOX_CLIENT_ID CLIENT_SECRET=OUR_SANDBOX_CLIENT_SECRET composer unit +``` + +You may use the client id and secret above for demonstration purposes. + + +## Samples + +You can start off by trying out [Samples](/samples). + +Note: Update the `PayPalClient.php` with your sandbox client credentials or pass your client credentials as environment variable while executing the samples. + +## License +Code released under [SDK LICENSE](LICENSE) diff --git a/objects/paypal/paypal-payouts-sdk/composer.json b/objects/paypal/paypal-payouts-sdk/composer.json new file mode 100644 index 000000000..f5f8456f7 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/composer.json @@ -0,0 +1,35 @@ +{ + "name": "paypal/paypal-payouts-sdk", + "description": "PayPal's PHP SDK for Payouts REST APIs", + "keywords": ["paypal", "payouts", "rest", "sdk"], + "type": "library", + "license": "MIT", + "homepage": "http://github.com/paypal/PAYOUTS-PHP-SDK/", + "require": { + "paypal/paypalhttp": "~1.0.0" + }, + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/PAYOUTS-PHP-SDK/contributors" + } + ], + "require-dev": { + "phpunit/phpunit": "^5.7" + }, + "autoload": { + "psr-4": { + "PaypalPayoutsSDK\\": "lib/PaypalPayoutsSDK", + "Sample\\":"samples/" + } + }, + "autoload-dev": { + "psr-4": { + "Test\\":"tests/" + } + }, + "scripts": { + "unit": "phpunit --testsuite unit", + "integration": "phpunit --testsuite integration" + } +} diff --git a/objects/paypal/paypal-payouts-sdk/composer.lock b/objects/paypal/paypal-payouts-sdk/composer.lock new file mode 100644 index 000000000..a12b27a22 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/composer.lock @@ -0,0 +1,1444 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "2068e0242e79a7373c102e7180bb6d13", + "packages": [ + { + "name": "paypal/paypalhttp", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/paypal/paypalhttp_php.git", + "reference": "1ad9b846a046f09d6135cbf2cbaa7701bbc630a3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paypal/paypalhttp_php/zipball/1ad9b846a046f09d6135cbf2cbaa7701bbc630a3", + "reference": "1ad9b846a046f09d6135cbf2cbaa7701bbc630a3", + "shasum": "" + }, + "require": { + "ext-curl": "*" + }, + "require-dev": { + "phpunit/phpunit": "^5.7", + "wiremock-php/wiremock-php": "1.43.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "PayPalHttp\\": "lib/PayPalHttp" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/paypalhttp_php/contributors" + } + ], + "time": "2019-11-06T21:27:12+00:00" + } + ], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "ae466f726242e637cebdd526a7d991b9433bacf1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/ae466f726242e637cebdd526a7d991b9433bacf1", + "reference": "ae466f726242e637cebdd526a7d991b9433bacf1", + "shasum": "" + }, + "require": { + "php": "^7.1" + }, + "require-dev": { + "doctrine/coding-standard": "^6.0", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.13", + "phpstan/phpstan-phpunit": "^0.11", + "phpstan/phpstan-shim": "^0.11", + "phpunit/phpunit": "^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "http://ocramius.github.com/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "time": "2019-10-21T16:45:58+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.9.4", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "579bb7356d91f9456ccd505f24ca8b667966a0a7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/579bb7356d91f9456ccd505f24ca8b667966a0a7", + "reference": "579bb7356d91f9456ccd505f24ca8b667966a0a7", + "shasum": "" + }, + "require": { + "php": "^7.1" + }, + "replace": { + "myclabs/deep-copy": "self.version" + }, + "require-dev": { + "doctrine/collections": "^1.0", + "doctrine/common": "^2.6", + "phpunit/phpunit": "^7.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + }, + "files": [ + "src/DeepCopy/deep_copy.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "time": "2019-12-15T19:12:40+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/63a995caa1ca9e5590304cd845c15ad6d482a62a", + "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "~6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "time": "2018-08-07T13:53:10+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "4.3.3", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "2ecaa9fef01634c83bfa8dc1fe35fb5cef223a62" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/2ecaa9fef01634c83bfa8dc1fe35fb5cef223a62", + "reference": "2ecaa9fef01634c83bfa8dc1fe35fb5cef223a62", + "shasum": "" + }, + "require": { + "php": "^7.0", + "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0", + "phpdocumentor/type-resolver": "~0.4 || ^1.0.0", + "webmozart/assert": "^1.0" + }, + "require-dev": { + "doctrine/instantiator": "^1.0.5", + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^6.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2019-12-20T13:40:23+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", + "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", + "shasum": "" + }, + "require": { + "php": "^7.1", + "phpdocumentor/reflection-common": "^2.0" + }, + "require-dev": { + "ext-tokenizer": "^7.1", + "mockery/mockery": "~1", + "phpunit/phpunit": "^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "time": "2019-08-22T18:11:29+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "1.10.1", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "cbe1df668b3fe136bcc909126a0f529a78d4cbbc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/cbe1df668b3fe136bcc909126a0f529a78d4cbbc", + "reference": "cbe1df668b3fe136bcc909126a0f529a78d4cbbc", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", + "sebastian/comparator": "^1.2.3|^2.0|^3.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0" + }, + "require-dev": { + "phpspec/phpspec": "^2.5 || ^3.2", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10.x-dev" + } + }, + "autoload": { + "psr-4": { + "Prophecy\\": "src/Prophecy" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "time": "2019-12-22T21:05:45+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "4.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^5.6 || ^7.0", + "phpunit/php-file-iterator": "^1.3", + "phpunit/php-text-template": "^1.2", + "phpunit/php-token-stream": "^1.4.2 || ^2.0", + "sebastian/code-unit-reverse-lookup": "^1.0", + "sebastian/environment": "^1.3.2 || ^2.0", + "sebastian/version": "^1.0 || ^2.0" + }, + "require-dev": { + "ext-xdebug": "^2.1.4", + "phpunit/phpunit": "^5.7" + }, + "suggest": { + "ext-xdebug": "^2.5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "time": "2017-04-02T07:44:40+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "1.4.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "time": "2017-11-27T13:52:08+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "1.0.9", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "time": "2017-02-26T11:10:40+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "791198a2c6254db10131eecfe8c06670700904db" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db", + "reference": "791198a2c6254db10131eecfe8c06670700904db", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.2.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "time": "2017-11-27T05:48:46+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "5.7.27", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c", + "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "myclabs/deep-copy": "~1.3", + "php": "^5.6 || ^7.0", + "phpspec/prophecy": "^1.6.2", + "phpunit/php-code-coverage": "^4.0.4", + "phpunit/php-file-iterator": "~1.4", + "phpunit/php-text-template": "~1.2", + "phpunit/php-timer": "^1.0.6", + "phpunit/phpunit-mock-objects": "^3.2", + "sebastian/comparator": "^1.2.4", + "sebastian/diff": "^1.4.3", + "sebastian/environment": "^1.3.4 || ^2.0", + "sebastian/exporter": "~2.0", + "sebastian/global-state": "^1.1", + "sebastian/object-enumerator": "~2.0", + "sebastian/resource-operations": "~1.0", + "sebastian/version": "^1.0.6|^2.0.1", + "symfony/yaml": "~2.1|~3.0|~4.0" + }, + "conflict": { + "phpdocumentor/reflection-docblock": "3.0.2" + }, + "require-dev": { + "ext-pdo": "*" + }, + "suggest": { + "ext-xdebug": "*", + "phpunit/php-invoker": "~1.1" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.7.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "time": "2018-02-01T05:50:59+00:00" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "3.4.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "a23b761686d50a560cc56233b9ecf49597cc9118" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118", + "reference": "a23b761686d50a560cc56233b9ecf49597cc9118", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.6 || ^7.0", + "phpunit/php-text-template": "^1.2", + "sebastian/exporter": "^1.2 || ^2.0" + }, + "conflict": { + "phpunit/phpunit": "<5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.4" + }, + "suggest": { + "ext-soap": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" + ], + "abandoned": true, + "time": "2017-06-30T09:13:00+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "time": "2017-03-04T06:30:41+00:00" + }, + { + "name": "sebastian/comparator", + "version": "1.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/diff": "~1.2", + "sebastian/exporter": "~1.2 || ~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "http://www.github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "time": "2017-01-29T09:50:25+00:00" + }, + { + "name": "sebastian/diff", + "version": "1.4.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "time": "2017-05-22T07:24:03+00:00" + }, + { + "name": "sebastian/environment", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2016-11-26T07:53:53+00:00" + }, + { + "name": "sebastian/exporter", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/recursion-context": "~2.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "time": "2016-11-19T08:54:04+00:00" + }, + { + "name": "sebastian/global-state", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "time": "2015-10-12T03:26:01+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7", + "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7", + "shasum": "" + }, + "require": { + "php": ">=5.6", + "sebastian/recursion-context": "~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "time": "2017-02-18T15:18:39+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "time": "2016-11-19T07:33:16+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "time": "2015-07-28T20:34:47+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2016-10-03T07:35:21+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.13.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f8f0b461be3385e56d6de3dbb5a0df24c0c275e3", + "reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.13-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "time": "2019-11-27T13:56:44+00:00" + }, + { + "name": "symfony/yaml", + "version": "v4.4.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "a08832b974dd5fafe3085a66d41fe4c84bb2628c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/a08832b974dd5fafe3085a66d41fe4c84bb2628c", + "reference": "a08832b974dd5fafe3085a66d41fe4c84bb2628c", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/polyfill-ctype": "~1.8" + }, + "conflict": { + "symfony/console": "<3.4" + }, + "require-dev": { + "symfony/console": "^3.4|^4.0|^5.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.4-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Yaml Component", + "homepage": "https://symfony.com", + "time": "2019-12-10T10:33:21+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.6.0", + "source": { + "type": "git", + "url": "https://github.com/webmozart/assert.git", + "reference": "573381c0a64f155a0d9a23f4b0c797194805b925" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/assert/zipball/573381c0a64f155a0d9a23f4b0c797194805b925", + "reference": "573381c0a64f155a0d9a23f4b0c797194805b925", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "vimeo/psalm": "<3.6.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.36 || ^7.5.13" + }, + "type": "library", + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2019-11-24T13:36:37+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} diff --git a/objects/paypal/paypal-payouts-sdk/gen.yml b/objects/paypal/paypal-payouts-sdk/gen.yml new file mode 100644 index 000000000..858ced838 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/gen.yml @@ -0,0 +1,6 @@ +--- +projectName: Payouts-PHP +language: php +sourcePath: lib/PaypalPayoutsSDK +testPath: tests +apiVersioning: false diff --git a/objects/paypal/paypal-payouts-sdk/homepage.jpg b/objects/paypal/paypal-payouts-sdk/homepage.jpg new file mode 100644 index 000000000..9b7aa61fc Binary files /dev/null and b/objects/paypal/paypal-payouts-sdk/homepage.jpg differ diff --git a/objects/paypal/paypal-payouts-sdk/init b/objects/paypal/paypal-payouts-sdk/init new file mode 100644 index 000000000..e69de29bb diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/AccessToken.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/AccessToken.php new file mode 100644 index 000000000..571761ef2 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/AccessToken.php @@ -0,0 +1,25 @@ +token = $token; + $this->tokenType = $tokenType; + $this->expiresIn = $expiresIn; + $this->createDate = time(); + } + + public function isExpired() + { + return time() >= $this->createDate + $this->expiresIn; + } +} \ No newline at end of file diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/AccessTokenRequest.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/AccessTokenRequest.php new file mode 100644 index 000000000..359e67411 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/AccessTokenRequest.php @@ -0,0 +1,27 @@ +headers["Authorization"] = "Basic " . $environment->authorizationString(); + $body = [ + "grant_type" => "client_credentials" + ]; + + if (!is_null($refreshToken)) + { + $body["grant_type"] = "refresh_token"; + $body["refresh_token"] = $refreshToken; + } + + $this->body = $body; + $this->headers["Content-Type"] = "application/x-www-form-urlencoded"; + } +} + diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/AuthorizationInjector.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/AuthorizationInjector.php new file mode 100644 index 000000000..ff14af09d --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/AuthorizationInjector.php @@ -0,0 +1,51 @@ +client = $client; + $this->environment = $environment; + $this->refreshToken = $refreshToken; + } + + public function inject($request) + { + if (!$this->hasAuthHeader($request) && !$this->isAuthRequest($request)) + { + if (is_null($this->accessToken) || $this->accessToken->isExpired()) + { + $this->accessToken = $this->fetchAccessToken(); + } + $request->headers['Authorization'] = 'Bearer ' . $this->accessToken->token; + } + } + + private function fetchAccessToken() + { + $accessTokenResponse = $this->client->execute(new AccessTokenRequest($this->environment, $this->refreshToken)); + $accessToken = $accessTokenResponse->result; + return new AccessToken($accessToken->access_token, $accessToken->token_type, $accessToken->expires_in); + } + + private function isAuthRequest($request) + { + return $request instanceof AccessTokenRequest || $request instanceof RefreshTokenRequest; + } + + private function hasAuthHeader(HttpRequest $request) + { + return array_key_exists("Authorization", $request->headers); + } +} diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/FPTIInstrumentationInjector.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/FPTIInstrumentationInjector.php new file mode 100644 index 000000000..60009c4cf --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/FPTIInstrumentationInjector.php @@ -0,0 +1,16 @@ +headers["sdk_name"] = "Payouts SDK"; + $request->headers["sdk_version"] = "1.0.0"; + $request->headers["sdk_tech_stack"] = "PHP " . PHP_VERSION; + $request->headers["api_integration_type"] = "PAYPALSDK"; + } +} diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/GzipInjector.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/GzipInjector.php new file mode 100644 index 000000000..7708ab827 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/GzipInjector.php @@ -0,0 +1,14 @@ +headers["Accept-Encoding"] = "gzip"; + } +} diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/PayPalEnvironment.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/PayPalEnvironment.php new file mode 100644 index 000000000..7296c99f7 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/PayPalEnvironment.php @@ -0,0 +1,23 @@ +clientId = $clientId; + $this->clientSecret = $clientSecret; + } + + public function authorizationString() + { + return base64_encode($this->clientId . ":" . $this->clientSecret); + } +} + diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/PayPalHttpClient.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/PayPalHttpClient.php new file mode 100644 index 000000000..8d3f50f71 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/PayPalHttpClient.php @@ -0,0 +1,27 @@ +refreshToken = $refreshToken; + $this->authInjector = new AuthorizationInjector($this, $environment, $refreshToken); + $this->addInjector($this->authInjector); + $this->addInjector(new GzipInjector()); + $this->addInjector(new FPTIInstrumentationInjector()); + } + + public function userAgent() + { + return UserAgent::getValue(); + } +} + diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/ProductionEnvironment.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/ProductionEnvironment.php new file mode 100644 index 000000000..4b10c0278 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/ProductionEnvironment.php @@ -0,0 +1,16 @@ +headers["Authorization"] = "Basic " . $environment->authorizationString(); + $this->headers["Content-Type"] = "application/x-www-form-urlencoded"; + $this->body = [ + "grant_type" => "authorization_code", + "code" => $authorizationCode + ]; + } +} diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/SandboxEnvironment.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/SandboxEnvironment.php new file mode 100644 index 000000000..1de161511 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/SandboxEnvironment.php @@ -0,0 +1,16 @@ +path = str_replace("{payout_batch_id}", urlencode($payoutBatchId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + + public function fields($fields) + { + $param = $fields; + $this->path .= "fields=". urlencode($param) . "&"; + } + public function page($page) + { + $param = $page; + $this->path .= "page=". urlencode($param) . "&"; + } + public function pageSize($pageSize) + { + $param = $pageSize; + $this->path .= "page_size=". urlencode($param) . "&"; + } + public function totalRequired($totalRequired) + { + $param = $totalRequired; + $this->path .= "total_required=". urlencode($param) . "&"; + } +} diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Payouts/PayoutsItemCancelRequest.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Payouts/PayoutsItemCancelRequest.php new file mode 100644 index 000000000..2a4ad697f --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Payouts/PayoutsItemCancelRequest.php @@ -0,0 +1,25 @@ +path = str_replace("{payout_item_id}", urlencode($payoutItemId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + +} diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Payouts/PayoutsItemGetRequest.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Payouts/PayoutsItemGetRequest.php new file mode 100644 index 000000000..ed53cba15 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Payouts/PayoutsItemGetRequest.php @@ -0,0 +1,25 @@ +path = str_replace("{payout_item_id}", urlencode($payoutItemId), $this->path); + $this->headers["Content-Type"] = "application/json"; + } + + +} diff --git a/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Payouts/PayoutsPostRequest.php b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Payouts/PayoutsPostRequest.php new file mode 100644 index 000000000..cefd1cd80 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Payouts/PayoutsPostRequest.php @@ -0,0 +1,31 @@ +headers["Content-Type"] = "application/json"; + } + + + public function payPalPartnerAttributionId($payPalPartnerAttributionId) + { + $this->headers["PayPal-Partner-Attribution-Id"] = $payPalPartnerAttributionId; + } + public function payPalRequestId($payPalRequestId) + { + $this->headers["PayPal-Request-Id"] = $payPalRequestId; + } +} diff --git a/objects/paypal/paypal-payouts-sdk/phpunit.xml b/objects/paypal/paypal-payouts-sdk/phpunit.xml new file mode 100644 index 000000000..88e5d6257 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/phpunit.xml @@ -0,0 +1,10 @@ + + + + + + ./tests/ + + + + diff --git a/objects/paypal/paypal-payouts-sdk/samples/CreatePayoutSample.php b/objects/paypal/paypal-payouts-sdk/samples/CreatePayoutSample.php new file mode 100644 index 000000000..c5424625e --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/samples/CreatePayoutSample.php @@ -0,0 +1,61 @@ +body = self::buildRequestBody(); + $client = PayPalClient::client(); + $response = $client->execute($request); + if ($debug) + { + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->batch_header->batch_status}\n"; + print "Batch ID: {$response->result->batch_header->payout_batch_id}\n"; + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } + return $response; + } +} + +if (!count(debug_backtrace())) +{ + CreatePayoutSample::CreatePayout(true); +} \ No newline at end of file diff --git a/objects/paypal/paypal-payouts-sdk/samples/GetPayoutSample.php b/objects/paypal/paypal-payouts-sdk/samples/GetPayoutSample.php new file mode 100644 index 000000000..0035273ea --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/samples/GetPayoutSample.php @@ -0,0 +1,43 @@ +execute($request); + if ($debug) + { + print "Status Code: {$response->statusCode}\n"; + print "Status: {$response->result->batch_header->batch_status}\n"; + print "Batch ID: {$response->result->batch_header->payout_batch_id}\n"; + print "First Item ID: {$response->result->items[0]->payout_item_id}\n"; + + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } + return $response; + } +} + +if (!count(debug_backtrace())) +{ + $response = CreatePayoutSample::CreatePayout(true); + GetPayoutSample::GetPayout($response->result->batch_header->payout_batch_id,true); + +} \ No newline at end of file diff --git a/objects/paypal/paypal-payouts-sdk/samples/ItemCancelSample.php b/objects/paypal/paypal-payouts-sdk/samples/ItemCancelSample.php new file mode 100644 index 000000000..7063a160d --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/samples/ItemCancelSample.php @@ -0,0 +1,43 @@ +execute($request); + if ($debug) + { + print "Status Code: {$response->statusCode}\n"; + print "Item status: {$response->result->transaction_status}\n"; + + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } + return $response; + } +} + +if (!count(debug_backtrace())) +{ + $payout = CreatePayoutSample::CreatePayout(true); + $response= GetPayoutSample::getPayout($payout->result->batch_header->payout_batch_id,true); + ItemCancelSample::CancelItem($response->result->items[0]->payout_item_id,true); + +} \ No newline at end of file diff --git a/objects/paypal/paypal-payouts-sdk/samples/ItemGetSample.php b/objects/paypal/paypal-payouts-sdk/samples/ItemGetSample.php new file mode 100644 index 000000000..23354d170 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/samples/ItemGetSample.php @@ -0,0 +1,43 @@ +execute($request); + if ($debug) + { + print "Status Code: {$response->statusCode}\n"; + print "Item status: {$response->result->transaction_status}\n"; + + print "Links:\n"; + foreach($response->result->links as $link) + { + print "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; + } + // To toggle printing the whole response body comment/uncomment below line + echo json_encode($response->result, JSON_PRETTY_PRINT), "\n"; + } + return $response; + } +} + +if (!count(debug_backtrace())) +{ + $payout = CreatePayoutSample::CreatePayout(true); + $response= GetPayoutSample::getPayout($payout->result->batch_header->payout_batch_id,true); + ItemGetSample::GetPayoutItem($response->result->items[0]->payout_item_id,true); + +} \ No newline at end of file diff --git a/objects/paypal/paypal-payouts-sdk/samples/PayPalClient.php b/objects/paypal/paypal-payouts-sdk/samples/PayPalClient.php new file mode 100644 index 000000000..eb060c33f --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/samples/PayPalClient.php @@ -0,0 +1,31 @@ +>"; + $clientSecret = getenv("CLIENT_SECRET") ?: "<>"; + return new SandboxEnvironment($clientId, $clientSecret); + } +} \ No newline at end of file diff --git a/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsGetTest.php b/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsGetTest.php new file mode 100644 index 000000000..4e1e54156 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsGetTest.php @@ -0,0 +1,33 @@ +result->batch_header->payout_batch_id); + $response = $client->execute($request); + return $response; + + } + public function testPayoutsGetRequest() + { + $client = TestHarness::client(); + $response=self::get($client); + $this->assertEquals(200, $response->statusCode); + $this->assertNotNull($response->result); + + // Add your own checks here + } +} diff --git a/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsItemCancelTest.php b/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsItemCancelTest.php new file mode 100644 index 000000000..a3eedeb2e --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsItemCancelTest.php @@ -0,0 +1,33 @@ +result->items[0]->payout_item_id); + + $client = TestHarness::client(); + $response = $client->execute($request); + $this->assertEquals(200, $response->statusCode); + $this->assertNotNull($response->result); + + // Add your own checks here + } +} diff --git a/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsItemGetTest.php b/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsItemGetTest.php new file mode 100644 index 000000000..7dc278ea2 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsItemGetTest.php @@ -0,0 +1,27 @@ +execute($request); + $this->assertEquals(200, $response->statusCode); + $this->assertNotNull($response->result); + + // Add your own checks here + } +} diff --git a/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsPostTest.php b/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsPostTest.php new file mode 100644 index 000000000..a1ac12257 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsPostTest.php @@ -0,0 +1,59 @@ +payPalPartnerAttributionId('agSzCOx4Ab9pHxgawSO'); + $request->payPalRequestId('M6a5KDUiH6-u6E2D'); + $request->body = self::buildRequestBody(); + + return $client->execute($request); + } + + public function testPayoutsPostRequest() + { + + $client = TestHarness::client(); + $response = self::create($client); + $this->assertEquals(201, $response->statusCode); + $this->assertNotNull($response->result); + + // Add your own checks here + } +} diff --git a/objects/paypal/paypal-payouts-sdk/tests/TestHarness.php b/objects/paypal/paypal-payouts-sdk/tests/TestHarness.php new file mode 100644 index 000000000..f67004601 --- /dev/null +++ b/objects/paypal/paypal-payouts-sdk/tests/TestHarness.php @@ -0,0 +1,21 @@ +>"; + $clientSecret = getenv("CLIENT_SECRET") ?: "<>"; + return new SandboxEnvironment($clientId, $clientSecret); + } +} diff --git a/objects/paypal/paypalhttp/.gitattributes b/objects/paypal/paypalhttp/.gitattributes new file mode 100644 index 000000000..ec6c2f559 --- /dev/null +++ b/objects/paypal/paypalhttp/.gitattributes @@ -0,0 +1,7 @@ +tests/ export-ignore +.idea/ export-ignore +.github/ export-ignore +.releasinator.rb export-ignore +Gemfile export-ignore +Gemfile.lock export-ignore + diff --git a/objects/paypal/paypalhttp/.gitignore b/objects/paypal/paypalhttp/.gitignore new file mode 100644 index 000000000..2efb91fec --- /dev/null +++ b/objects/paypal/paypalhttp/.gitignore @@ -0,0 +1,32 @@ +.DS_Store +/vendor/ +composer.phar +composer.lock + +# User-specific stuff: +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/dictionaries + +.idea/codeStyles/Project.xml +.idea/codeStyles/codeStyleConfig.xml +.idea/* + +# Sensitive or high-churn files: +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.xml +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml + +## File-based project format: +*.iws +.idea/*.iml +.idea/vcs.xml +.idea/php.xml +.idea/php-test-framework.xml +.idea/modules.xml +__files/* +mappings/* diff --git a/objects/paypal/paypalhttp/.travis.yml b/objects/paypal/paypalhttp/.travis.yml new file mode 100644 index 000000000..4fddbb983 --- /dev/null +++ b/objects/paypal/paypalhttp/.travis.yml @@ -0,0 +1,16 @@ +sudo: false +language: php +php: +- 5.6 +- 7.0 +- 7.1 +- hhvm +matrix: + allow_failures: + - php: hhvm + fast_finish: true +before_script: +- composer self-update +- composer install --dev +script: +- vendor/bin/phpunit diff --git a/objects/paypal/paypalhttp/CHANGELOG.md b/objects/paypal/paypalhttp/CHANGELOG.md new file mode 100644 index 000000000..f55b90762 --- /dev/null +++ b/objects/paypal/paypalhttp/CHANGELOG.md @@ -0,0 +1,2 @@ +## 1.0.0 +- First release diff --git a/objects/paypal/paypalhttp/CONTRIBUTING.md b/objects/paypal/paypalhttp/CONTRIBUTING.md new file mode 100644 index 000000000..3810a58ed --- /dev/null +++ b/objects/paypal/paypalhttp/CONTRIBUTING.md @@ -0,0 +1,10 @@ +# Contribute to the PayPal PHP HttpClient + +### *Pull requests are welcome!* + +General Guidelines +------------------ + +* **Code style.** Please follow local code style. Ask if you're unsure. +* **No warnings.** All generated code must compile without warnings. + diff --git a/objects/paypal/paypalhttp/LICENSE b/objects/paypal/paypalhttp/LICENSE new file mode 100644 index 000000000..c689d7426 --- /dev/null +++ b/objects/paypal/paypalhttp/LICENSE @@ -0,0 +1,23 @@ +Copyright (c) 2009-2016 PayPal, Inc. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + diff --git a/objects/paypal/paypalhttp/README.md b/objects/paypal/paypalhttp/README.md new file mode 100644 index 000000000..c4bc95848 --- /dev/null +++ b/objects/paypal/paypalhttp/README.md @@ -0,0 +1,76 @@ +## PayPal HttpClient + +PayPalHttp is a generic HTTP Client. + +In it's simplest form, an [`HttpClient`](lib/PayPalHttp/HttpClient.php) exposes an `execute` method which takes an [HTTP request](lib/PayPalHttp/HttpRequest.php), executes it against the domain described in an [Environment](lib/PayPalHttp/Environment.php), and returns an [HTTP response](lib/PayPalHttp/HttpResponse.php). + +### Environment + +An [`Environment`](./lib/PayPalHttp/environment.rb) describes a domain that hosts a REST API, against which an `HttpClient` will make requests. `Environment` is a simple interface that wraps one method, `baseUrl`. + +```php +$env = new Environment('https://example.com'); +``` + +### Requests + +HTTP requests contain all the information needed to make an HTTP request against the REST API. Specifically, one request describes a path, a verb, any path/query/form parameters, headers, attached files for upload, and body data. + +### Responses + +HTTP responses contain information returned by a server in response to a request as described above. They are simple objects which contain a status code, headers, and any data returned by the server. + +```php +$request = new HttpRequest("/path", "GET"); +$request->body[] = "some data"; + +$response = $client->execute($req); + +$statusCode = $response->statusCode; +$headers = $response->headers; +$data = $response->result; +``` + +### Injectors + +Injectors are blocks that can be used for executing arbitrary pre-flight logic, such as modifying a request or logging data. Injectors are attached to an `HttpClient` using the `addInjector` method. + +The `HttpClient` executes its injectors in a first-in, first-out order, before each request. + +```php +class LogInjector implements Injector +{ + public function inject($httpRequest) + { + // Do some logging here + } +} + +$logInjector = new LogInjector(); +$client = new HttpClient($environment); +$client->addInjector($logInjector); +... +``` + +### Error Handling + +`HttpClient#execute` may throw an `Exception` if something went wrong during the course of execution. If the server returned a non-200 response, [IOException](lib/PayPalHttp/IOException.php) will be thrown, that will contain a status code and headers you can use for debugging. + +```php +try +{ + $client->execute($req); +} +catch (HttpException $e) +{ + $statusCode = $e->response->statusCode; + $headers = $e->response->headers; + $body = $e->response->result; +} +``` + +## License +PayPalHttp-PHP is open source and available under the MIT license. See the [LICENSE](./LICENSE) file for more information. + +## Contributing +Pull requests and issues are welcome. Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for more details. diff --git a/objects/paypal/paypalhttp/Rakefile b/objects/paypal/paypalhttp/Rakefile new file mode 100644 index 000000000..33a443c3a --- /dev/null +++ b/objects/paypal/paypalhttp/Rakefile @@ -0,0 +1,2 @@ +spec = Gem::Specification.find_by_name 'releasinator' +load "#{spec.gem_dir}/lib/tasks/releasinator.rake" diff --git a/objects/paypal/paypalhttp/composer.json b/objects/paypal/paypalhttp/composer.json new file mode 100644 index 000000000..05728a340 --- /dev/null +++ b/objects/paypal/paypalhttp/composer.json @@ -0,0 +1,23 @@ +{ + "name": "paypal/paypalhttp", + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "PayPal", + "homepage": "https://github.com/paypal/paypalhttp_php/contributors" + } + ], + "require": { + "ext-curl": "*" + }, + "require-dev": { + "phpunit/phpunit": "^5.7", + "wiremock-php/wiremock-php": "1.43.2" + }, + "autoload": { + "psr-4": { + "PayPalHttp\\": "lib/PayPalHttp" + } + } +} diff --git a/objects/paypal/paypalhttp/lib/PayPalHttp/Curl.php b/objects/paypal/paypalhttp/lib/PayPalHttp/Curl.php new file mode 100644 index 000000000..08e6eaf8f --- /dev/null +++ b/objects/paypal/paypalhttp/lib/PayPalHttp/Curl.php @@ -0,0 +1,57 @@ +curl = $curl; + } + + public function setOpt($option, $value) + { + curl_setopt($this->curl, $option, $value); + return $this; + } + + public function close() + { + curl_close($this->curl); + return $this; + } + + public function exec() + { + return curl_exec($this->curl); + } + + public function errNo() + { + return curl_errno($this->curl); + } + + public function getInfo($option) + { + return curl_getinfo($this->curl, $option); + } + + public function error() + { + return curl_error($this->curl); + } +} diff --git a/objects/paypal/paypalhttp/lib/PayPalHttp/Encoder.php b/objects/paypal/paypalhttp/lib/PayPalHttp/Encoder.php new file mode 100644 index 000000000..b7158a78f --- /dev/null +++ b/objects/paypal/paypalhttp/lib/PayPalHttp/Encoder.php @@ -0,0 +1,114 @@ +serializers[] = new Json(); + $this->serializers[] = new Text(); + $this->serializers[] = new Multipart(); + $this->serializers[] = new Form(); + } + + + + public function serializeRequest(HttpRequest $request) + { + if (!array_key_exists('content-type', $request->headers)) { + $message = "HttpRequest does not have Content-Type header set"; + echo $message; + throw new \Exception($message); + } + + $contentType = $request->headers['content-type']; + /** @var Serializer $serializer */ + $serializer = $this->serializer($contentType); + + if (is_null($serializer)) { + $message = sprintf("Unable to serialize request with Content-Type: %s. Supported encodings are: %s", $contentType, implode(", ", $this->supportedEncodings())); + echo $message; + throw new \Exception($message); + } + + if (!(is_string($request->body) || is_array($request->body))) { + $message = "Body must be either string or array"; + echo $message; + throw new \Exception($message); + } + + $serialized = $serializer->encode($request); + + if (array_key_exists("content-encoding", $request->headers) && $request->headers["content-encoding"] === "gzip") { + $serialized = gzencode($serialized); + } + return $serialized; + } + + + public function deserializeResponse($responseBody, $headers) + { + + if (!array_key_exists('content-type', $headers)) { + $message = "HTTP response does not have Content-Type header set"; + echo $message; + throw new \Exception($message); + } + + $contentType = $headers['content-type']; + /** @var Serializer $serializer */ + $serializer = $this->serializer($contentType); + + if (is_null($serializer)) { + throw new \Exception(sprintf("Unable to deserialize response with Content-Type: %s. Supported encodings are: %s", $contentType, implode(", ", $this->supportedEncodings()))); + } + + if (array_key_exists("content-encoding", $headers) && $headers["content-encoding"] === "gzip") { + $responseBody = gzdecode($responseBody); + } + + return $serializer->decode($responseBody); + } + + private function serializer($contentType) + { + /** @var Serializer $serializer */ + foreach ($this->serializers as $serializer) { + try { + if (preg_match($serializer->contentType(), $contentType) == 1) { + return $serializer; + } + } catch (\Exception $ex) { + $message = sprintf("Error while checking content type of %s: %s", get_class($serializer), $ex->getMessage()); + echo $message; + throw new \Exception($message, $ex->getCode(), $ex); + } + } + + return NULL; + } + + private function supportedEncodings() + { + $values = []; + /** @var Serializer $serializer */ + foreach ($this->serializers as $serializer) { + $values[] = $serializer->contentType(); + } + return $values; + } +} diff --git a/objects/paypal/paypalhttp/lib/PayPalHttp/Environment.php b/objects/paypal/paypalhttp/lib/PayPalHttp/Environment.php new file mode 100644 index 000000000..4eb0ce097 --- /dev/null +++ b/objects/paypal/paypalhttp/lib/PayPalHttp/Environment.php @@ -0,0 +1,18 @@ +environment = $environment; + $this->encoder = new Encoder(); + $this->curlCls = Curl::class; + } + + /** + * Injectors are blocks that can be used for executing arbitrary pre-flight logic, such as modifying a request or logging data. + * Executed in first-in first-out order. + * + * @param Injector $inj + */ + public function addInjector(Injector $inj) + { + $this->injectors[] = $inj; + } + + /** + * The method that takes an HTTP request, serializes the request, makes a call to given environment, and deserialize response + * + * @param $httpRequest HttpRequest + * @return HttpResponse + */ + public function execute(HttpRequest $httpRequest) + { + $requestCpy = clone $httpRequest; + $curl = new Curl(); + + foreach ($this->injectors as $inj) { + $inj->inject($requestCpy); + } + + $url = $this->environment->baseUrl() . $requestCpy->path; + $formattedHeaders = $this->prepareHeaders($requestCpy->headers); + if (!array_key_exists("user-agent", $formattedHeaders)) { + $requestCpy->headers["user-agent"] = $this->userAgent(); + } + + $body = ""; + if (!is_null($requestCpy->body)) { + $rawHeaders = $requestCpy->headers; + $requestCpy->headers = $formattedHeaders; + $body = $this->encoder->serializeRequest($requestCpy); + $requestCpy->headers = $this->mapHeaders($rawHeaders,$requestCpy->headers); + } + + $curl->setOpt(CURLOPT_URL, $url); + $curl->setOpt(CURLOPT_CUSTOMREQUEST, $requestCpy->verb); + $curl->setOpt(CURLOPT_HTTPHEADER, $this->serializeHeaders($requestCpy->headers)); + $curl->setOpt(CURLOPT_RETURNTRANSFER, 1); + $curl->setOpt(CURLOPT_HEADER, 0); + + if (!is_null($requestCpy->body)) { + $curl->setOpt(CURLOPT_POSTFIELDS, $body); + } + + if (strpos($this->environment->baseUrl(), "https://") === 0) { + $curl->setOpt(CURLOPT_SSL_VERIFYPEER, true); + $curl->setOpt(CURLOPT_SSL_VERIFYHOST, 2); + } + + if ($caCertPath = $this->getCACertFilePath()) { + $curl->setOpt(CURLOPT_CAINFO, $caCertPath); + } + + $response = $this->parseResponse($curl); + $curl->close(); + + return $response; + } + + /** + * Returns an array representing headers with their keys + * to be lower case + * @param $headers + * @return array + */ + public function prepareHeaders($headers){ + return array_change_key_case($headers); + } + + /** + * Returns an array representing headers with their key in + * original cases and updated values + * @param $rawHeaders + * @param $formattedHeaders + * @return array + */ + public function mapHeaders($rawHeaders, $formattedHeaders){ + $rawHeadersKey = array_keys($rawHeaders); + foreach ($rawHeadersKey as $array_key) { + if(array_key_exists(strtolower($array_key), $formattedHeaders)){ + $rawHeaders[$array_key] = $formattedHeaders[strtolower($array_key)]; + } + } + return $rawHeaders; + } + + /** + * Returns default user-agent + * + * @return string + */ + public function userAgent() + { + return "PayPalHttp-PHP HTTP/1.1"; + } + + /** + * Return the filepath to your custom CA Cert if needed. + * @return string + */ + protected function getCACertFilePath() + { + return null; + } + + protected function setCurl(Curl $curl) + { + $this->curl = $curl; + } + + protected function setEncoder(Encoder $encoder) + { + $this->encoder = $encoder; + } + + private function serializeHeaders($headers) + { + $headerArray = []; + if ($headers) { + foreach ($headers as $key => $val) { + $headerArray[] = $key . ": " . $val; + } + } + + return $headerArray; + } + + private function parseResponse($curl) + { + $headers = []; + $curl->setOpt(CURLOPT_HEADERFUNCTION, + function($curl, $header) use (&$headers) + { + $len = strlen($header); + + $k = ""; + $v = ""; + + $this->deserializeHeader($header, $k, $v); + $headers[$k] = $v; + + return $len; + }); + + $responseData = $curl->exec(); + $statusCode = $curl->getInfo(CURLINFO_HTTP_CODE); + $errorCode = $curl->errNo(); + $error = $curl->error(); + + if ($errorCode > 0) { + throw new IOException($error, $errorCode); + } + + $body = $responseData; + + if ($statusCode >= 200 && $statusCode < 300) { + $responseBody = NULL; + + if (!empty($body)) { + $responseBody = $this->encoder->deserializeResponse($body, $this->prepareHeaders($headers)); + } + + return new HttpResponse( + $errorCode === 0 ? $statusCode : $errorCode, + $responseBody, + $headers + ); + } else { + throw new HttpException($body, $statusCode, $headers); + } + } + + private function deserializeHeader($header, &$key, &$value) + { + if (strlen($header) > 0) { + if (empty($header) || strpos($header, ':') === false) { + return NULL; + } + + list($k, $v) = explode(":", $header); + $key = trim($k); + $value = trim($v); + } + } +} diff --git a/objects/paypal/paypalhttp/lib/PayPalHttp/HttpException.php b/objects/paypal/paypalhttp/lib/PayPalHttp/HttpException.php new file mode 100644 index 000000000..5f4d2dbc6 --- /dev/null +++ b/objects/paypal/paypalhttp/lib/PayPalHttp/HttpException.php @@ -0,0 +1,23 @@ +statusCode = $statusCode; + $this->headers = $headers; + } +} diff --git a/objects/paypal/paypalhttp/lib/PayPalHttp/HttpRequest.php b/objects/paypal/paypalhttp/lib/PayPalHttp/HttpRequest.php new file mode 100644 index 000000000..89b74801b --- /dev/null +++ b/objects/paypal/paypalhttp/lib/PayPalHttp/HttpRequest.php @@ -0,0 +1,42 @@ +path = $path; + $this->verb = $verb; + $this->body = NULL; + $this->headers = []; + } +} diff --git a/objects/paypal/paypalhttp/lib/PayPalHttp/HttpResponse.php b/objects/paypal/paypalhttp/lib/PayPalHttp/HttpResponse.php new file mode 100644 index 000000000..ef8fb351d --- /dev/null +++ b/objects/paypal/paypalhttp/lib/PayPalHttp/HttpResponse.php @@ -0,0 +1,34 @@ +statusCode = $statusCode; + $this->headers = $headers; + $this->result = $body; + } +} diff --git a/objects/paypal/paypalhttp/lib/PayPalHttp/IOException.php b/objects/paypal/paypalhttp/lib/PayPalHttp/IOException.php new file mode 100644 index 000000000..7bfc91cea --- /dev/null +++ b/objects/paypal/paypalhttp/lib/PayPalHttp/IOException.php @@ -0,0 +1,13 @@ +body) || !$this->isAssociative($request->body)) + { + throw new \Exception("HttpRequest body must be an associative array when Content-Type is: " . $request->headers["Content-Type"]); + } + + return http_build_query($request->body); + } + + /** + * @param $body + * @return mixed + * @throws \Exception as multipart does not support deserialization. + */ + public function decode($body) + { + throw new \Exception("CurlSupported does not support deserialization"); + } + + private function isAssociative(array $array) + { + return array_values($array) !== $array; + } +} diff --git a/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/FormPart.php b/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/FormPart.php new file mode 100644 index 000000000..3779a9b58 --- /dev/null +++ b/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/FormPart.php @@ -0,0 +1,25 @@ +value = $value; + $this->headers = array_merge([], $headers); + } + + public function getValue() + { + return $this->value; + } + + public function getHeaders() + { + return $this->headers; + } +} diff --git a/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/Json.php b/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/Json.php new file mode 100644 index 000000000..3f66314aa --- /dev/null +++ b/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/Json.php @@ -0,0 +1,38 @@ +body; + if (is_string($body)) { + return $body; + } + if (is_array($body)) { + return json_encode($body); + } + throw new \Exception("Cannot serialize data. Unknown type"); + } + + public function decode($data) + { + return json_decode($data); + } +} diff --git a/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/Multipart.php b/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/Multipart.php new file mode 100644 index 000000000..a4202051e --- /dev/null +++ b/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/Multipart.php @@ -0,0 +1,134 @@ +body) || !$this->isAssociative($request->body)) + { + throw new \Exception("HttpRequest body must be an associative array when Content-Type is: " . $request->headers["content-type"]); + } + $boundary = "---------------------" . md5(mt_rand() . microtime()); + $contentTypeHeader = $request->headers["content-type"]; + $request->headers["content-type"] = "{$contentTypeHeader}; boundary={$boundary}"; + + $value_params = []; + $file_params = []; + + $disallow = ["\0", "\"", "\r", "\n"]; + + $body = []; + + foreach ($request->body as $k => $v) { + $k = str_replace($disallow, "_", $k); + if (is_resource($v)) { + $file_params[] = $this->prepareFilePart($k, $v, $boundary); + } else if ($v instanceof FormPart) { + $value_params[] = $this->prepareFormPart($k, $v, $boundary); + } else { + $value_params[] = $this->prepareFormField($k, $v, $boundary); + } + } + + $body = array_merge($value_params, $file_params); + + // add boundary for each parameters + array_walk($body, function (&$part) use ($boundary) { + $part = "--{$boundary}" . self::LINEFEED . "{$part}"; + }); + + // add final boundary + $body[] = "--{$boundary}--"; + $body[] = ""; + + return implode(self::LINEFEED, $body); + } + + public function decode($data) + { + throw new \Exception("Multipart does not support deserialization"); + } + + private function isAssociative(array $array) + { + return array_values($array) !== $array; + } + + private function prepareFormField($partName, $value, $boundary) + { + return implode(self::LINEFEED, [ + "Content-Disposition: form-data; name=\"{$partName}\"", + "", + filter_var($value), + ]); + } + + private function prepareFilePart($partName, $file, $boundary) + { + $fileInfo = new finfo(FILEINFO_MIME_TYPE); + $filePath = stream_get_meta_data($file)['uri']; + $data = file_get_contents($filePath); + $mimeType = $fileInfo->buffer($data); + + $splitFilePath = explode(DIRECTORY_SEPARATOR, $filePath); + $filePath = end($splitFilePath); + $disallow = ["\0", "\"", "\r", "\n"]; + $filePath = str_replace($disallow, "_", $filePath); + return implode(self::LINEFEED, [ + "Content-Disposition: form-data; name=\"{$partName}\"; filename=\"{$filePath}\"", + "Content-Type: {$mimeType}", + "", + $data, + ]); + } + + private function prepareFormPart($partName, $formPart, $boundary) + { + $contentDisposition = "Content-Disposition: form-data; name=\"{$partName}\""; + + $partHeaders = $formPart->getHeaders(); + $formattedheaders = array_change_key_case($partHeaders); + if (array_key_exists("content-type", $formattedheaders)) { + if ($formattedheaders["content-type"] === "application/json") { + $contentDisposition .= "; filename=\"{$partName}.json\""; + } + $tempRequest = new HttpRequest('/', 'POST'); + $tempRequest->headers = $formattedheaders; + $tempRequest->body = $formPart->getValue(); + $encoder = new Encoder(); + $partValue = $encoder->serializeRequest($tempRequest); + } else { + $partValue = $formPart->getValue(); + } + + $finalPartHeaders = []; + foreach ($partHeaders as $k => $v) { + $finalPartHeaders[] = "{$k}: {$v}"; + } + + $body = array_merge([$contentDisposition], $finalPartHeaders, [""], [$partValue]); + + return implode(self::LINEFEED, $body); + } +} diff --git a/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/Text.php b/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/Text.php new file mode 100644 index 000000000..e2ce0cade --- /dev/null +++ b/objects/paypal/paypalhttp/lib/PayPalHttp/Serializer/Text.php @@ -0,0 +1,38 @@ +body; + if (is_string($body)) { + return $body; + } + if (is_array($body)) { + return json_encode($body); + } + return implode(" ", $body); + } + + public function decode($data) + { + return $data; + } +} diff --git a/objects/paypal/paypalhttp/phpunit.xml b/objects/paypal/paypalhttp/phpunit.xml new file mode 100644 index 000000000..ea8427851 --- /dev/null +++ b/objects/paypal/paypalhttp/phpunit.xml @@ -0,0 +1,10 @@ + + + + + + ./tests/unit + + + + diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/.gitattributes b/objects/paypal/rest-api-sdk-php/.gitattributes similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/.gitattributes rename to objects/paypal/rest-api-sdk-php/.gitattributes diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/.github/ISSUE_TEMPLATE.md b/objects/paypal/rest-api-sdk-php/.github/ISSUE_TEMPLATE.md similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/.github/ISSUE_TEMPLATE.md rename to objects/paypal/rest-api-sdk-php/.github/ISSUE_TEMPLATE.md diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/.gitignore b/objects/paypal/rest-api-sdk-php/.gitignore similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/.gitignore rename to objects/paypal/rest-api-sdk-php/.gitignore diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/CHANGELOG.md b/objects/paypal/rest-api-sdk-php/CHANGELOG.md similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/CHANGELOG.md rename to objects/paypal/rest-api-sdk-php/CHANGELOG.md diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/LICENSE b/objects/paypal/rest-api-sdk-php/LICENSE similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/LICENSE rename to objects/paypal/rest-api-sdk-php/LICENSE diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/README.md b/objects/paypal/rest-api-sdk-php/README.md similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/README.md rename to objects/paypal/rest-api-sdk-php/README.md diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/composer.json b/objects/paypal/rest-api-sdk-php/composer.json similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/composer.json rename to objects/paypal/rest-api-sdk-php/composer.json diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Address.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Address.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Address.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Address.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Agreement.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Agreement.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Agreement.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Agreement.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementDetails.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementDetails.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementDetails.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementDetails.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementStateDescriptor.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementStateDescriptor.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementStateDescriptor.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementStateDescriptor.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementTransaction.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementTransaction.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementTransaction.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementTransaction.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementTransactions.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementTransactions.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementTransactions.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementTransactions.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/AlternatePayment.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/AlternatePayment.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/AlternatePayment.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/AlternatePayment.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Amount.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Amount.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Amount.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Amount.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Authorization.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Authorization.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Authorization.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Authorization.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BankAccount.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BankAccount.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BankAccount.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BankAccount.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BankAccountsList.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BankAccountsList.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BankAccountsList.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BankAccountsList.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BankToken.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BankToken.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BankToken.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BankToken.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BaseAddress.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BaseAddress.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BaseAddress.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BaseAddress.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Billing.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Billing.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Billing.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Billing.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BillingAgreementToken.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BillingAgreementToken.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BillingAgreementToken.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BillingAgreementToken.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BillingInfo.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BillingInfo.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/BillingInfo.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/BillingInfo.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CancelNotification.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CancelNotification.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CancelNotification.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CancelNotification.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Capture.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Capture.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Capture.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Capture.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CarrierAccount.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CarrierAccount.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CarrierAccount.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CarrierAccount.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CarrierAccountToken.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CarrierAccountToken.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CarrierAccountToken.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CarrierAccountToken.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CartBase.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CartBase.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CartBase.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CartBase.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ChargeModel.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ChargeModel.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ChargeModel.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ChargeModel.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Cost.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Cost.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Cost.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Cost.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CountryCode.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CountryCode.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CountryCode.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CountryCode.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreateProfileResponse.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreateProfileResponse.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreateProfileResponse.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreateProfileResponse.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Credit.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Credit.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Credit.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Credit.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCard.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCard.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCard.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCard.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardHistory.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardHistory.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardHistory.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardHistory.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardList.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardList.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardList.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardList.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardToken.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardToken.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardToken.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardToken.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditFinancingOffered.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditFinancingOffered.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditFinancingOffered.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditFinancingOffered.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Currency.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Currency.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Currency.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Currency.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CurrencyConversion.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CurrencyConversion.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CurrencyConversion.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CurrencyConversion.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CustomAmount.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CustomAmount.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/CustomAmount.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/CustomAmount.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/DetailedRefund.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/DetailedRefund.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/DetailedRefund.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/DetailedRefund.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Details.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Details.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Details.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Details.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Error.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Error.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Error.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Error.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ErrorDetails.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ErrorDetails.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ErrorDetails.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ErrorDetails.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ExtendedBankAccount.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ExtendedBankAccount.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ExtendedBankAccount.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ExtendedBankAccount.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ExternalFunding.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ExternalFunding.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ExternalFunding.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ExternalFunding.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FileAttachment.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FileAttachment.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FileAttachment.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FileAttachment.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FlowConfig.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FlowConfig.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FlowConfig.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FlowConfig.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FmfDetails.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FmfDetails.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FmfDetails.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FmfDetails.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingDetail.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingDetail.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingDetail.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingDetail.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingInstrument.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingInstrument.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingInstrument.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingInstrument.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingOption.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingOption.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingOption.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingOption.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingSource.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingSource.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingSource.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingSource.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FuturePayment.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FuturePayment.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/FuturePayment.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/FuturePayment.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/HyperSchema.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/HyperSchema.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/HyperSchema.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/HyperSchema.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Image.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Image.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Image.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Image.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Incentive.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Incentive.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Incentive.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Incentive.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InputFields.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InputFields.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InputFields.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InputFields.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InstallmentInfo.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InstallmentInfo.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InstallmentInfo.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InstallmentInfo.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InstallmentOption.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InstallmentOption.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InstallmentOption.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InstallmentOption.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Invoice.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Invoice.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Invoice.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Invoice.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceAddress.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceAddress.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceAddress.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceAddress.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceItem.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceItem.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceItem.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceItem.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceNumber.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceNumber.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceNumber.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceNumber.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceSearchResponse.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceSearchResponse.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceSearchResponse.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceSearchResponse.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Item.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Item.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Item.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Item.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ItemList.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ItemList.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ItemList.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ItemList.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Links.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Links.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Links.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Links.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Measurement.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Measurement.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Measurement.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Measurement.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/MerchantInfo.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/MerchantInfo.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/MerchantInfo.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/MerchantInfo.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/MerchantPreferences.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/MerchantPreferences.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/MerchantPreferences.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/MerchantPreferences.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Metadata.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Metadata.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Metadata.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Metadata.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/NameValuePair.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/NameValuePair.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/NameValuePair.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/NameValuePair.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Notification.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Notification.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Notification.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Notification.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdAddress.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdAddress.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdAddress.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdAddress.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdError.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdError.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdError.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdError.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdSession.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdSession.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdSession.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdSession.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdTokeninfo.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdTokeninfo.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdTokeninfo.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdTokeninfo.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdUserinfo.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdUserinfo.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdUserinfo.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdUserinfo.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Order.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Order.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Order.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Order.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OverrideChargeModel.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OverrideChargeModel.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/OverrideChargeModel.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/OverrideChargeModel.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Participant.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Participant.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Participant.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Participant.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Patch.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Patch.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Patch.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Patch.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PatchRequest.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PatchRequest.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PatchRequest.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PatchRequest.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Payee.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Payee.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Payee.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Payee.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Payer.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Payer.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Payer.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Payer.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayerInfo.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayerInfo.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayerInfo.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayerInfo.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Payment.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Payment.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Payment.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Payment.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentCard.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentCard.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentCard.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentCard.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentCardToken.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentCardToken.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentCardToken.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentCardToken.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentDefinition.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentDefinition.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentDefinition.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentDefinition.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentDetail.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentDetail.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentDetail.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentDetail.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentExecution.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentExecution.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentExecution.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentExecution.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentHistory.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentHistory.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentHistory.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentHistory.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentInstruction.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentInstruction.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentInstruction.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentInstruction.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentOptions.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentOptions.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentOptions.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentOptions.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentSummary.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentSummary.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentSummary.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentSummary.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentTerm.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentTerm.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentTerm.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentTerm.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Payout.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Payout.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Payout.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Payout.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutBatch.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutBatch.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutBatch.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutBatch.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutBatchHeader.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutBatchHeader.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutBatchHeader.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutBatchHeader.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutItem.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutItem.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutItem.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutItem.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutItemDetails.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutItemDetails.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutItemDetails.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutItemDetails.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutSenderBatchHeader.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutSenderBatchHeader.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutSenderBatchHeader.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutSenderBatchHeader.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Phone.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Phone.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Phone.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Phone.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Plan.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Plan.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Plan.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Plan.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PlanList.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PlanList.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PlanList.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PlanList.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PotentialPayerInfo.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PotentialPayerInfo.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PotentialPayerInfo.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PotentialPayerInfo.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Presentation.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Presentation.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Presentation.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Presentation.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PrivateLabelCard.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PrivateLabelCard.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/PrivateLabelCard.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/PrivateLabelCard.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ProcessorResponse.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ProcessorResponse.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ProcessorResponse.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ProcessorResponse.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/RecipientBankingInstruction.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/RecipientBankingInstruction.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/RecipientBankingInstruction.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/RecipientBankingInstruction.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/RedirectUrls.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/RedirectUrls.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/RedirectUrls.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/RedirectUrls.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Refund.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Refund.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Refund.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Refund.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/RefundDetail.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/RefundDetail.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/RefundDetail.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/RefundDetail.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/RefundRequest.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/RefundRequest.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/RefundRequest.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/RefundRequest.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/RelatedResources.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/RelatedResources.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/RelatedResources.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/RelatedResources.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Sale.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Sale.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Sale.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Sale.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Search.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Search.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Search.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Search.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingAddress.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingAddress.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingAddress.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingAddress.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingCost.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingCost.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingCost.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingCost.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingInfo.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingInfo.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingInfo.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingInfo.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Tax.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Tax.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Tax.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Tax.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Template.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Template.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Template.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Template.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateData.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateData.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateData.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateData.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateSettings.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateSettings.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateSettings.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateSettings.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateSettingsMetadata.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateSettingsMetadata.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateSettingsMetadata.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateSettingsMetadata.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Templates.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Templates.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Templates.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Templates.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Terms.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Terms.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Terms.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Terms.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Transaction.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Transaction.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Transaction.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Transaction.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/TransactionBase.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/TransactionBase.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/TransactionBase.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/TransactionBase.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Transactions.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Transactions.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Transactions.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Transactions.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/VerifyWebhookSignature.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/VerifyWebhookSignature.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/VerifyWebhookSignature.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/VerifyWebhookSignature.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/VerifyWebhookSignatureResponse.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/VerifyWebhookSignatureResponse.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/VerifyWebhookSignatureResponse.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/VerifyWebhookSignatureResponse.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebProfile.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebProfile.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebProfile.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebProfile.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Webhook.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Webhook.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Webhook.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/Webhook.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEvent.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEvent.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEvent.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEvent.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventList.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventList.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventList.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventList.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventType.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventType.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventType.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventType.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventTypeList.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventTypeList.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventTypeList.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventTypeList.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookList.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookList.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookList.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookList.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Cache/AuthorizationCache.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Cache/AuthorizationCache.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Cache/AuthorizationCache.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Cache/AuthorizationCache.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/ArrayUtil.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Common/ArrayUtil.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/ArrayUtil.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Common/ArrayUtil.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalUserAgent.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalUserAgent.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalUserAgent.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalUserAgent.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/ReflectionUtil.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Common/ReflectionUtil.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/ReflectionUtil.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Common/ReflectionUtil.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Converter/FormatConverter.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Converter/FormatConverter.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Converter/FormatConverter.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Converter/FormatConverter.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalConfigManager.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalConfigManager.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalConfigManager.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalConfigManager.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalConstants.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalConstants.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalConstants.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalConstants.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalCredentialManager.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalCredentialManager.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalCredentialManager.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalCredentialManager.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConfig.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConfig.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConfig.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConfig.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalLoggingManager.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalLoggingManager.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalLoggingManager.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalLoggingManager.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/cacert.pem b/objects/paypal/rest-api-sdk-php/lib/PayPal/Core/cacert.pem similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/cacert.pem rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Core/cacert.pem diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalConfigurationException.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalConfigurationException.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalConfigurationException.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalConfigurationException.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalConnectionException.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalConnectionException.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalConnectionException.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalConnectionException.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalInvalidCredentialException.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalInvalidCredentialException.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalInvalidCredentialException.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalInvalidCredentialException.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalMissingCredentialException.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalMissingCredentialException.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalMissingCredentialException.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalMissingCredentialException.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Handler/IPayPalHandler.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Handler/IPayPalHandler.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Handler/IPayPalHandler.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Handler/IPayPalHandler.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Handler/OauthHandler.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Handler/OauthHandler.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Handler/OauthHandler.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Handler/OauthHandler.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Handler/RestHandler.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Handler/RestHandler.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Handler/RestHandler.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Handler/RestHandler.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalDefaultLogFactory.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalDefaultLogFactory.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalDefaultLogFactory.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalDefaultLogFactory.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogFactory.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogFactory.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogFactory.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogFactory.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogger.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogger.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogger.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalLogger.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Rest/ApiContext.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Rest/ApiContext.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Rest/ApiContext.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Rest/ApiContext.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Rest/IResource.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Rest/IResource.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Rest/IResource.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Rest/IResource.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Security/Cipher.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Security/Cipher.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Security/Cipher.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Security/Cipher.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Validation/ArgumentValidator.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Validation/ArgumentValidator.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Validation/ArgumentValidator.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Validation/ArgumentValidator.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Validation/JsonValidator.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Validation/JsonValidator.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Validation/JsonValidator.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Validation/JsonValidator.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Validation/NumericValidator.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Validation/NumericValidator.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Validation/NumericValidator.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Validation/NumericValidator.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Validation/UrlValidator.php b/objects/paypal/rest-api-sdk-php/lib/PayPal/Validation/UrlValidator.php similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/lib/PayPal/Validation/UrlValidator.php rename to objects/paypal/rest-api-sdk-php/lib/PayPal/Validation/UrlValidator.php diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/phpunit.integration.xml b/objects/paypal/rest-api-sdk-php/phpunit.integration.xml similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/phpunit.integration.xml rename to objects/paypal/rest-api-sdk-php/phpunit.integration.xml diff --git a/plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/phpunit.xml b/objects/paypal/rest-api-sdk-php/phpunit.xml similarity index 100% rename from plugin/PayPalYPT/vendor/paypal/rest-api-sdk-php/phpunit.xml rename to objects/paypal/rest-api-sdk-php/phpunit.xml diff --git a/plugin/PayPalYPT/Objects/PayPalYPT_log.php b/plugin/PayPalYPT/Objects/PayPalYPT_log.php new file mode 100644 index 000000000..f225be296 --- /dev/null +++ b/plugin/PayPalYPT/Objects/PayPalYPT_log.php @@ -0,0 +1,126 @@ +errno . ') ' . $global['mysqli']->error); + } + return $rows; + } + + function setId($id) { + $this->id = intval($id); + } + + function setAgreement_id($agreement_id) { + $this->agreement_id = $agreement_id; + } + + function setUsers_id($users_id) { + $this->users_id = intval($users_id); + } + + function setJson($json) { + if(!is_string($json)){ + $json = _json_encode($json); + } + $this->json = $json; + } + + function setRecurring_payment_id($recurring_payment_id) { + $this->recurring_payment_id = $recurring_payment_id; + } + + function setValue($value) { + $this->value = floatval($value); + } + + function setToken($token) { + $this->token = $token; + } + + function getId() { + return intval($this->id); + } + + function getAgreement_id() { + return $this->agreement_id; + } + + function getUsers_id() { + return intval($this->users_id); + } + + function getJson() { + return $this->json; + } + + function getRecurring_payment_id() { + return $this->recurring_payment_id; + } + + function getValue() { + return floatval($this->value); + } + + function getToken() { + return $this->token; + } + + static function getFromToken($token) { + global $global; + $sql = "SELECT * FROM " . static::getTableName() . " WHERE token = ? LIMIT 1"; + // I had to add this because the about from customize plugin was not loading on the about page http://127.0.0.1/AVideo/about + $res = sqlDAL::readSql($sql, "s", array($token), true); + $data = sqlDAL::fetchAssoc($res); + sqlDAL::close($res); + if ($res) { + $row = $data; + } else { + $row = false; + } + return $row; + } + + static function getFromRecurringPaymentId($recurring_payment_id) { + global $global; + $sql = "SELECT * FROM " . static::getTableName() . " WHERE recurring_payment_id = ? LIMIT 1"; + // I had to add this because the about from customize plugin was not loading on the about page http://127.0.0.1/AVideo/about + $res = sqlDAL::readSql($sql, "s", array($recurring_payment_id), true); + $data = sqlDAL::fetchAssoc($res); + sqlDAL::close($res); + if ($res) { + $row = $data; + } else { + $row = false; + } + return $row; + } + +} diff --git a/plugin/PayPalYPT/PayPalClient.php b/plugin/PayPalYPT/PayPalClient.php new file mode 100644 index 000000000..1e5348596 --- /dev/null +++ b/plugin/PayPalYPT/PayPalClient.php @@ -0,0 +1,35 @@ +ClientID; + $clientSecret = $obj->ClientSecret; + if(!empty($obj->disableSandbox)){ + _error_log('PayPalClient Production'); + return new ProductionEnvironment($clientId, $clientSecret); + }else{ + _error_log('PayPalClient Sandbox'); + return new SandboxEnvironment($clientId, $clientSecret); + } + } +} \ No newline at end of file diff --git a/plugin/PayPalYPT/PayPalYPT.php b/plugin/PayPalYPT/PayPalYPT.php index c9e61a01b..e7633eac3 100644 --- a/plugin/PayPalYPT/PayPalYPT.php +++ b/plugin/PayPalYPT/PayPalYPT.php @@ -1,663 +1,840 @@ Go to Paypal developer Site here (you must have Paypal account, of course)
Click on Create App on right side of page
Choose name of your app and click Create App
Now you can see and manage everything include client ID and secret."; } public function getName() { return "PayPalYPT"; } public function getUUID() { return "5f613a09-c0b6-4264-85cb-47ae076d949f"; } public function getPluginVersion() { - return "1.0"; + return "2.0"; } public function getEmptyDataObject() { $obj = new stdClass(); $obj->ClientID = "ASUkHFpWX0T8sr8EiGdLZ05m-RAb8l-hdRxoq-OXWmua2i7EUfqFkMZvSoGgH2LhK7zAqt29IiS2oRTn"; $obj->ClientSecret = "ECxtMBsLr0cFwSCgI0uaDiVzEUbVlV3r_o_qaU-SOsQqCEOKPq4uGlr1C0mhdDmEyO30mw7-PF0bOnfo"; $obj->subscriptionButtonLabel = "Subscribe With PayPal"; $obj->paymentButtonLabel = "Pay With PayPal"; $obj->ClientSecret = "ECxtMBsLr0cFwSCgI0uaDiVzEUbVlV3r_o_qaU-SOsQqCEOKPq4uGlr1C0mhdDmEyO30mw7-PF0bOnfo"; $obj->disableSandbox = false; - $obj->enablePayout = false; return $obj; } public function setUpPayment($invoiceNumber, $redirect_url, $cancel_url, $total = '1.00', $currency = "USD", $description = "") { global $global; require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; $notify_url = "{$global['webSiteRootURL']}plugin/PayPalYPT/ipn.php"; // After Step 2 $payer = new \PayPal\Api\Payer(); $payer->setPaymentMethod('paypal'); $amount = new \PayPal\Api\Amount(); $amount->setTotal($total); $amount->setCurrency($currency); $transaction = new \PayPal\Api\Transaction(); $transaction->setAmount($amount); $transaction->setNotifyUrl($notify_url); $transaction->setInvoiceNumber($invoiceNumber); $transaction->setDescription($description); $redirectUrls = new \PayPal\Api\RedirectUrls(); $redirectUrls->setReturnUrl($redirect_url) ->setCancelUrl($cancel_url); $payment = new \PayPal\Api\Payment(); $payment->setIntent('sale') ->setPayer($payer) ->setTransactions(array($transaction)) ->setRedirectUrls($redirectUrls); // After Step 3 try { $payment->create($apiContext); return $payment; } catch (\PayPal\Exception\PayPalConnectionException $ex) { // This will print the detailed information on the exception. //REALLY HELPFUL FOR DEBUGGING _error_log("PayPal Error: " . $ex->getData()); } return false; } public function getPlanDetails($plan_id) { global $global; require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; try { $plan = Plan::get($plan_id, $apiContext); } catch (Exception $ex) { return $ex; } return $plan; } private function executePayment() { global $global; require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; // ### Approval Status // Determine if the user approved the payment or not // Get the payment Object by passing paymentId // payment id was previously stored in session in // CreatePaymentUsingPayPal.php $paymentId = $_GET['paymentId']; $payment = Payment::get($paymentId, $apiContext); $amount = self::getAmountFromPayment($payment); $total = $amount->total; $currency = $amount->currency; // ### Payment Execute // PaymentExecution object includes information necessary // to execute a PayPal account payment. // The payer_id is added to the request query parameters // when the user is redirected from paypal back to your site $execution = new PaymentExecution(); $execution->setPayerId($_GET['PayerID']); // ### Optional Changes to Amount // If you wish to update the amount that you wish to charge the customer, // based on the shipping address or any other reason, you could // do that by passing the transaction object with just `amount` field in it. // Here is the example on how we changed the shipping to $1 more than before. $transaction = new Transaction(); $amount = new Amount(); //$details = new Details(); $amount->setCurrency($currency); $amount->setTotal($total); //$amount->setDetails($details); $transaction->setAmount($amount); // Add the above transaction object inside our Execution object. $execution->addTransaction($transaction); try { // Execute the payment // (See bootstrap.php for more on `ApiContext`) $result = $payment->execute($execution, $apiContext); try { $payment = Payment::get($paymentId, $apiContext); } catch (Exception $ex) { return false; } } catch (Exception $ex) { return false; } return $payment; } private function createBillingPlan($redirect_url, $cancel_url, $total = '1.00', $currency = "USD", $frequency = "Month", $interval = 1, $name = 'Base Agreement', $plans_id = 0) { global $global; _error_log("createBillingPlan: start: " . json_encode(array($redirect_url, $cancel_url, $total, $currency, $frequency, $interval, $name))); require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; $notify_url = "{$global['webSiteRootURL']}plugin/PayPalYPT/ipn.php"; // Create a new billing plan $plan = new Plan(); $plan->setName(substr(cleanString($name), 0, 126)) ->setDescription(substr(cleanString($name), 0, 126)) ->setType('INFINITE'); $paymentDefinitionArray = array(); if (!empty($plans_id)) { $subs = new SubscriptionPlansTable($plans_id); $trialDays = $subs->getHow_many_days_trial(); if (!empty($trialDays)) { $trialPaymentDefinition = new PaymentDefinition(); $trialPaymentDefinition->setName('Trial Payment') ->setType('TRIAL') ->setFrequency('Day') ->setFrequencyInterval($trialDays) ->setCycles("1") ->setAmount(new Currency(array('value' => 0, 'currency' => $currency))); $paymentDefinitionArray[] = $trialPaymentDefinition; } } // Set billing plan definitions $paymentDefinition = new PaymentDefinition(); $paymentDefinition->setName('Regular Payments') ->setType('REGULAR') ->setFrequency($frequency) ->setFrequencyInterval($interval) ->setCycles('0') ->setAmount(new Currency(array('value' => $total, 'currency' => $currency))); $paymentDefinitionArray[] = $paymentDefinition; $plan->setPaymentDefinitions($paymentDefinitionArray); // Set merchant preferences $merchantPreferences = new MerchantPreferences(); // if there is a trial do not charge a setup fee if (empty($trialDays)) { $merchantPreferences->setReturnUrl($redirect_url) ->setCancelUrl($cancel_url) //->setNotifyUrl($notify_url) ->setAutoBillAmount('yes') ->setInitialFailAmountAction('CONTINUE') ->setMaxFailAttempts('0') ->setSetupFee(new Currency(array('value' => $total, 'currency' => $currency))); } else { $merchantPreferences->setReturnUrl($redirect_url) ->setCancelUrl($cancel_url) //->setNotifyUrl($notify_url) ->setAutoBillAmount('yes') ->setInitialFailAmountAction('CONTINUE') ->setMaxFailAttempts('0'); } $plan->setMerchantPreferences($merchantPreferences); //create plan try { $createdPlan = $plan->create($apiContext); try { $patch = new Patch(); $value = new PayPalModel('{"state":"ACTIVE"}'); $patch->setOp('replace') ->setPath('/') ->setValue($value); $patchRequest = new PatchRequest(); $patchRequest->addPatch($patch); $createdPlan->update($patchRequest, $apiContext); $plan = Plan::get($createdPlan->getId(), $apiContext); _error_log("createBillingPlan: " . json_encode(array($redirect_url, $cancel_url, $total, $currency, $frequency, $interval, $name))); // Output plan id return $plan; } catch (PayPal\Exception\PayPalConnectionException $ex) { _error_log("PayPal Error createBillingPlan 1: " . $ex->getData()); } catch (Exception $ex) { _error_log("PayPal Error createBillingPlan 2: " . $ex->getData()); } } catch (PayPal\Exception\PayPalConnectionException $ex) { _error_log("PayPal Error createBillingPlan 3: " . $ex->getData()); } catch (Exception $ex) { _error_log("PayPal Error createBillingPlan 4: " . $ex->getData()); } return false; } private function getPlanId() { global $global; if (!empty($_POST['plans_id'])) { $s = new SubscriptionPlansTable($_POST['plans_id']); $plan_id = $s->getPaypal_plan_id(); require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; try { $plan = Plan::get($plan_id, $apiContext); if (!empty($plan)) { return $plan->getId(); } } catch (Exception $ex) { return false; } } return false; } public function setUpSubscription($invoiceNumber, $redirect_url, $cancel_url, $total = '1.00', $currency = "USD", $frequency = "Month", $interval = 1, $name = 'Base Agreement') { global $global; require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; $notify_url = "{$global['webSiteRootURL']}plugin/PayPalYPT/ipn.php"; $planId = $this->getPlanId(); if (empty($planId)) { //createBillingPlan($redirect_url, $cancel_url, $total = '1.00', $currency = "USD", $frequency = "Month", $interval = 1, $name = 'Base Agreement') $plan = $this->createBillingPlan($redirect_url, $cancel_url, $total, $currency, $frequency, $interval, $name, $_POST['plans_id']); if (empty($plan)) { _error_log("PayPal Error setUpSubscription Plan ID is empty "); return false; } $planId = $plan->getId(); // save the paypal plan ID for reuse if (!empty($_POST['plans_id'])) { $s = new SubscriptionPlansTable($_POST['plans_id']); $s->setPaypal_plan_id($planId); $s->save(); } } // Create new agreement // the setup fee will be the first payment and start date is the next payment $subs = new SubscriptionPlansTable($_POST['plans_id']); if (!empty($subs)) { $trialDays = $subs->getHow_many_days_trial(); } if (!empty($trialDays)) { $startDate = date("Y-m-d\TH:i:s.000\Z", strtotime("+12 hour")); } else { $startDate = date("Y-m-d\TH:i:s.000\Z", strtotime("+{$interval} {$frequency}")); } $agreement = new Agreement(); $agreement->setName(substr(cleanString($name), 0, 126)) ->setDescription(substr(cleanString($name), 0, 126)) ->setStartDate($startDate); $plan = new Plan(); $plan->setId($planId); $agreement->setPlan($plan); // Add payer type $payer = new Payer(); $payer->setPaymentMethod('paypal'); $agreement->setPayer($payer); try { // Create agreement $agreement = $agreement->create($apiContext); // Extract approval URL to redirect user return $agreement; } catch (PayPal\Exception\PayPalConnectionException $ex) { _error_log("PayPal Error createBillingPlan 5: startDate: {$startDate} " . $ex->getData()); } catch (Exception $ex) { _error_log("PayPal Error createBillingPlan 6: startDate: {$startDate} " . $ex->getData()); } return false; } + public function setUpSubscriptionV2($total = '1.00', $currency = "USD", $frequency = "Month", $interval = 1, $name = '', $json = '', $trialDays = 0) { + global $global; + + require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; + //createBillingPlanV2($total = '1.00', $currency = "USD", $frequency = "Month", $interval = 1, $name = '', $trialDays = 0) + $plan = $this->createBillingPlanV2($total, $currency, $frequency, $interval, $name, $json, $trialDays); + + if (empty($plan)) { + _error_log("setUpSubscriptionV2: PayPal Error setUpSubscription Plan ID is empty "); + return false; + } + $planId = $plan->getId(); + + // Create new agreement + // the setup fee will be the first payment and start date is the next payment + if (!empty($trialDays)) { + $startDate = date("Y-m-d\TH:i:s.000\Z", strtotime("+12 hour")); + } else { + $startDate = date("Y-m-d\TH:i:s.000\Z", strtotime("+{$interval} {$frequency}")); + } + $agreement = new Agreement(); + $agreement->setName(substr(cleanString($name), 0, 126)) + ->setDescription(substr(cleanString($json), 0, 126)) + ->setStartDate($startDate); + + $plan = new Plan(); + $plan->setId($planId); + $agreement->setPlan($plan); + + // Add payer type + $payer = new Payer(); + $payer->setPaymentMethod('paypal'); + $agreement->setPayer($payer); + + try { + // Create agreement + $agreement = $agreement->create($apiContext); + + // Extract approval URL to redirect user + return $agreement; + } catch (PayPal\Exception\PayPalConnectionException $ex) { + _error_log("setUpSubscriptionV2: PayPal Error createBillingPlan 5: startDate: {$startDate} " . $ex->getData()); + } catch (Exception $ex) { + _error_log("setUpSubscriptionV2: PayPal Error createBillingPlan 6: startDate: {$startDate} " . $ex->getData()); + } + return false; + } + + private function createBillingPlanV2($total = '1.00', $currency = "USD", $frequency = "Month", $interval = 1, $name = '', $json = '', $trialDays = 0) { + global $global; + _error_log("createBillingPlanV2: createBillingPlan: start: " . json_encode(array($total, $currency, $frequency, $interval, $name, $trialDays))); + + require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; + $notify_url = "{$global['webSiteRootURL']}plugin/PayPalYPT/ipnV2.php"; + $notify_url = addQueryStringParameter($notify_url, 'json', $json); + + $cancel_url = addQueryStringParameter($notify_url, 'success', 0); + $success_url = addQueryStringParameter($notify_url, 'success', 1); + + // Create a new billing plan + $plan = new Plan(); + $plan->setName(substr(cleanString($name), 0, 126)) + ->setDescription(substr(cleanString($name), 0, 126)) + ->setType('INFINITE'); + + $paymentDefinitionArray = array(); + + if (!empty($trialDays)) { + $trialPaymentDefinition = new PaymentDefinition(); + $trialPaymentDefinition->setName('Trial Payment') + ->setType('TRIAL') + ->setFrequency('Day') + ->setFrequencyInterval($trialDays) + ->setCycles("1") + ->setAmount(new Currency(array('value' => 0, 'currency' => $currency))); + $paymentDefinitionArray[] = $trialPaymentDefinition; + } + + // Set billing plan definitions + $paymentDefinition = new PaymentDefinition(); + $paymentDefinition->setName('Regular Payments') + ->setType('REGULAR') + ->setFrequency($frequency) + ->setFrequencyInterval($interval) + ->setCycles('0') + ->setAmount(new Currency(array('value' => $total, 'currency' => $currency))); + $paymentDefinitionArray[] = $paymentDefinition; + + $plan->setPaymentDefinitions($paymentDefinitionArray); + + // Set merchant preferences + $merchantPreferences = new MerchantPreferences(); + // if there is a trial do not charge a setup fee + if (empty($trialDays)) { + $merchantPreferences->setReturnUrl($success_url) + ->setCancelUrl($cancel_url) + ->setNotifyUrl($notify_url) + ->setAutoBillAmount('yes') + ->setInitialFailAmountAction('CONTINUE') + ->setMaxFailAttempts('0') + ->setSetupFee(new Currency(array('value' => $total, 'currency' => $currency))); + } else { + $merchantPreferences->setReturnUrl($success_url) + ->setCancelUrl($cancel_url) + ->setNotifyUrl($notify_url) + ->setAutoBillAmount('yes') + ->setInitialFailAmountAction('CONTINUE') + ->setMaxFailAttempts('0'); + } + $plan->setMerchantPreferences($merchantPreferences); + + //create plan + try { + $createdPlan = $plan->create($apiContext); + + try { + $patch = new Patch(); + $value = new PayPalModel('{"state":"ACTIVE"}'); + $patch->setOp('replace') + ->setPath('/') + ->setValue($value); + $patchRequest = new PatchRequest(); + $patchRequest->addPatch($patch); + $createdPlan->update($patchRequest, $apiContext); + + $plan = Plan::get($createdPlan->getId(), $apiContext); + _error_log("createBillingPlanV2: createBillingPlan: " . json_encode(array($total, $currency, $frequency, $interval, $name, $trialDays, $plan))); + // Output plan id + return $plan; + } catch (PayPal\Exception\PayPalConnectionException $ex) { + _error_log("createBillingPlanV2: PayPal Error createBillingPlan 1: " . $ex->getData()); + } catch (Exception $ex) { + _error_log("createBillingPlanV2: PayPal Error createBillingPlan 2: " . $ex->getData()); + } + } catch (PayPal\Exception\PayPalConnectionException $ex) { + _error_log("createBillingPlanV2: PayPal Error createBillingPlan 3: " . $ex->getData()); + } catch (Exception $ex) { + _error_log("createBillingPlanV2: PayPal Error createBillingPlan 4: " . $ex->getData()); + } + return false; + } + private function executeBillingAgreement() { global $global; require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; $token = $_GET['token']; $agreement = new \PayPal\Api\Agreement(); try { // Execute agreement _error_log("PayPal Try to execute "); $agreement->execute($token, $apiContext); return $agreement; } catch (PayPal\Exception\PayPalConnectionException $ex) { _error_log("PayPal Error executeBillingAgreement: " . $ex->getData()); } catch (Exception $ex) { _error_log("PayPal Error executeBillingAgreement: " . $ex); } return false; } static function getBillingAgreement($agreement_id) { global $global; require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; return Agreement::get($agreement_id, $apiContext); } static function cancelAgreement($agreement_id) { global $global; require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; //Create an Agreement State Descriptor, explaining the reason to suspend. $agreementStateDescriptor = new AgreementStateDescriptor(); $agreementStateDescriptor->setNote("Canceled by user"); $createdAgreement = self::getBillingAgreement($agreement_id); try { $createdAgreement->suspend($agreementStateDescriptor, $apiContext); // Lets get the updated Agreement Object return Agreement::get($createdAgreement->getId(), $apiContext); } catch (Exception $ex) { return false; } } function execute() { if (!empty($_GET['paymentId'])) { _error_log("PayPal Execute payment "); return $this->executePayment(); } else if (!empty($_GET['token'])) { _error_log("PayPal Billing Agreement "); return $this->executeBillingAgreement(); } _error_log("PayPal no payment to execute "); return false; } static function getAmountFromPayment($payment) { if (!is_object($payment)) { return false; } if (get_class($payment) === 'PayPal\Api\Agreement') { $amount = new stdClass(); //_error_log("getAmountFromPayment: ".json_encode($payment)); //_error_log("getAmountFromPayment: ". print_r($payment, true)); //_error_log("getAmountFromPayment: ".($payment->getId())); //_error_log("getAmountFromPayment: ".($payment->getPlan())); //_error_log("getAmountFromPayment: ".($payment->getPlan()->payment_definitions->amount->value)); //_error_log("getAmountFromPayment: ".($payment->getPlan()->merchant_preferences->setup_fee->value)); //$amount->total = $payment->agreement_details->last_payment_amount->value; if (!empty(@$payment->getPlan()->payment_definitions->amount->value)) { $amount->total = $payment->getPlan()->payment_definitions->amount->value; } else if (!empty(@$payment->getPlan()->merchant_preferences->setup_fee->value)) { $amount->total = $payment->getPlan()->merchant_preferences->setup_fee->value; } else { $amount->total = 0; } $amount->total = floatval($amount->total); return $amount; } else { return $payment->getTransactions()[0]->amount; } } function sendToPayPal($invoiceNumber, $redirect_url, $cancel_url, $total, $currency) { $payment = $this->setUpPayment($invoiceNumber, $redirect_url, $cancel_url, $total, $currency); if (!empty($payment)) { header("Location: {$payment->getApprovalLink()}"); exit; } } static function updateBillingPlan($plan_id, $total = '1.00', $currency = "USD", $interval = 1, $name = 'Base Agreement') { global $global; if (empty($plan_id)) { return false; } require $global['systemRootPath'] . 'plugin/PayPalYPT/bootstrap.php'; $createdPlan = Plan::get($plan_id, $apiContext); try { - - $patch1 = new Patch(); $patch1->setOp('replace') ->setPath('/') ->setValue(_json_decode('{"name": "' . $name . '"}')); $paymentDefinitions = $createdPlan->getPaymentDefinitions(); $paymentDefinition = $paymentDefinitions[0]; $paymentDefinitionId = $paymentDefinition->getId(); $patch2 = new Patch(); $patch2->setOp('replace') ->setPath('/payment-definitions/' . $paymentDefinitionId) ->setValue(_json_decode('{ "amount": { "currency": "' . $currency . '", "value": "' . $total . '" }, "frequency_interval": "' . $interval . '" }')); $patchRequest = new PatchRequest(); $patchRequest->addPatch($patch1); $patchRequest->addPatch($patch2); $createdPlan->update($patchRequest, $apiContext); return Plan::get($createdPlan->getId(), $apiContext); } catch (Exception $ex) { _error_log("PayPal Error updateBillingPlan: " . $ex->getData()); } return false; } static function IPNcheck() { $raw_post_data = file_get_contents('php://input'); $raw_post_array = explode('&', $raw_post_data); $myPost = array(); foreach ($raw_post_array as $keyval) { $keyval = explode('=', $keyval); if (count($keyval) == 2) $myPost[$keyval[0]] = urldecode($keyval[1]); } // read the IPN message sent from PayPal and prepend 'cmd=_notify-validate' $req = 'cmd=_notify-validate'; if (function_exists('get_magic_quotes_gpc')) { $get_magic_quotes_exists = true; } foreach ($myPost as $key => $value) { if ($get_magic_quotes_exists == true && get_magic_quotes_gpc() == 1) { $value = urlencode(stripslashes($value)); } else { $value = urlencode($value); } $req .= "&$key=$value"; } // Step 2: POST IPN data back to PayPal to validate $ch = curl_init('https://ipnpb.paypal.com/cgi-bin/webscr'); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $req); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_FORBID_REUSE, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Connection: Close')); // In wamp-like environments that do not come bundled with root authority certificates, // please download 'cacert.pem' from "https://curl.haxx.se/docs/caextract.html" and set // the directory path of the certificate as shown below: // curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem'); if (!($res = curl_exec($ch))) { _error_log("IPNcheck: Got " . curl_error($ch) . " when processing IPN data"); curl_close($ch); exit; } // inspect IPN validation result and act accordingly if (strcmp($res, "VERIFIED") == 0) { _error_log("IPNcheck SUCCESS: The response from IPN was: " . $res . ""); return true; } else if (strcmp($res, "INVALID") == 0) { // IPN invalid, log for manual investigation _error_log("IPNcheck ERROR: The response from IPN was: " . $res . ""); return false; } curl_close($ch); } public static function setUserReceiverEmail($users_id, $email) { $user = new User($users_id); $paramName = 'PayPalReceiverEmail'; return $user->addExternalOptions($paramName, $email); } public static function getUserReceiverEmail($users_id) { $user = new User($users_id); $paramName = 'PayPalReceiverEmail'; return $user->getExternalOption($paramName); } public function getMyAccount($users_id) { global $global; - $obj = AVideoPlugin::getDataObjectIfEnabled('PayPalYPT'); - if (empty($obj) || empty($obj->enablePayout)) { + $obj = AVideoPlugin::getDataObjectIfEnabled('YPTWallet'); + if (empty($obj) || empty($obj->enableAutoWithdrawFundsPagePaypal)) { return ''; } include $global['systemRootPath'] . 'plugin/PayPalYPT/payOutReceiverEmailForm.php'; } public static function WalletPayout($users_id_to_be_paid, $value) { + global $config; $obj = new stdClass(); $obj->error = true; $obj->msg = ''; $obj->response = false; if (empty($value)) { $obj->msg = 'value is empty'; return $obj; } $wallet = AVideoPlugin::getDataObjectIfEnabled('YPTWallet'); if (empty($wallet)) { $obj->msg = 'YPTWallet plugin is disabled'; return $obj; } - $user->getExternalOption($id); - // check if the user has a paypal email $receiver_email = self::getUserReceiverEmail($users_id_to_be_paid); if (empty($receiver_email)) { $obj->msg = "The user {$users_id_to_be_paid} does not have a paypal receiver email"; return $obj; } // transfer money from wallet - $description = "Paypal payout"; - $transfer = YPTWallet::transferBalanceToSiteOwner($users_id_to_be_paid, $value, $description = "", true); + $description = "Paypal payout to {$receiver_email} [users_id=$users_id_to_be_paid]"; + $transfer = YPTWallet::transferBalanceToSiteOwner($users_id_to_be_paid, $value, $description, true); if ($transfer) { $email_subject = $note = "You received " . YPTWallet::formatCurrency($value) . " from " . $config->getWebSiteTitle() . " "; // payout using paypal $obj->response = self::Payout($receiver_email, $value, $wallet->currency, $note, $email_subject); - if (empty($obj->response)) { - $obj->msg = 'PayPal Payout error'; + if (empty($obj->response) || !empty($obj->response->error)) { + $description = "Paypal refund"; + $obj->msg = 'PayPal Payout error: ' . $obj->response->msg; + $transfer = YPTWallet::transferBalanceFromSiteOwner($users_id_to_be_paid, $value, $description, true); return $obj; } $obj->error = false; } return $obj; } public static function Payout($receiver_email, $value, $currency = 'USD', $note = '', $email_subject = '') { + $obj = new stdClass(); + $obj->msg = ''; + $obj->error = true; + $obj->response = false; if (empty($value)) { - _error_log('PayPal::Payout value is empty'); - return false; + $obj->msg = 'PayPal::Payout value is empty'; + _error_log($obj->msg); + return $obj; } if (empty($receiver_email)) { - _error_log("PayPal::Payout The user {$users_id_to_be_paid} does not have a paypal receiver email"); - return false; + $obj->msg = "PayPal::Payout The user {$users_id_to_be_paid} does not have a paypal receiver email"; + _error_log($obj->msg); + return $obj; } - $paypal = AVideoPlugin::getDataObjectIfEnabled('PayPalYPT'); - if (empty($paypal) || $paypal->enablePayout) { - _error_log('PayPal::Payout plugin or payout is disabled'); - return false; + $wallet = AVideoPlugin::getDataObjectIfEnabled('YPTWallet'); + if (empty($wallet) || empty($wallet->enableAutoWithdrawFundsPagePaypal)) { + $obj->msg = 'PayPal::Payout Wallet enableAutoWithdrawFundsPagePaypal is disabled'; + _error_log($obj->msg); + return $obj; } - try { - - $request = new PayoutsPostRequest(); + $request = new PaypalPayoutsSDK\Payouts\PayoutsPostRequest(); $request->body = new stdClass(); $request->body->sender_batch_header = new stdClass(); $request->body->sender_batch_header->email_subject = $email_subject; $item = new stdClass(); $item->recipient_type = 'EMAIL'; $item->receiver = $receiver_email; $item->note = $note; $item->amount = new stdClass(); $item->amount->currency = $currency; $item->amount->value = $value; $request->body->items = array($item); - $request->body = self::buildRequestBody(); + $request->body = object_to_array($request->body); + $client = PayPalClient::client(); - $response = $client->execute($request); + $obj->response = $client->execute($request); if ($debug) { $msg = ''; $msg .= "Status Code: {$response->statusCode}\n"; $msg .= "Status: {$response->result->batch_header->batch_status}\n"; $msg .= "Batch ID: {$response->result->batch_header->payout_batch_id}\n"; $msg .= "Links:\n"; foreach ($response->result->links as $link) { $msg .= "\t{$link->rel}: {$link->href}\tCall Type: {$link->method}\n"; } // To toggle printing the whole response body comment/uncomment below line - $msg .= json_encode($response->result, JSON_PRETTY_PRINT) . "\n"; - _error_log('PayPal::Payout ' . $msg); + $msg .= json_encode($response->result, JSON_PRETTY_PRINT) . PHP_EOL; + $obj->msg = 'PayPal::Payout ' . $msg; + _error_log($obj->msg); } - return $response; + $obj->error = false; + return $obj; } catch (HttpException $e) { $msg = ''; //Parse failure response - $msg .= $e->getMessage() . "\n"; + $msg .= $e->getMessage() . PHP_EOL; $error = json_decode($e->getMessage()); - $msg .= $error->message . "\n"; - $msg .= $error->name . "\n"; - $msg .= $error->debug_id . "\n"; + $msg .= $error->message . PHP_EOL; + $msg .= $error->name . PHP_EOL; + $msg .= $error->debug_id . PHP_EOL; + $obj->msg = 'PayPal::Payout ' . $msg; + _error_log($obj->msg); + } + return $obj; + } + + public function getWalletConfigurationHTML($users_id, $wallet, $walletDataObject) { + global $global; + $obj = AVideoPlugin::getDataObjectIfEnabled('YPTWallet'); + if (empty($obj->enableAutoWithdrawFundsPagePaypal)) { + return ''; } + include_once $global['systemRootPath'] . 'plugin/PayPalYPT/getWalletConfigurationHTML.php'; + } + + + public function getPluginMenu() { + global $global; + return ''; + } + + static function isTokenUsed($token){ + $row = PayPalYPT_log::getFromToken($token); + return !empty($row); + } + + static function isRecurringPaymentIdUsed($recurring_payment_id){ + $row = PayPalYPT_log::getFromRecurringPaymentId($recurring_payment_id); + return !empty($row); } } diff --git a/plugin/PayPalYPT/View/PayPalYPT_log/add.json.php b/plugin/PayPalYPT/View/PayPalYPT_log/add.json.php new file mode 100644 index 000000000..9f9279ddb --- /dev/null +++ b/plugin/PayPalYPT/View/PayPalYPT_log/add.json.php @@ -0,0 +1,29 @@ +error = true; +$obj->msg = ""; + +$plugin = AVideoPlugin::loadPluginIfEnabled('PayPalYPT'); + +if(!User::isAdmin()){ + $obj->msg = "You cant do this"; + die(json_encode($obj)); +} + +$o = new PayPalYPT_log(@$_POST['id']); +$o->setAgreement_id($_POST['agreement_id']); +$o->setUsers_id($_POST['users_id']); +$o->setJson($_POST['json']); +$o->setRecurring_payment_id($_POST['recurring_payment_id']); +$o->setValue($_POST['value']); +$o->setToken($_POST['token']); + +if($id = $o->save()){ + $obj->error = false; +} + +echo json_encode($obj); diff --git a/plugin/PayPalYPT/View/PayPalYPT_log/delete.json.php b/plugin/PayPalYPT/View/PayPalYPT_log/delete.json.php new file mode 100644 index 000000000..2bcb382a2 --- /dev/null +++ b/plugin/PayPalYPT/View/PayPalYPT_log/delete.json.php @@ -0,0 +1,20 @@ +error = true; + +$plugin = AVideoPlugin::loadPluginIfEnabled('PayPalYPT'); + +if(!User::isAdmin()){ + $obj->msg = "You cant do this"; + die(json_encode($obj)); +} + +$id = intval($_POST['id']); +$row = new PayPalYPT_log($id); +$obj->error = !$row->delete(); +die(json_encode($obj)); +?> \ No newline at end of file diff --git a/plugin/PayPalYPT/View/PayPalYPT_log/index.php b/plugin/PayPalYPT/View/PayPalYPT_log/index.php new file mode 100644 index 000000000..28a88306c --- /dev/null +++ b/plugin/PayPalYPT/View/PayPalYPT_log/index.php @@ -0,0 +1,29 @@ + + + + + <?php echo $config->getWebSiteTitle(); ?> :: PayPalYPT + + + + + + + diff --git a/plugin/PayPalYPT/View/PayPalYPT_log/index_body.php b/plugin/PayPalYPT/View/PayPalYPT_log/index_body.php new file mode 100644 index 000000000..43b9cbac7 --- /dev/null +++ b/plugin/PayPalYPT/View/PayPalYPT_log/index_body.php @@ -0,0 +1,237 @@ + + + +
+
+ +
+
+
+
+
+
+
+
+
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + " required="true"> +
+
+ + " required="true"> +
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + +
#
#
+
+
+
+
+
+
+ + + diff --git a/plugin/PayPalYPT/View/PayPalYPT_log/index_head.php b/plugin/PayPalYPT/View/PayPalYPT_log/index_head.php new file mode 100644 index 000000000..a23b2e9d3 --- /dev/null +++ b/plugin/PayPalYPT/View/PayPalYPT_log/index_head.php @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/plugin/PayPalYPT/View/PayPalYPT_log/list.json.php b/plugin/PayPalYPT/View/PayPalYPT_log/list.json.php new file mode 100644 index 000000000..8d10e8986 --- /dev/null +++ b/plugin/PayPalYPT/View/PayPalYPT_log/list.json.php @@ -0,0 +1,10 @@ + +{"data": , "draw": , "recordsTotal":, "recordsFiltered":} \ No newline at end of file diff --git a/plugin/PayPalYPT/View/editor.php b/plugin/PayPalYPT/View/editor.php new file mode 100644 index 000000000..33387fdf1 --- /dev/null +++ b/plugin/PayPalYPT/View/editor.php @@ -0,0 +1,46 @@ + + + + + <?php echo $config->getWebSiteTitle(); ?> :: PayPalYPT + + + + + + +
+
+
+
+ +
+
+
+ +
+
+ +
+
+
+
+
+ + + + + diff --git a/plugin/PayPalYPT/bootstrap.php b/plugin/PayPalYPT/bootstrap.php index 912dfc6d4..8c25f44a0 100644 --- a/plugin/PayPalYPT/bootstrap.php +++ b/plugin/PayPalYPT/bootstrap.php @@ -1,38 +1,38 @@ ClientID, // ClientID $obj->ClientSecret // ClientSecret ) ); // Step 2.1 : Between Step 2 and Step 3 $apiContext->setConfig( array( 'mode' => ($obj->disableSandbox?'LIVE':'sandbox'), 'log.LogEnabled' => true, 'log.FileName' => $global['systemRootPath'].'videos/PayPal.log', 'log.LogLevel' => 'DEBUG' ) ); \ No newline at end of file diff --git a/plugin/PayPalYPT/getWalletConfigurationHTML.php b/plugin/PayPalYPT/getWalletConfigurationHTML.php new file mode 100644 index 000000000..48c72ee8e --- /dev/null +++ b/plugin/PayPalYPT/getWalletConfigurationHTML.php @@ -0,0 +1,8 @@ +
+
+
+ +
+
\ No newline at end of file diff --git a/plugin/PayPalYPT/install/install.sql b/plugin/PayPalYPT/install/install.sql new file mode 100644 index 000000000..fc49dd8c3 --- /dev/null +++ b/plugin/PayPalYPT/install/install.sql @@ -0,0 +1,18 @@ +CREATE TABLE IF NOT EXISTS `PayPalYPT_log` ( + `id` INT NOT NULL AUTO_INCREMENT, + `agreement_id` VARCHAR(45) NULL, + `created` DATETIME NULL, + `modified` DATETIME NULL, + `users_id` INT(11) NOT NULL, + `json` TEXT NULL, + `recurring_payment_id` VARCHAR(45) NULL, + `value` FLOAT(10,2) NULL, + `token` VARCHAR(45) NULL, + PRIMARY KEY (`id`), + INDEX `fk_PayPalYPT_log_users1_idx` (`users_id` ASC), + CONSTRAINT `fk_PayPalYPT_log_users1` + FOREIGN KEY (`users_id`) + REFERENCES `users` (`id`) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB; \ No newline at end of file diff --git a/plugin/PayPalYPT/ipnV2.php b/plugin/PayPalYPT/ipnV2.php new file mode 100644 index 000000000..aa02b49e4 --- /dev/null +++ b/plugin/PayPalYPT/ipnV2.php @@ -0,0 +1,125 @@ +error = true; +$obj->msg = ''; + +$redirectUri = YPTWallet::getAddFundsSuccessRedirectURL(); +if (empty($redirectUri)) { + $redirectUri = getRedirectUri(); +} + +if (empty($plugin)) { + $obj->msg = 'Wallet Disabled'; + die(json_encode($obj)); +} + +if (empty($paypal)) { + $obj->msg = 'PayPal Disabled'; + die(json_encode($obj)); +} + +if (empty($_REQUEST['success'])) { + header('Location: ' . $redirectUri); + exit; +} + +_error_log("PayPalIPN V2: " . json_encode($obj)); +_error_log("PayPalIPN V2: POST " . json_encode($_POST)); +_error_log("PayPalIPN V2: GET " . json_encode($_GET)); + +$json = _json_decode(@$_GET['json']); +if (User::isLogged()) { + $json->users_id = User::getId(); +} + +if (!empty($_GET['token'])) { + _error_log("PayPalIPN V2: token {$_GET['token']} "); + if (!PayPalYPT::isTokenUsed($_GET['token'])) { + _error_log("PayPalIPN V2: token will be processed "); + $agreement = $paypal->execute(); + $payment_amount = floatval($agreement->agreement_details->last_payment_amount->value); + $payment_currency = $agreement->agreement_details->last_payment_amount->currency; + //$payment_time = strtotime($agreement->agreement_details->last_payment_date); + + $pp = new PayPalYPT_log(0); + $pp->setUsers_id($json->users_id); + $pp->setAgreement_id($agreement->id); + $pp->setToken($_GET['token']); + $pp->setValue($payment_amount); + $pp->setJson(array('agreement' => $agreement, 'post' => $_POST, 'get' => $_GET)); + } else { + _error_log("PayPalIPN V2: token was already processed "); + } + //var_dump($agreement, date('Y-m-d\TH:i:s')); + //exit; +} else if (!empty($_POST["recurring_payment_id"])) { + $ipn = PayPalYPT::IPNcheck(); + if (!$ipn) { + $obj->msg = 'IPN Fail'; + _error_log("PayPalIPN V2: IPN Fail "); + die(json_encode($obj)); + } + _error_log("PayPalIPN V2: recurring_payment_id = {$_POST["recurring_payment_id"]} "); + if (!PayPalYPT::isRecurringPaymentIdUsed($_POST["recurring_payment_id"])) { + _error_log("PayPalIPN V2: recurring_payment_id will be processed "); + $payment_amount = empty($_POST['mc_gross']) ? $_POST['amount'] : $_POST['mc_gross']; + $payment_currency = empty($_POST['mc_currency']) ? $_POST['currency_code'] : $_POST['mc_currency']; + + $pp = new PayPalYPT_log(0); + $pp->setUsers_id($json->users_id); + $pp->setRecurring_payment_id($_POST["recurring_payment_id"]); + $pp->setValue($payment_amount); + $pp->setJson(array('ipn' => $ipn, 'post' => $_POST, 'get' => $_GET)); + } else { + _error_log("PayPalIPN V2: recurring_payment_id was already processed "); + } +} +if (is_object($pp)) { + if ($pp->save()) { + if ($walletObject->currency === $payment_currency) { + _error_log("PayPalIPN V2: token log saved $json->users_id, $payment_amount"); + if (!empty($payment_amount) && !empty($json->users_id)) { + $plugin->addBalance($json->users_id, $payment_amount, "PayPal Subscription from token", json_encode($_POST)); + } else { + _error_log("PayPalIPN V2: ERROR balance not added"); + } + } else { + _error_log("PayPalIPN V2: Invalid currency $walletObject->currency===$payment_currency "); + } + } else { + _error_log("PayPalIPN V2: FAIL to save log"); + } +} +if (!empty($json->type)) { + switch ($json->type) { + case 'FansSubscriptions': + _error_log("PayPalIPN V2 FansSubscriptions"); + if (!empty($json->Fsubscriptions_plan_id)) { + $fsObj = AVideoPlugin::getDataObjectIfEnabled('FansSubscriptions'); + if (!empty($fsObj)) { + if (FansSubscriptions::renew($json->users_id, $json->Fsubscriptions_plan_id)) { + header('Location: ' . $redirectUri); + exit; + } + } + } + break; + } +} + +_error_log("PayPalIPN V2 END"); +?> \ No newline at end of file diff --git a/plugin/PayPalYPT/vendor/autoload.php b/plugin/PayPalYPT/vendor/autoload.php deleted file mode 100644 index 2ff6fdcc3..000000000 --- a/plugin/PayPalYPT/vendor/autoload.php +++ /dev/null @@ -1,7 +0,0 @@ - - * Jordi Boggiano - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Composer\Autoload; - -/** - * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. - * - * $loader = new \Composer\Autoload\ClassLoader(); - * - * // register classes with namespaces - * $loader->add('Symfony\Component', __DIR__.'/component'); - * $loader->add('Symfony', __DIR__.'/framework'); - * - * // activate the autoloader - * $loader->register(); - * - * // to enable searching the include path (eg. for PEAR packages) - * $loader->setUseIncludePath(true); - * - * In this example, if you try to use a class in the Symfony\Component - * namespace or one of its children (Symfony\Component\Console for instance), - * the autoloader will first look for the class under the component/ - * directory, and it will then fallback to the framework/ directory if not - * found before giving up. - * - * This class is loosely based on the Symfony UniversalClassLoader. - * - * @author Fabien Potencier - * @author Jordi Boggiano - * @see https://www.php-fig.org/psr/psr-0/ - * @see https://www.php-fig.org/psr/psr-4/ - */ -class ClassLoader -{ - private $vendorDir; - - // PSR-4 - private $prefixLengthsPsr4 = array(); - private $prefixDirsPsr4 = array(); - private $fallbackDirsPsr4 = array(); - - // PSR-0 - private $prefixesPsr0 = array(); - private $fallbackDirsPsr0 = array(); - - private $useIncludePath = false; - private $classMap = array(); - private $classMapAuthoritative = false; - private $missingClasses = array(); - private $apcuPrefix; - - private static $registeredLoaders = array(); - - public function __construct($vendorDir = null) - { - $this->vendorDir = $vendorDir; - } - - public function getPrefixes() - { - if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); - } - - return array(); - } - - public function getPrefixesPsr4() - { - return $this->prefixDirsPsr4; - } - - public function getFallbackDirs() - { - return $this->fallbackDirsPsr0; - } - - public function getFallbackDirsPsr4() - { - return $this->fallbackDirsPsr4; - } - - public function getClassMap() - { - return $this->classMap; - } - - /** - * @param array $classMap Class to filename map - */ - public function addClassMap(array $classMap) - { - if ($this->classMap) { - $this->classMap = array_merge($this->classMap, $classMap); - } else { - $this->classMap = $classMap; - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, either - * appending or prepending to the ones previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories - */ - public function add($prefix, $paths, $prepend = false) - { - if (!$prefix) { - if ($prepend) { - $this->fallbackDirsPsr0 = array_merge( - (array) $paths, - $this->fallbackDirsPsr0 - ); - } else { - $this->fallbackDirsPsr0 = array_merge( - $this->fallbackDirsPsr0, - (array) $paths - ); - } - - return; - } - - $first = $prefix[0]; - if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = (array) $paths; - - return; - } - if ($prepend) { - $this->prefixesPsr0[$first][$prefix] = array_merge( - (array) $paths, - $this->prefixesPsr0[$first][$prefix] - ); - } else { - $this->prefixesPsr0[$first][$prefix] = array_merge( - $this->prefixesPsr0[$first][$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, either - * appending or prepending to the ones previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories - * - * @throws \InvalidArgumentException - */ - public function addPsr4($prefix, $paths, $prepend = false) - { - if (!$prefix) { - // Register directories for the root namespace. - if ($prepend) { - $this->fallbackDirsPsr4 = array_merge( - (array) $paths, - $this->fallbackDirsPsr4 - ); - } else { - $this->fallbackDirsPsr4 = array_merge( - $this->fallbackDirsPsr4, - (array) $paths - ); - } - } elseif (!isset($this->prefixDirsPsr4[$prefix])) { - // Register directories for a new namespace. - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } elseif ($prepend) { - // Prepend directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - (array) $paths, - $this->prefixDirsPsr4[$prefix] - ); - } else { - // Append directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - $this->prefixDirsPsr4[$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, - * replacing any others previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 base directories - */ - public function set($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr0 = (array) $paths; - } else { - $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, - * replacing any others previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * - * @throws \InvalidArgumentException - */ - public function setPsr4($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr4 = (array) $paths; - } else { - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } - } - - /** - * Turns on searching the include path for class files. - * - * @param bool $useIncludePath - */ - public function setUseIncludePath($useIncludePath) - { - $this->useIncludePath = $useIncludePath; - } - - /** - * Can be used to check if the autoloader uses the include path to check - * for classes. - * - * @return bool - */ - public function getUseIncludePath() - { - return $this->useIncludePath; - } - - /** - * Turns off searching the prefix and fallback directories for classes - * that have not been registered with the class map. - * - * @param bool $classMapAuthoritative - */ - public function setClassMapAuthoritative($classMapAuthoritative) - { - $this->classMapAuthoritative = $classMapAuthoritative; - } - - /** - * Should class lookup fail if not found in the current class map? - * - * @return bool - */ - public function isClassMapAuthoritative() - { - return $this->classMapAuthoritative; - } - - /** - * APCu prefix to use to cache found/not-found classes, if the extension is enabled. - * - * @param string|null $apcuPrefix - */ - public function setApcuPrefix($apcuPrefix) - { - $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; - } - - /** - * The APCu prefix in use, or null if APCu caching is not enabled. - * - * @return string|null - */ - public function getApcuPrefix() - { - return $this->apcuPrefix; - } - - /** - * Registers this instance as an autoloader. - * - * @param bool $prepend Whether to prepend the autoloader or not - */ - public function register($prepend = false) - { - spl_autoload_register(array($this, 'loadClass'), true, $prepend); - - if (null === $this->vendorDir) { - return; - } - - if ($prepend) { - self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; - } else { - unset(self::$registeredLoaders[$this->vendorDir]); - self::$registeredLoaders[$this->vendorDir] = $this; - } - } - - /** - * Unregisters this instance as an autoloader. - */ - public function unregister() - { - spl_autoload_unregister(array($this, 'loadClass')); - - if (null !== $this->vendorDir) { - unset(self::$registeredLoaders[$this->vendorDir]); - } - } - - /** - * Loads the given class or interface. - * - * @param string $class The name of the class - * @return bool|null True if loaded, null otherwise - */ - public function loadClass($class) - { - if ($file = $this->findFile($class)) { - includeFile($file); - - return true; - } - } - - /** - * Finds the path to the file where the class is defined. - * - * @param string $class The name of the class - * - * @return string|false The path if found, false otherwise - */ - public function findFile($class) - { - // class map lookup - if (isset($this->classMap[$class])) { - return $this->classMap[$class]; - } - if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { - return false; - } - if (null !== $this->apcuPrefix) { - $file = apcu_fetch($this->apcuPrefix.$class, $hit); - if ($hit) { - return $file; - } - } - - $file = $this->findFileWithExtension($class, '.php'); - - // Search for Hack files if we are running on HHVM - if (false === $file && defined('HHVM_VERSION')) { - $file = $this->findFileWithExtension($class, '.hh'); - } - - if (null !== $this->apcuPrefix) { - apcu_add($this->apcuPrefix.$class, $file); - } - - if (false === $file) { - // Remember that this class does not exist. - $this->missingClasses[$class] = true; - } - - return $file; - } - - /** - * Returns the currently registered loaders indexed by their corresponding vendor directories. - * - * @return self[] - */ - public static function getRegisteredLoaders() - { - return self::$registeredLoaders; - } - - private function findFileWithExtension($class, $ext) - { - // PSR-4 lookup - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; - - $first = $class[0]; - if (isset($this->prefixLengthsPsr4[$first])) { - $subPath = $class; - while (false !== $lastPos = strrpos($subPath, '\\')) { - $subPath = substr($subPath, 0, $lastPos); - $search = $subPath . '\\'; - if (isset($this->prefixDirsPsr4[$search])) { - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); - foreach ($this->prefixDirsPsr4[$search] as $dir) { - if (file_exists($file = $dir . $pathEnd)) { - return $file; - } - } - } - } - } - - // PSR-4 fallback dirs - foreach ($this->fallbackDirsPsr4 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { - return $file; - } - } - - // PSR-0 lookup - if (false !== $pos = strrpos($class, '\\')) { - // namespaced class name - $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) - . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); - } else { - // PEAR-like class name - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; - } - - if (isset($this->prefixesPsr0[$first])) { - foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { - if (0 === strpos($class, $prefix)) { - foreach ($dirs as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - } - } - } - - // PSR-0 fallback dirs - foreach ($this->fallbackDirsPsr0 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - - // PSR-0 include paths. - if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { - return $file; - } - - return false; - } -} - -/** - * Scope isolated include. - * - * Prevents access to $this/self from included files. - */ -function includeFile($file) -{ - include $file; -} diff --git a/plugin/PayPalYPT/vendor/composer/InstalledVersions.php b/plugin/PayPalYPT/vendor/composer/InstalledVersions.php deleted file mode 100644 index 0a6ca53e2..000000000 --- a/plugin/PayPalYPT/vendor/composer/InstalledVersions.php +++ /dev/null @@ -1,301 +0,0 @@ - - array ( - 'pretty_version' => 'dev-master', - 'version' => 'dev-master', - 'aliases' => - array ( - ), - 'reference' => '06273135e8d043e51bd44af1ec88b3a14638941f', - 'name' => '__root__', - ), - 'versions' => - array ( - '__root__' => - array ( - 'pretty_version' => 'dev-master', - 'version' => 'dev-master', - 'aliases' => - array ( - ), - 'reference' => '06273135e8d043e51bd44af1ec88b3a14638941f', - ), - 'paypal/rest-api-sdk-php' => - array ( - 'pretty_version' => '1.14.0', - 'version' => '1.14.0.0', - 'aliases' => - array ( - ), - 'reference' => '72e2f2466975bf128a31e02b15110180f059fc04', - ), - 'psr/log' => - array ( - 'pretty_version' => '1.1.3', - 'version' => '1.1.3.0', - 'aliases' => - array ( - ), - 'reference' => '0f73288fd15629204f9d42b7055f72dacbe811fc', - ), - ), -); -private static $canGetVendors; -private static $installedByVendor = array(); - - - - - - - -public static function getInstalledPackages() -{ -$packages = array(); -foreach (self::getInstalled() as $installed) { -$packages[] = array_keys($installed['versions']); -} - - -if (1 === \count($packages)) { -return $packages[0]; -} - -return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); -} - - - - - - - - - -public static function isInstalled($packageName) -{ -foreach (self::getInstalled() as $installed) { -if (isset($installed['versions'][$packageName])) { -return true; -} -} - -return false; -} - - - - - - - - - - - - - - -public static function satisfies(VersionParser $parser, $packageName, $constraint) -{ -$constraint = $parser->parseConstraints($constraint); -$provided = $parser->parseConstraints(self::getVersionRanges($packageName)); - -return $provided->matches($constraint); -} - - - - - - - - - - -public static function getVersionRanges($packageName) -{ -foreach (self::getInstalled() as $installed) { -if (!isset($installed['versions'][$packageName])) { -continue; -} - -$ranges = array(); -if (isset($installed['versions'][$packageName]['pretty_version'])) { -$ranges[] = $installed['versions'][$packageName]['pretty_version']; -} -if (array_key_exists('aliases', $installed['versions'][$packageName])) { -$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); -} -if (array_key_exists('replaced', $installed['versions'][$packageName])) { -$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); -} -if (array_key_exists('provided', $installed['versions'][$packageName])) { -$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); -} - -return implode(' || ', $ranges); -} - -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); -} - - - - - -public static function getVersion($packageName) -{ -foreach (self::getInstalled() as $installed) { -if (!isset($installed['versions'][$packageName])) { -continue; -} - -if (!isset($installed['versions'][$packageName]['version'])) { -return null; -} - -return $installed['versions'][$packageName]['version']; -} - -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); -} - - - - - -public static function getPrettyVersion($packageName) -{ -foreach (self::getInstalled() as $installed) { -if (!isset($installed['versions'][$packageName])) { -continue; -} - -if (!isset($installed['versions'][$packageName]['pretty_version'])) { -return null; -} - -return $installed['versions'][$packageName]['pretty_version']; -} - -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); -} - - - - - -public static function getReference($packageName) -{ -foreach (self::getInstalled() as $installed) { -if (!isset($installed['versions'][$packageName])) { -continue; -} - -if (!isset($installed['versions'][$packageName]['reference'])) { -return null; -} - -return $installed['versions'][$packageName]['reference']; -} - -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); -} - - - - - -public static function getRootPackage() -{ -$installed = self::getInstalled(); - -return $installed[0]['root']; -} - - - - - - - -public static function getRawData() -{ -return self::$installed; -} - - - - - - - - - - - - - - - - - - - -public static function reload($data) -{ -self::$installed = $data; -self::$installedByVendor = array(); -} - - - - -private static function getInstalled() -{ -if (null === self::$canGetVendors) { -self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); -} - -$installed = array(); - -if (self::$canGetVendors) { -foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { -if (isset(self::$installedByVendor[$vendorDir])) { -$installed[] = self::$installedByVendor[$vendorDir]; -} elseif (is_file($vendorDir.'/composer/installed.php')) { -$installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; -} -} -} - -$installed[] = self::$installed; - -return $installed; -} -} diff --git a/plugin/PayPalYPT/vendor/composer/LICENSE b/plugin/PayPalYPT/vendor/composer/LICENSE deleted file mode 100644 index f27399a04..000000000 --- a/plugin/PayPalYPT/vendor/composer/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - -Copyright (c) Nils Adermann, Jordi Boggiano - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - diff --git a/plugin/PayPalYPT/vendor/composer/autoload_classmap.php b/plugin/PayPalYPT/vendor/composer/autoload_classmap.php deleted file mode 100644 index b26f1b13b..000000000 --- a/plugin/PayPalYPT/vendor/composer/autoload_classmap.php +++ /dev/null @@ -1,10 +0,0 @@ - $vendorDir . '/composer/InstalledVersions.php', -); diff --git a/plugin/PayPalYPT/vendor/composer/autoload_namespaces.php b/plugin/PayPalYPT/vendor/composer/autoload_namespaces.php deleted file mode 100644 index eb19c7920..000000000 --- a/plugin/PayPalYPT/vendor/composer/autoload_namespaces.php +++ /dev/null @@ -1,10 +0,0 @@ - array($vendorDir . '/paypal/rest-api-sdk-php/lib'), -); diff --git a/plugin/PayPalYPT/vendor/composer/autoload_psr4.php b/plugin/PayPalYPT/vendor/composer/autoload_psr4.php deleted file mode 100644 index d15f8ff0f..000000000 --- a/plugin/PayPalYPT/vendor/composer/autoload_psr4.php +++ /dev/null @@ -1,10 +0,0 @@ - array($vendorDir . '/psr/log/Psr/Log'), -); diff --git a/plugin/PayPalYPT/vendor/composer/autoload_real.php b/plugin/PayPalYPT/vendor/composer/autoload_real.php deleted file mode 100644 index 9b73e8cc1..000000000 --- a/plugin/PayPalYPT/vendor/composer/autoload_real.php +++ /dev/null @@ -1,57 +0,0 @@ -= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); - if ($useStaticLoader) { - require __DIR__ . '/autoload_static.php'; - - call_user_func(\Composer\Autoload\ComposerStaticInit87667b3ec94d1b7e59ef29b9d0f17c34::getInitializer($loader)); - } else { - $map = require __DIR__ . '/autoload_namespaces.php'; - foreach ($map as $namespace => $path) { - $loader->set($namespace, $path); - } - - $map = require __DIR__ . '/autoload_psr4.php'; - foreach ($map as $namespace => $path) { - $loader->setPsr4($namespace, $path); - } - - $classMap = require __DIR__ . '/autoload_classmap.php'; - if ($classMap) { - $loader->addClassMap($classMap); - } - } - - $loader->register(true); - - return $loader; - } -} diff --git a/plugin/PayPalYPT/vendor/composer/autoload_static.php b/plugin/PayPalYPT/vendor/composer/autoload_static.php deleted file mode 100644 index 65c497028..000000000 --- a/plugin/PayPalYPT/vendor/composer/autoload_static.php +++ /dev/null @@ -1,47 +0,0 @@ - - array ( - 'Psr\\Log\\' => 8, - ), - ); - - public static $prefixDirsPsr4 = array ( - 'Psr\\Log\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/log/Psr/Log', - ), - ); - - public static $prefixesPsr0 = array ( - 'P' => - array ( - 'PayPal' => - array ( - 0 => __DIR__ . '/..' . '/paypal/rest-api-sdk-php/lib', - ), - ), - ); - - public static $classMap = array ( - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', - ); - - public static function getInitializer(ClassLoader $loader) - { - return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit87667b3ec94d1b7e59ef29b9d0f17c34::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit87667b3ec94d1b7e59ef29b9d0f17c34::$prefixDirsPsr4; - $loader->prefixesPsr0 = ComposerStaticInit87667b3ec94d1b7e59ef29b9d0f17c34::$prefixesPsr0; - $loader->classMap = ComposerStaticInit87667b3ec94d1b7e59ef29b9d0f17c34::$classMap; - - }, null, ClassLoader::class); - } -} diff --git a/plugin/PayPalYPT/vendor/composer/installed.json b/plugin/PayPalYPT/vendor/composer/installed.json deleted file mode 100644 index 9bfa4b442..000000000 --- a/plugin/PayPalYPT/vendor/composer/installed.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "packages": [ - { - "name": "paypal/rest-api-sdk-php", - "version": "1.14.0", - "version_normalized": "1.14.0.0", - "source": { - "type": "git", - "url": "https://github.com/paypal/PayPal-PHP-SDK.git", - "reference": "72e2f2466975bf128a31e02b15110180f059fc04" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/paypal/PayPal-PHP-SDK/zipball/72e2f2466975bf128a31e02b15110180f059fc04", - "reference": "72e2f2466975bf128a31e02b15110180f059fc04", - "shasum": "" - }, - "require": { - "ext-curl": "*", - "ext-json": "*", - "php": ">=5.3.0", - "psr/log": "^1.0.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.35" - }, - "time": "2019-01-04T20:04:25+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "psr-0": { - "PayPal": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "PayPal", - "homepage": "https://github.com/paypal/rest-api-sdk-php/contributors" - } - ], - "description": "PayPal's PHP SDK for REST APIs", - "homepage": "http://paypal.github.io/PayPal-PHP-SDK/", - "keywords": [ - "payments", - "paypal", - "rest", - "sdk" - ], - "support": { - "issues": "https://github.com/paypal/PayPal-PHP-SDK/issues", - "source": "https://github.com/paypal/PayPal-PHP-SDK/tree/master" - }, - "abandoned": true, - "install-path": "../paypal/rest-api-sdk-php" - }, - { - "name": "psr/log", - "version": "1.1.3", - "version_normalized": "1.1.3.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc", - "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "time": "2020-03-23T09:12:05+00:00", - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "installation-source": "dist", - "autoload": { - "psr-4": { - "Psr\\Log\\": "Psr/Log/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "support": { - "source": "https://github.com/php-fig/log/tree/1.1.3" - }, - "install-path": "../psr/log" - } - ], - "dev": true, - "dev-package-names": [] -} diff --git a/plugin/PayPalYPT/vendor/composer/installed.php b/plugin/PayPalYPT/vendor/composer/installed.php deleted file mode 100644 index 78beb8341..000000000 --- a/plugin/PayPalYPT/vendor/composer/installed.php +++ /dev/null @@ -1,42 +0,0 @@ - - array ( - 'pretty_version' => 'dev-master', - 'version' => 'dev-master', - 'aliases' => - array ( - ), - 'reference' => '06273135e8d043e51bd44af1ec88b3a14638941f', - 'name' => '__root__', - ), - 'versions' => - array ( - '__root__' => - array ( - 'pretty_version' => 'dev-master', - 'version' => 'dev-master', - 'aliases' => - array ( - ), - 'reference' => '06273135e8d043e51bd44af1ec88b3a14638941f', - ), - 'paypal/rest-api-sdk-php' => - array ( - 'pretty_version' => '1.14.0', - 'version' => '1.14.0.0', - 'aliases' => - array ( - ), - 'reference' => '72e2f2466975bf128a31e02b15110180f059fc04', - ), - 'psr/log' => - array ( - 'pretty_version' => '1.1.3', - 'version' => '1.1.3.0', - 'aliases' => - array ( - ), - 'reference' => '0f73288fd15629204f9d42b7055f72dacbe811fc', - ), - ), -); diff --git a/plugin/PayPalYPT/vendor/composer/platform_check.php b/plugin/PayPalYPT/vendor/composer/platform_check.php deleted file mode 100644 index 7621d4ff9..000000000 --- a/plugin/PayPalYPT/vendor/composer/platform_check.php +++ /dev/null @@ -1,26 +0,0 @@ -= 50300)) { - $issues[] = 'Your Composer dependencies require a PHP version ">= 5.3.0". You are running ' . PHP_VERSION . '.'; -} - -if ($issues) { - if (!headers_sent()) { - header('HTTP/1.1 500 Internal Server Error'); - } - if (!ini_get('display_errors')) { - if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { - fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); - } elseif (!headers_sent()) { - echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; - } - } - trigger_error( - 'Composer detected issues in your platform: ' . implode(' ', $issues), - E_USER_ERROR - ); -} diff --git a/plugin/PayPalYPT/vendor/psr/log/LICENSE b/plugin/PayPalYPT/vendor/psr/log/LICENSE deleted file mode 100644 index 474c952b4..000000000 --- a/plugin/PayPalYPT/vendor/psr/log/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2012 PHP Framework Interoperability Group - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/AbstractLogger.php b/plugin/PayPalYPT/vendor/psr/log/Psr/Log/AbstractLogger.php deleted file mode 100644 index 90e721af2..000000000 --- a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/AbstractLogger.php +++ /dev/null @@ -1,128 +0,0 @@ -log(LogLevel::EMERGENCY, $message, $context); - } - - /** - * Action must be taken immediately. - * - * Example: Entire website down, database unavailable, etc. This should - * trigger the SMS alerts and wake you up. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function alert($message, array $context = array()) - { - $this->log(LogLevel::ALERT, $message, $context); - } - - /** - * Critical conditions. - * - * Example: Application component unavailable, unexpected exception. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function critical($message, array $context = array()) - { - $this->log(LogLevel::CRITICAL, $message, $context); - } - - /** - * Runtime errors that do not require immediate action but should typically - * be logged and monitored. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function error($message, array $context = array()) - { - $this->log(LogLevel::ERROR, $message, $context); - } - - /** - * Exceptional occurrences that are not errors. - * - * Example: Use of deprecated APIs, poor use of an API, undesirable things - * that are not necessarily wrong. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function warning($message, array $context = array()) - { - $this->log(LogLevel::WARNING, $message, $context); - } - - /** - * Normal but significant events. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function notice($message, array $context = array()) - { - $this->log(LogLevel::NOTICE, $message, $context); - } - - /** - * Interesting events. - * - * Example: User logs in, SQL logs. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function info($message, array $context = array()) - { - $this->log(LogLevel::INFO, $message, $context); - } - - /** - * Detailed debug information. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function debug($message, array $context = array()) - { - $this->log(LogLevel::DEBUG, $message, $context); - } -} diff --git a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/InvalidArgumentException.php b/plugin/PayPalYPT/vendor/psr/log/Psr/Log/InvalidArgumentException.php deleted file mode 100644 index 67f852d1d..000000000 --- a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/InvalidArgumentException.php +++ /dev/null @@ -1,7 +0,0 @@ -logger = $logger; - } -} diff --git a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/LoggerInterface.php b/plugin/PayPalYPT/vendor/psr/log/Psr/Log/LoggerInterface.php deleted file mode 100644 index 2206cfde4..000000000 --- a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/LoggerInterface.php +++ /dev/null @@ -1,125 +0,0 @@ -log(LogLevel::EMERGENCY, $message, $context); - } - - /** - * Action must be taken immediately. - * - * Example: Entire website down, database unavailable, etc. This should - * trigger the SMS alerts and wake you up. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function alert($message, array $context = array()) - { - $this->log(LogLevel::ALERT, $message, $context); - } - - /** - * Critical conditions. - * - * Example: Application component unavailable, unexpected exception. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function critical($message, array $context = array()) - { - $this->log(LogLevel::CRITICAL, $message, $context); - } - - /** - * Runtime errors that do not require immediate action but should typically - * be logged and monitored. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function error($message, array $context = array()) - { - $this->log(LogLevel::ERROR, $message, $context); - } - - /** - * Exceptional occurrences that are not errors. - * - * Example: Use of deprecated APIs, poor use of an API, undesirable things - * that are not necessarily wrong. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function warning($message, array $context = array()) - { - $this->log(LogLevel::WARNING, $message, $context); - } - - /** - * Normal but significant events. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function notice($message, array $context = array()) - { - $this->log(LogLevel::NOTICE, $message, $context); - } - - /** - * Interesting events. - * - * Example: User logs in, SQL logs. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function info($message, array $context = array()) - { - $this->log(LogLevel::INFO, $message, $context); - } - - /** - * Detailed debug information. - * - * @param string $message - * @param array $context - * - * @return void - */ - public function debug($message, array $context = array()) - { - $this->log(LogLevel::DEBUG, $message, $context); - } - - /** - * Logs with an arbitrary level. - * - * @param mixed $level - * @param string $message - * @param array $context - * - * @return void - * - * @throws \Psr\Log\InvalidArgumentException - */ - abstract public function log($level, $message, array $context = array()); -} diff --git a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/NullLogger.php b/plugin/PayPalYPT/vendor/psr/log/Psr/Log/NullLogger.php deleted file mode 100644 index c8f7293b1..000000000 --- a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/NullLogger.php +++ /dev/null @@ -1,30 +0,0 @@ -logger) { }` - * blocks. - */ -class NullLogger extends AbstractLogger -{ - /** - * Logs with an arbitrary level. - * - * @param mixed $level - * @param string $message - * @param array $context - * - * @return void - * - * @throws \Psr\Log\InvalidArgumentException - */ - public function log($level, $message, array $context = array()) - { - // noop - } -} diff --git a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/Test/DummyTest.php b/plugin/PayPalYPT/vendor/psr/log/Psr/Log/Test/DummyTest.php deleted file mode 100644 index 9638c1101..000000000 --- a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/Test/DummyTest.php +++ /dev/null @@ -1,18 +0,0 @@ - ". - * - * Example ->error('Foo') would yield "error Foo". - * - * @return string[] - */ - abstract public function getLogs(); - - public function testImplements() - { - $this->assertInstanceOf('Psr\Log\LoggerInterface', $this->getLogger()); - } - - /** - * @dataProvider provideLevelsAndMessages - */ - public function testLogsAtAllLevels($level, $message) - { - $logger = $this->getLogger(); - $logger->{$level}($message, array('user' => 'Bob')); - $logger->log($level, $message, array('user' => 'Bob')); - - $expected = array( - $level.' message of level '.$level.' with context: Bob', - $level.' message of level '.$level.' with context: Bob', - ); - $this->assertEquals($expected, $this->getLogs()); - } - - public function provideLevelsAndMessages() - { - return array( - LogLevel::EMERGENCY => array(LogLevel::EMERGENCY, 'message of level emergency with context: {user}'), - LogLevel::ALERT => array(LogLevel::ALERT, 'message of level alert with context: {user}'), - LogLevel::CRITICAL => array(LogLevel::CRITICAL, 'message of level critical with context: {user}'), - LogLevel::ERROR => array(LogLevel::ERROR, 'message of level error with context: {user}'), - LogLevel::WARNING => array(LogLevel::WARNING, 'message of level warning with context: {user}'), - LogLevel::NOTICE => array(LogLevel::NOTICE, 'message of level notice with context: {user}'), - LogLevel::INFO => array(LogLevel::INFO, 'message of level info with context: {user}'), - LogLevel::DEBUG => array(LogLevel::DEBUG, 'message of level debug with context: {user}'), - ); - } - - /** - * @expectedException \Psr\Log\InvalidArgumentException - */ - public function testThrowsOnInvalidLevel() - { - $logger = $this->getLogger(); - $logger->log('invalid level', 'Foo'); - } - - public function testContextReplacement() - { - $logger = $this->getLogger(); - $logger->info('{Message {nothing} {user} {foo.bar} a}', array('user' => 'Bob', 'foo.bar' => 'Bar')); - - $expected = array('info {Message {nothing} Bob Bar a}'); - $this->assertEquals($expected, $this->getLogs()); - } - - public function testObjectCastToString() - { - if (method_exists($this, 'createPartialMock')) { - $dummy = $this->createPartialMock('Psr\Log\Test\DummyTest', array('__toString')); - } else { - $dummy = $this->getMock('Psr\Log\Test\DummyTest', array('__toString')); - } - $dummy->expects($this->once()) - ->method('__toString') - ->will($this->returnValue('DUMMY')); - - $this->getLogger()->warning($dummy); - - $expected = array('warning DUMMY'); - $this->assertEquals($expected, $this->getLogs()); - } - - public function testContextCanContainAnything() - { - $closed = fopen('php://memory', 'r'); - fclose($closed); - - $context = array( - 'bool' => true, - 'null' => null, - 'string' => 'Foo', - 'int' => 0, - 'float' => 0.5, - 'nested' => array('with object' => new DummyTest), - 'object' => new \DateTime, - 'resource' => fopen('php://memory', 'r'), - 'closed' => $closed, - ); - - $this->getLogger()->warning('Crazy context data', $context); - - $expected = array('warning Crazy context data'); - $this->assertEquals($expected, $this->getLogs()); - } - - public function testContextExceptionKeyCanBeExceptionOrOtherValues() - { - $logger = $this->getLogger(); - $logger->warning('Random message', array('exception' => 'oops')); - $logger->critical('Uncaught Exception!', array('exception' => new \LogicException('Fail'))); - - $expected = array( - 'warning Random message', - 'critical Uncaught Exception!' - ); - $this->assertEquals($expected, $this->getLogs()); - } -} diff --git a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/Test/TestLogger.php b/plugin/PayPalYPT/vendor/psr/log/Psr/Log/Test/TestLogger.php deleted file mode 100644 index 1be323049..000000000 --- a/plugin/PayPalYPT/vendor/psr/log/Psr/Log/Test/TestLogger.php +++ /dev/null @@ -1,147 +0,0 @@ - $level, - 'message' => $message, - 'context' => $context, - ]; - - $this->recordsByLevel[$record['level']][] = $record; - $this->records[] = $record; - } - - public function hasRecords($level) - { - return isset($this->recordsByLevel[$level]); - } - - public function hasRecord($record, $level) - { - if (is_string($record)) { - $record = ['message' => $record]; - } - return $this->hasRecordThatPasses(function ($rec) use ($record) { - if ($rec['message'] !== $record['message']) { - return false; - } - if (isset($record['context']) && $rec['context'] !== $record['context']) { - return false; - } - return true; - }, $level); - } - - public function hasRecordThatContains($message, $level) - { - return $this->hasRecordThatPasses(function ($rec) use ($message) { - return strpos($rec['message'], $message) !== false; - }, $level); - } - - public function hasRecordThatMatches($regex, $level) - { - return $this->hasRecordThatPasses(function ($rec) use ($regex) { - return preg_match($regex, $rec['message']) > 0; - }, $level); - } - - public function hasRecordThatPasses(callable $predicate, $level) - { - if (!isset($this->recordsByLevel[$level])) { - return false; - } - foreach ($this->recordsByLevel[$level] as $i => $rec) { - if (call_user_func($predicate, $rec, $i)) { - return true; - } - } - return false; - } - - public function __call($method, $args) - { - if (preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches) > 0) { - $genericMethod = $matches[1] . ('Records' !== $matches[3] ? 'Record' : '') . $matches[3]; - $level = strtolower($matches[2]); - if (method_exists($this, $genericMethod)) { - $args[] = $level; - return call_user_func_array([$this, $genericMethod], $args); - } - } - throw new \BadMethodCallException('Call to undefined method ' . get_class($this) . '::' . $method . '()'); - } - - public function reset() - { - $this->records = []; - $this->recordsByLevel = []; - } -} diff --git a/plugin/PayPalYPT/vendor/psr/log/README.md b/plugin/PayPalYPT/vendor/psr/log/README.md deleted file mode 100644 index a9f20c437..000000000 --- a/plugin/PayPalYPT/vendor/psr/log/README.md +++ /dev/null @@ -1,58 +0,0 @@ -PSR Log -======= - -This repository holds all interfaces/classes/traits related to -[PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md). - -Note that this is not a logger of its own. It is merely an interface that -describes a logger. See the specification for more details. - -Installation ------------- - -```bash -composer require psr/log -``` - -Usage ------ - -If you need a logger, you can use the interface like this: - -```php -logger = $logger; - } - - public function doSomething() - { - if ($this->logger) { - $this->logger->info('Doing work'); - } - - try { - $this->doSomethingElse(); - } catch (Exception $exception) { - $this->logger->error('Oh no!', array('exception' => $exception)); - } - - // do something useful - } -} -``` - -You can then pick one of the implementations of the interface to get a logger. - -If you want to implement the interface, you can require this package and -implement `Psr\Log\LoggerInterface` in your code. Please read the -[specification text](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) -for details. diff --git a/plugin/PayPalYPT/vendor/psr/log/composer.json b/plugin/PayPalYPT/vendor/psr/log/composer.json deleted file mode 100644 index 3f6d4eea4..000000000 --- a/plugin/PayPalYPT/vendor/psr/log/composer.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "psr/log", - "description": "Common interface for logging libraries", - "keywords": ["psr", "psr-3", "log"], - "homepage": "https://github.com/php-fig/log", - "license": "MIT", - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "require": { - "php": ">=5.3.0" - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "Psr/Log/" - } - }, - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - } -} diff --git a/plugin/Video_Location_Block b/plugin/Video_Location_Block new file mode 160000 index 000000000..04851148b --- /dev/null +++ b/plugin/Video_Location_Block @@ -0,0 +1 @@ +Subproject commit 04851148bb02d282a613f8524c4f9394946489ed diff --git a/plugin/YPTWallet/YPTWallet.php b/plugin/YPTWallet/YPTWallet.php index 9eb3182eb..50efcb074 100644 --- a/plugin/YPTWallet/YPTWallet.php +++ b/plugin/YPTWallet/YPTWallet.php @@ -1,675 +1,708 @@ decimalPrecision = 2; $obj->wallet_button_title = "My Wallet"; $obj->add_funds_text = "

Adding money instantly from credit/debit card

Add funds on your Account Balance, to support our videos"; $obj->add_funds_success_success = "

Thank you,
Your funds has been added

"; $obj->add_funds_success_cancel = "

Ops,
You have cancel it

"; $obj->add_funds_success_fail = "

Sorry,
Your funds request has been fail

"; $obj->transfer_funds_text = "

Transfer money for other users

Transfer funds from your account to another user account"; $obj->transfer_funds_success_success = "

Thank you,
Your funds has been transfered

"; $obj->transfer_funds_success_fail = "

Sorry,
Your funds transfer request has been fail

"; $obj->withdraw_funds_text = "

Withdraw money from your

Transfer funds from your account to your credit card or bank account"; $obj->withdraw_funds_success_success = "

Thank you,
Your request was submited

"; $obj->withdraw_funds_success_fail = "

Sorry,
Your funds withdraw request has been fail

"; $obj->virtual_currency = "HEART"; // we will show this currency on the wallet but we will not make transactions on the payment gateway with it $obj->virtual_currency_symbol = "❤"; // we will show this currency on the wallet but we will not make transactions on the payment gateway with it $obj->virtual_currency_exchange_rate = "2"; // means 1 real currency will be 2 virtual currencies $obj->virtual_currency_decimalPrecision = 2.5; // the value 2.5 on it means if you purchase 2 real currency it will worth 5 virtual currencies $obj->virtual_currency_enable = false; $obj->currency = "USD"; $obj->currency_symbol = "$"; $obj->addFundsOptions = "[5,10,20,50]"; $obj->showWalletOnlyToAdmin = false; $obj->CryptoWalletName = "Bitcoin Wallet Address"; + $obj->CryptoWalletEnabled = false; + $obj->hideConfiguration = false; $obj->enableAutomaticAddFundsPage = true; // add funds $obj->enableManualAddFundsPage = false; $obj->manualAddFundsMenuTitle = "Add Funds/Deposit"; $obj->manualAddFundsPageButton = "Notify Deposit Made"; $obj->manualAddFundsNotifyEmail = "yourEmail@yourDomain.com"; $obj->manualAddFundsTransferFromUserId = 1; // sell funds $obj->enableManualWithdrawFundsPage = true; - $obj->enableAutoWithdrawFundsPage = false; + $obj->enableAutoWithdrawFundsPagePaypal = false; $obj->withdrawFundsOptions = "[5,10,20,50,100,1000]"; $obj->manualWithdrawFundsMenuTitle = "Withdraw Funds"; $obj->manualWithdrawFundsPageButton = "Request Withdraw"; $obj->manualWithdrawFundsNotifyEmail = "yourEmail@yourDomain.com"; $obj->manualWithdrawFundsminimum = 1; $obj->manualWithdrawFundsmaximum = 100; $obj->manualWithdrawFundsTransferToUserId = 1; $plugins = self::getAvailablePlugins(); foreach ($plugins as $value) { $eval = "\$obj->enablePlugin_{$value} = false;"; eval($eval); $dataObj = self::getPluginDataObject($value); $obj = (object) array_merge((array) $obj, (array) $dataObj); } return $obj; } public function updateScript() { global $global; if (AVideoPlugin::compareVersion($this->getName(), "4.0") < 0) { $sqls = file_get_contents($global['systemRootPath'] . 'plugin/YPTWallet/install/updateV4.0.sql'); $sqlParts = explode(";", $sqls); foreach ($sqlParts as $value) { sqlDal::writeSql(trim($value)); } } return true; } public function getBalance($users_id) { $wallet = self::getWallet($users_id); return $wallet->getBalance(); } public function getBalanceText($users_id) { $balance = $this->getBalanceFormated($users_id); return self::formatCurrency($balance); } public function getBalanceFormated($users_id) { $balance = $this->getBalance($users_id); $obj = $this->getDataObject(); return number_format($balance, $obj->decimalPrecision); } public static function formatCurrency($value, $addHTML=false, $doNotUseVirtualCurrency = false) { $value = floatval($value); $obj = AVideoPlugin::getObjectData('YPTWallet'); $currency_symbol = $obj->currency_symbol; $decimalPrecision = $obj->decimalPrecision; $currency = $obj->currency; if (empty($doNotUseVirtualCurrency) && $obj->virtual_currency_enable) { $currency_symbol = $obj->virtual_currency_symbol; $decimalPrecision = $obj->virtual_currency_decimalPrecision; $currency = $obj->virtual_currency; } $value = number_format($value, $decimalPrecision); if ($addHTML) { return "{$currency_symbol} {$value} {$currency}"; } else { return "{$currency_symbol} {$value} {$currency}"; } } public static function getStep($doNotUseVirtualCurrency = false) { $obj = AVideoPlugin::getObjectData('YPTWallet'); $decimalPrecision = $obj->decimalPrecision; if ($obj->virtual_currency_enable) { $decimalPrecision = $obj->virtual_currency_decimalPrecision; } if (empty($decimalPrecision)) { return 1; } return "0.".str_repeat("0", $decimalPrecision-1)."1"; } public static function formatFloat($value) { $value = floatval($value); $obj = AVideoPlugin::getObjectData('YPTWallet'); return number_format($value, $obj->decimalPrecision); } public static function getWallet($users_id) { $wallet = new Wallet(0); $wallet->setUsers_id($users_id); return $wallet; } public function getOrCreateWallet($users_id) { $wallet = new Wallet(0); $wallet->setUsers_id($users_id); if (empty($wallet->getId())) { $wallet_id = $wallet->save(); $wallet = new Wallet($wallet_id); } return $wallet; } public function getAllUsers($activeOnly = true) { global $global; $sql = "SELECT w.*, u.*, u.id as user_id, IFNULL(balance, 0) as balance FROM users u " . " LEFT JOIN wallet w ON u.id = w.users_id WHERE 1=1 "; if ($activeOnly) { $sql .= " AND status = 'a' "; } $sql .= BootGrid::getSqlFromPost(array('name', 'email', 'user')); $res = $global['mysqli']->query($sql); $user = array(); if ($res) { while ($row = $res->fetch_assoc()) { $row = cleanUpRowFromDatabase($row); $row['name'] = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]/u', '', $row['name']); $row['identification'] = User::getNameIdentificationById($row['user_id']); $row['identification'] = preg_replace('/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F]/u', '', $row['identification']); unset($row['about']); $row['background'] = User::getBackground($row['user_id']); $row['photo'] = User::getPhoto($row['user_id']); $row['crypto_wallet_address'] = ""; $user[] = $row; } //$user = $res->fetch_all(MYSQLI_ASSOC); } else { $user = false; die($sql . '\nError : (' . $global['mysqli']->errno . ') ' . $global['mysqli']->error); } return $user; } public static function getTotalBalance() { global $global; $sql = "SELECT sum(balance) as total FROM wallet "; $res = $global['mysqli']->query($sql); $user = array(); if ($res) { if ($row = $res->fetch_assoc()) { return $row['total']; } } else { die($sql . '\nError : (' . $global['mysqli']->errno . ') ' . $global['mysqli']->error); } return 0; } public static function getTotalBalanceText() { $value = self::getTotalBalance(); return self::formatCurrency($value); } public function getHistory($user_id) { $wallet = self::getWallet($user_id); $log = new WalletLog(0); $rows = $log->getAllFromWallet($wallet->getId()); return $rows; } public static function exchange($value) { $obj = AVideoPlugin::getObjectData('YPTWallet'); $value = floatval($value); $virtual_currency_exchange_rate = floatval($obj->virtual_currency_exchange_rate); if (!empty($virtual_currency_exchange_rate)) { $value *= $virtual_currency_exchange_rate; } return $value; } /** * * @param type $users_id * @param type $value * @param type $description * @param type $json_data * @param type $mainWallet_user_id A user ID where the money comes from and where the money goes for */ public function addBalance($users_id, $value, $description = "", $json_data = "{}", $mainWallet_user_id = 0, $noNotExchangeValue = false) { global $global; $obj = $this->getDataObject(); if (empty($noNotExchangeValue) && !empty($obj->virtual_currency_enable)) { $originalValue = $value; $value = self::exchange($value); $originalValueFormated = self::formatCurrency($originalValue, false, true); $valueFormated = self::formatCurrency($value); $description .= " Rate Exchanged {$originalValueFormated} => {$valueFormated} "; } $wallet = $this->getOrCreateWallet($users_id); $balance = $wallet->getBalance(); _error_log("YPTWallet::addBalance BEFORE (user_id={$users_id}) (balance={$balance})"); $balance += $value; $wallet->setBalance($balance); $wallet_id = $wallet->save(); WalletLog::addLog($wallet_id, $value, $description, $json_data, "success", "addBalance"); if (!empty($mainWallet_user_id)) { $wallet = $this->getOrCreateWallet($mainWallet_user_id); $balance = $wallet->getBalance(); $balance += ($value * -1); $wallet->setBalance($balance); $wallet_id = $wallet->save(); $user = new User($users_id); WalletLog::addLog($wallet_id, ($value * -1), " From user ($users_id) " . $user->getUser() . " - " . $description, $json_data, "success", "addBalance to main wallet"); } $wallet = $this->getOrCreateWallet($users_id); $balance = $wallet->getBalance(); _error_log("YPTWallet::addBalance AFTER (user_id={$users_id}) (balance={$balance})"); //_error_log("YPTWallet::addBalance $wallet_id, $value, $description, $json_data"); } public function saveBalance($users_id, $value) { if (!User::isAdmin()) { return false; } $wallet = self::getWallet($users_id); $balance = $wallet->getBalance(); $wallet->setBalance($value); $wallet_id = $wallet->save(); $description = "Admin set your balance, from {$balance} to {$value}"; WalletLog::addLog($wallet_id, $value, $description, "{}", "success", "saveBalance"); } public static function transferBalanceToSiteOwner($users_id_from, $value, $description = "", $forceTransfer = false) { $obj = AVideoPlugin::getObjectData('YPTWallet'); if (empty($obj->manualWithdrawFundsTransferToUserId)) { _error_log("YPTWallet::transferBalanceToSiteOwner site owner is not defined in the plugin, define it on the option manualWithdrawFundsTransferToUserId", AVideoLog::$ERROR); } return self::transferBalance($users_id_from, $obj->manualWithdrawFundsTransferToUserId, $value, $description, $forceTransfer); } public static function transferBalanceFromSiteOwner($users_id_from, $value, $description = "", $forceTransfer = false) { $obj = AVideoPlugin::getObjectData('YPTWallet'); return self::transferBalance($obj->manualWithdrawFundsTransferToUserId, $users_id_from, $value, $description, $forceTransfer); } public static function transferBalanceFromMeToSiteOwner($value) { if (!User::isLogged()) { return false; } return self::transferBalanceToSiteOwner(User::getId(), $value); } public static function transferBalanceFromOwnerToMe($value) { if (!User::isLogged()) { return false; } return self::transferBalanceFromSiteOwner(User::getId(), $value); } public static function transferBalance($users_id_from, $users_id_to, $value, $forceDescription = "", $forceTransfer = false) { global $global; _error_log("transferBalance: $users_id_from, $users_id_to, $value, $forceDescription, $forceTransfer"); if (!User::isAdmin()) { if ($users_id_from != User::getId() && !$forceTransfer) { _error_log("transferBalance: you are not admin, $users_id_from,$users_id_to, $value"); return false; } } if (!User::idExists($users_id_from) || !User::idExists($users_id_to)) { _error_log("transferBalance: user does not exists, $users_id_from,$users_id_to, $value"); return false; } $value = floatval($value); if ($value <= 0) { return false; } $wallet = self::getWallet($users_id_from); $balance = $wallet->getBalance(); $newBalance = $balance - $value; if ($newBalance < 0) { _error_log("transferBalance: you dont have balance, $users_id_from,$users_id_to, $value (Balance: {$balance}) (New Balance: {$newBalance})"); return false; } $identificationFrom = User::getNameIdentificationById($users_id_from); $identificationTo = User::getNameIdentificationById($users_id_to); $wallet->setBalance($newBalance); $wallet_id = $wallet->save(); $description = "Transfer Balance {$value} from YOU to user {$identificationTo}"; if (!empty($forceDescription)) { $description = $forceDescription; } WalletLog::addLog($wallet_id, "-" . $value, $description, "{}", "success", "transferBalance to"); $wallet = self::getWallet($users_id_to); $balance = $wallet->getBalance(); $newBalance = $balance + $value; $wallet->setBalance($newBalance); $wallet_id = $wallet->save(); $description = "Transfer Balance {$value} from user {$identificationFrom} to YOU"; if (!empty($forceDescription)) { $description = $forceDescription; } ObjectYPT::clearSessionCache(); WalletLog::addLog($wallet_id, $value, $description, "{}", "success", "transferBalance from"); return true; } public static function transferAndSplitBalanceWithSiteOwner($users_id_from, $users_id_to, $value, $siteowner_percentage, $forceDescription = "") { $response1 = self::transferBalance($users_id_from, $users_id_to, $value, $forceDescription, true); $response2 = true; if(!empty($siteowner_percentage)){ $siteowner_value = ($value/100)*$siteowner_percentage; if($response1){ $response2 = self::transferBalanceToSiteOwner($users_id_to, $siteowner_value, $forceDescription." {$siteowner_percentage}% fee",true); } } return $response1 && $response2; } public function getHTMLMenuRight() { global $global; if (!User::isLogged()) { return ""; } $obj = $this->getDataObject(); if ($obj->showWalletOnlyToAdmin && !User::isAdmin()) { return ""; } include $global['systemRootPath'] . 'plugin/YPTWallet/view/menuRight.php'; } - public static function getAvailablePayments() - { + public static function getAvailablePayments(){ global $global; if (!User::isLogged()) { echo getButtonSignInAndUp(); return false; } $dir = self::getPluginDir(); $plugins = self::getEnabledPlugins(); foreach ($plugins as $value) { $subdir = $dir . DIRECTORY_SEPARATOR . $value . DIRECTORY_SEPARATOR; $file = $subdir . "{$value}.php"; if (is_dir($subdir) && file_exists($file)) { require_once $file; $eval = "\$obj = new {$value}();\$obj->getAprovalButton();"; eval($eval); } } return true; } - public static function getAvailableRecurrentPayments() - { + public static function getAvailableRecurrentPayments(){ global $global; if (!User::isLogged()) { $redirectUri = getSelfURI(); if (!empty($redirectUri)) { $redirectUri = "&redirectUri=" . urlencode($redirectUri); } echo getButtonSignUp(). getButtonSignIn();; return false; } $dir = self::getPluginDir(); $plugins = self::getEnabledPlugins(); foreach ($plugins as $value) { $subdir = $dir . DIRECTORY_SEPARATOR . $value . DIRECTORY_SEPARATOR; $file = $subdir . "{$value}.php"; if (is_dir($subdir) && file_exists($file)) { require_once $file; $eval = "\$obj = new {$value}();\$obj->getRecurrentAprovalButton();"; eval($eval); } } + } + + public static function getAvailableRecurrentPaymentsV2($total = '1.00', $currency = "USD", $frequency = "Month", $interval = 1, $name = '', $json = '', $addFunds_Success='', $trialDays = 0){ + global $global; + + if (!User::isLogged()) { + $redirectUri = getSelfURI(); + if (!empty($redirectUri)) { + $redirectUri = "&redirectUri=" . urlencode($redirectUri); + } + echo getButtonSignUp(). getButtonSignIn();; + return false; + } + + $dir = self::getPluginDir(); + $plugins = self::getEnabledPlugins(); + foreach ($plugins as $value) { + $subdir = $dir . DIRECTORY_SEPARATOR . $value . DIRECTORY_SEPARATOR; + $file = $subdir . "{$value}.php"; + if (is_dir($subdir) && file_exists($file)) { + require_once $file; + $eval = "\$obj = new {$value}();\$obj->getRecurrentAprovalButtonV2(\$total, \$currency, \$frequency, \$interval, \$name, \$json, \$addFunds_Success, \$trialDays);"; + eval($eval); + } + } } public static function getAvailablePlugins() { $dir = self::getPluginDir(); $dirs = scandir($dir); $plugins = array(); foreach ($dirs as $key => $value) { if (!in_array($value, array(".", ".."))) { $subdir = $dir . DIRECTORY_SEPARATOR . $value . DIRECTORY_SEPARATOR; $file = $subdir . "{$value}.php"; if (is_dir($subdir) && file_exists($file)) { $plugins[] = $value; } } } return $plugins; } public static function getEnabledPlugins() { global $global; $plugins = self::getAvailablePlugins(); $wallet = new YPTWallet(); $obj = $wallet->getDataObject(); foreach ($plugins as $key => $value) { $eval = "\$val = \$obj->enablePlugin_{$value};"; eval($eval); if (empty($val)) { unset($plugins[$key]); } } return $plugins; } public static function getPluginDataObject($pluginName) { $dir = self::getPluginDir(); $file = $dir . "/{$pluginName}/{$pluginName}.php"; if (file_exists($file)) { require_once $file; $eval = "\$obj = new {$pluginName}();"; eval($eval); return $obj->getEmptyDataObject(); } return array(); } public static function getPluginDir() { global $global; $dir = $global['systemRootPath'] . "plugin/YPTWallet/plugins"; return $dir; } public function sendEmails($emailsArray, $subject, $message) { global $global, $config; $siteTitle = $config->getWebSiteTitle(); $footer = $config->getWebSiteTitle(); $body = $this->replaceTemplateText($siteTitle, $footer, $message); return $this->send($emailsArray, $subject, $body); } private function replaceTemplateText($siteTitle, $footer, $message) { global $global, $config; $text = file_get_contents("{$global['systemRootPath']}plugin/YPTWallet/template.html"); $words = array($siteTitle, $footer, $message); $replace = array('{siteTitle}', '{footer}', '{message}'); return str_replace($replace, $words, $text); } private function send($emailsArray, $subject, $body) { if (empty($emailsArray)) { return false; } $emailsArray = array_unique($emailsArray); global $global, $config; //Create a new PHPMailer instance $mail = new \PHPMailer\PHPMailer\PHPMailer; setSiteSendMessage($mail); //Set who the message is to be sent from $mail->setFrom($config->getContactEmail(), $config->getWebSiteTitle()); //Set who the message is to be sent to foreach ($emailsArray as $value) { if (empty($value)) { continue; } $mail->addBCC($value); } //Set the subject line $mail->Subject = $subject; $mail->msgHTML($body); //send the message, check for errors if (!$mail->send()) { _error_log("Wallet email FAIL [{$subject}] {$mail->ErrorInfo}"); return false; } else { _error_log("Wallet email sent [{$subject}]"); return true; } } /** * * @param type $wallet_log_id * @param type $new_status * return true if balance is enought */ public function processStatus($wallet_log_id, $new_status) { $obj = $this->getDataObject(); $walletLog = new WalletLog($wallet_log_id); $wallet = new Wallet($walletLog->getWallet_id()); $oldStatus = $walletLog->getStatus(); if ($walletLog->getType() == self::MANUAL_WITHDRAW) { if ($new_status != $oldStatus) { if ($oldStatus == "success" || $oldStatus == "pending") { if ($new_status == "canceled") { // return the value return self::transferBalance($obj->manualWithdrawFundsTransferToUserId, $wallet->getUsers_id(), $walletLog->getValue()); } else { // keep the value return true; } } // get the value again if ($oldStatus == "canceled") { return self::transferBalance($wallet->getUsers_id(), $obj->manualWithdrawFundsTransferToUserId, $walletLog->getValue()); } } } elseif ($walletLog->getType() == self::MANUAL_ADD) { if ($oldStatus == "pending") { if ($new_status == "canceled") { // do nothing return true; } elseif ($new_status == "success") { // transfer the value return self::transferBalance($obj->manualAddFundsTransferFromUserId, $wallet->getUsers_id(), $walletLog->getValue()); } } elseif ($oldStatus == "success") { //get the money back return self::transferBalance($wallet->getUsers_id(), $obj->manualAddFundsTransferFromUserId, $walletLog->getValue()); } elseif ($oldStatus == "canceled") { if ($new_status == "pending") { // do nothing return true; } elseif ($new_status == "success") { // transfer the value return self::transferBalance($obj->manualAddFundsTransferFromUserId, $wallet->getUsers_id(), $walletLog->getValue()); } } } return true; } public static function getUserBalance($users_id=0) { if (empty($users_id)) { $users_id = User::getId(); } if (empty($users_id)) { return 0; } $wallet = self::getWallet($users_id); return $wallet->getBalance(); } public function getFooterCode() { global $global; $obj = $this->getDataObject(); $js = ""; $js .= ""; return $js; } static function setAddFundsSuccessRedirectURL($url){ _session_start(); $_SESSION['addFunds_Success'] = $url; } static function getAddFundsSuccessRedirectURL(){ return $_SESSION['addFunds_Success']; } static function setAddFundsSuccessRedirectToVideo($videos_id){ self::setAddFundsSuccessRedirectURL(getRedirectToVideo($videos_id)); } + + public function getWalletConfigurationHTML($users_id, $wallet, $walletDataObject) { + global $global; + if(empty($walletDataObject->CryptoWalletEnabled)){ + return ''; + } + include_once $global['systemRootPath'].'plugin/YPTWallet/getWalletConfigurationHTML.php'; + } } diff --git a/plugin/YPTWallet/YPTWalletPlugin.php b/plugin/YPTWallet/YPTWalletPlugin.php index 6540a3ce9..52e7fc04d 100644 --- a/plugin/YPTWallet/YPTWalletPlugin.php +++ b/plugin/YPTWallet/YPTWalletPlugin.php @@ -1,47 +1,50 @@ value; } function setValue($value){ $this->value = floatval($value); } function getInvoiceNumber() { return $this->invoiceNumber; } function setInvoiceNumber($invoiceNumber) { $this->invoiceNumber = $invoiceNumber; } function getCurrency() { return $this->currency; } function setCurrency($currency) { $this->currency = $currency; } public function getRecurrentAprovalButton() { } + + public function getRecurrentAprovalButtonV2($total = '1.00', $currency = "USD", $frequency = "Month", $interval = 1, $name = '', $json = '', $trialDays = 0) { + } } diff --git a/plugin/YPTWallet/getWalletConfigurationHTML.php b/plugin/YPTWallet/getWalletConfigurationHTML.php new file mode 100644 index 000000000..6a949cced --- /dev/null +++ b/plugin/YPTWallet/getWalletConfigurationHTML.php @@ -0,0 +1,34 @@ +
+
+
+
+
+ + +
+ +
+
+
+ \ No newline at end of file diff --git a/plugin/YPTWallet/plugins/YPTWalletPayPal/YPTWalletPayPal.php b/plugin/YPTWallet/plugins/YPTWalletPayPal/YPTWalletPayPal.php index 16240574d..1ed0d86c8 100644 --- a/plugin/YPTWallet/plugins/YPTWalletPayPal/YPTWalletPayPal.php +++ b/plugin/YPTWallet/plugins/YPTWalletPayPal/YPTWalletPayPal.php @@ -1,42 +1,53 @@ setUpPayment( $this->getInvoiceNumber(), $this->getRedirectURL(), $this->getCancelURL(), $this->getValue(), $this->getCurrency()); if (!empty($payment)) { return $payment->getApprovalLink(); } return false; } public function getAprovalButton() { global $global; include $global['systemRootPath'].'plugin/YPTWallet/plugins/YPTWalletPayPal/confirmButton.php'; } public function getRecurrentAprovalButton() { global $global; include $global['systemRootPath'].'plugin/YPTWallet/plugins/YPTWalletPayPal/confirmRecurrentButton.php'; } + public function getRecurrentAprovalButtonV2($total = '1.00', $currency = "USD", $frequency = "Month", $interval = 1, $name = '', $json = '', $addFunds_Success='', $trialDays = 0) { + + $total = floatval($total); + if(empty($total)){ + return ''; + } + + global $global; + include $global['systemRootPath'].'plugin/YPTWallet/plugins/YPTWalletPayPal/confirmRecurrentButtonV2.php'; + } + public function getEmptyDataObject() { global $global; $obj = new stdClass(); $obj->RedirectURL = "{$global['webSiteRootURL']}plugin/YPTWallet/plugins/YPTWalletPayPal/redirect_url.php"; $obj->CancelURL = "{$global['webSiteRootURL']}plugin/YPTWallet/plugins/YPTWalletPayPal/cancel_url.php"; return $obj; } } diff --git a/plugin/YPTWallet/plugins/YPTWalletPayPal/confirmRecurrentButtonV2.php b/plugin/YPTWallet/plugins/YPTWalletPayPal/confirmRecurrentButtonV2.php new file mode 100644 index 000000000..b38668506 --- /dev/null +++ b/plugin/YPTWallet/plugins/YPTWalletPayPal/confirmRecurrentButtonV2.php @@ -0,0 +1,34 @@ +$total, 'currency'=>$currency, 'frequency'=>$frequency, 'interval'=>$interval, 'name'=>$name, 'json'=>$json, 'trialDays'=>$trialDays, 'addFunds_Success'=>$addFunds_Success); + +?> + + \ No newline at end of file diff --git a/plugin/YPTWallet/plugins/YPTWalletPayPal/requestSubscriptionV2.json.php b/plugin/YPTWallet/plugins/YPTWalletPayPal/requestSubscriptionV2.json.php new file mode 100644 index 000000000..4e12fc05b --- /dev/null +++ b/plugin/YPTWallet/plugins/YPTWalletPayPal/requestSubscriptionV2.json.php @@ -0,0 +1,49 @@ +getDataObject(); + +$obj= new stdClass(); +$obj->error = true; +$obj->msg = ''; + +$invoiceNumber = uniqid(); + +//$params = array('total'=>$total, 'currency'=>$currency, 'frequency'=>$frequency, 'interval'=>$interval, 'name'=>$name, 'json'=>$json, 'trialDays'=>$trialDays); + +if(empty($_REQUEST['hash'])){ + $obj->msg = 'Hash is empty'; + die(json_encode($obj)); +} + +$json = decryptString($_REQUEST['hash']); +if(empty($json)){ + $obj->msg = 'Hash not decrypted'; + die(json_encode($obj)); +} + +$json = _json_decode($json); + +$value = floatval($json->total); +if(empty($value)){ + $obj->msg = 'Value is empty'; + die(json_encode($obj)); +} + +//setUpSubscriptionV2($total = '1.00', $currency = "USD", $frequency = "Month", $interval = 1, $name = '', $json = '', $trialDays = 0) +$payment = $plugin->setUpSubscriptionV2($json->total, $json->currency, $json->frequency, $json->interval, $json->name, $json->json, $json->trialDays); +if (!empty($payment)) { + $obj->error = false; + $obj->approvalLink = $payment->getApprovalLink(); + YPTWallet::setAddFundsSuccessRedirectURL($json->addFunds_Success); +} +die(json_encode($obj)); \ No newline at end of file diff --git a/plugin/YPTWallet/view/configuration.php b/plugin/YPTWallet/view/configuration.php index 0971a9a5c..539124d9b 100644 --- a/plugin/YPTWallet/view/configuration.php +++ b/plugin/YPTWallet/view/configuration.php @@ -1,74 +1,37 @@ getDataObject(); +$walletDataObject = $plugin->getDataObject(); $wallet = new Wallet(0); $wallet->setUsers_id(User::getId()); ?> <?php echo __("Configuration") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?> +
-
-
-
-
-
-
- - -
- -
-
-
-
+
- - - - diff --git a/plugin/YPTWallet/view/log.json.php b/plugin/YPTWallet/view/log.json.php index 759607a88..dad7b18d0 100644 --- a/plugin/YPTWallet/view/log.json.php +++ b/plugin/YPTWallet/view/log.json.php @@ -1,27 +1,29 @@ error = true; $obj->msg = ""; if (!User::isLogged()) { $obj->msg = ("Is not logged"); die(json_encode($obj)); } $plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet"); $dataObj = $plugin->getDataObject(); -if(empty($plugin)){ +if (empty($plugin)) { $obj->msg = ("Plugin not enabled"); die(json_encode($obj)); } $value = floatval($_POST['value']); - -if(YPTWallet::transferBalance(User::getId(),$dataObj->manualWithdrawFundsTransferToUserId, $value)){ - //send an email - $emailsArray = array(); - $emailsArray[] = $dataObj->manualWithdrawFundsNotifyEmail; - - $subject = $config->getWebSiteTitle()." ".$dataObj->manualWithdrawFundsPageButton." from: ".User::getUserName(); - - $wallet = $plugin->getOrCreateWallet(User::getId()); - $wallet_id = $wallet->getId(); - $url = "{$global['webSiteRootURL']}plugin/YPTWallet/view/history.php?users_id=".User::getId(); - $message = "".YPTWallet::MANUAL_WITHDRAW." user [". User::getId()."]". User::getUserName()." value of {$value}"; - $_POST['information'] = strip_tags($_POST['information']); - $emailMessage = "The user [". User::getId()."]". User::getUserName()." request a ".YPTWallet::MANUAL_WITHDRAW." value of {$value}" - . "
Date: ". date("Y-m-d h:i:s") - . "
Information: ". nl2br($_POST['information']) - . "
{$dataObj->CryptoWalletName}: ". $wallet->getCrypto_wallet_address(); - - if(WalletLog::addLog($wallet_id, $value, $message, "{}", "pending", YPTWallet::MANUAL_WITHDRAW,$emailMessage)){ - $plugin->sendEmails($emailsArray, $subject, $emailMessage.""); - $obj->error = false; - }else{ - $obj->msg = "Something is wrong, contact the admin"; +if (!empty($dataObj->enableAutoWithdrawFundsPagePaypal)) { + $paypal = AVideoPlugin::loadPluginIfEnabled("PayPalYPT"); + if (!empty($paypal)) { + $obj = PayPalYPT::WalletPayout(User::getId(), $value); + } +} else { + if (YPTWallet::transferBalance(User::getId(), $dataObj->manualWithdrawFundsTransferToUserId, $value)) { + //send an email + $emailsArray = array(); + $emailsArray[] = $dataObj->manualWithdrawFundsNotifyEmail; + + $subject = $config->getWebSiteTitle() . " " . $dataObj->manualWithdrawFundsPageButton . " from: " . User::getUserName(); + + $wallet = $plugin->getOrCreateWallet(User::getId()); + $wallet_id = $wallet->getId(); + $url = "{$global['webSiteRootURL']}plugin/YPTWallet/view/history.php?users_id=" . User::getId(); + $message = "" . YPTWallet::MANUAL_WITHDRAW . " user [" . User::getId() . "]" . User::getUserName() . " value of {$value}"; + $_POST['information'] = strip_tags($_POST['information']); + $emailMessage = "The user [" . User::getId() . "]" . User::getUserName() . " request a " . YPTWallet::MANUAL_WITHDRAW . " value of {$value}" + . "
Date: " . date("Y-m-d h:i:s") + . "
Information: " . nl2br($_POST['information']) + . "
{$dataObj->CryptoWalletName}: " . $wallet->getCrypto_wallet_address(); + + if (WalletLog::addLog($wallet_id, $value, $message, "{}", "pending", YPTWallet::MANUAL_WITHDRAW, $emailMessage)) { + $plugin->sendEmails($emailsArray, $subject, $emailMessage . ""); + $obj->error = false; + } else { + $obj->msg = "Something is wrong, contact the admin"; + } + } else { + $obj->msg = "We could not transfer funds, please check your balance"; } -}else{ - $obj->msg = "We could not transfer funds, please check your balance"; } $obj->walletBalance = $plugin->getBalanceFormated(User::getId()); die(json_encode($obj)); diff --git a/plugin/YPTWallet/view/manualWithdrawFunds.php b/plugin/YPTWallet/view/manualWithdrawFunds.php index 1e43045cb..e6debdbda 100644 --- a/plugin/YPTWallet/view/manualWithdrawFunds.php +++ b/plugin/YPTWallet/view/manualWithdrawFunds.php @@ -1,119 +1,127 @@ getDataObject(); $options = _json_decode($obj->withdrawFundsOptions); ?> <?php echo __("Withdraw Funds") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?> -
-
+
+ + enableAutoWithdrawFundsPagePaypal) { + ?> + + +
withdraw_funds_text ?> +
add_funds_success_fail; break; case "success": $text = $obj->add_funds_success_success; $class = "success"; break; case "cancel": $text = $obj->add_funds_success_cancel; $class = "warning"; break; } ?>
- +
- -
- - diff --git a/plugin/YPTWallet/view/menuRight.php b/plugin/YPTWallet/view/menuRight.php index 272b97de6..c5e7d8d8a 100644 --- a/plugin/YPTWallet/view/menuRight.php +++ b/plugin/YPTWallet/view/menuRight.php @@ -1,105 +1,107 @@ getDataObject(); $balance = $plugin->getBalance(User::getId()); ?>
  • \ No newline at end of file diff --git a/view/css/main.css b/view/css/main.css index 39e93fa3b..b5609ccac 100644 --- a/view/css/main.css +++ b/view/css/main.css @@ -1,1130 +1,1141 @@ html, body { height: 100vh; } html { scroll-behavior: smooth; } body { padding-top: 50px; } body.fullscreen { padding: 0 !important; margin: 0 !important; overflow: hidden; } .nopadding { padding: 0 !important; margin: 0 !important; } .videoLink > .duration, time.duration{ position: absolute; background: rgba(0, 0, 0, 0.6)!important; padding: 2px; color: #FFF; bottom: 5px; right: 5px; font-size: 0.9em; border-radius: 5px; } .videoLink .glyphicon-play-circle { transition: all 0.3s ease-in-out; top: 50%; left: 50%; margin: -25px 0 0 -25px; position: absolute; color: rgba(255, 255, 255, 0.3)!important; font-size: 50px; } .videoLink div.details, .videoLink div.details div { font-size: 0.9em; } .gallery:hover .glyphicon-play-circle, .videoLink:hover .glyphicon-play-circle { color: rgba(255, 255, 255, 0.6)!important; } .bottom-border { border-bottom: 2px solid #F2F2F2; margin: 0; padding: 5px; } h1, h2, h3, h4 { margin: 5px; padding: 5px; } h1 { font-size: 20px; } h2 { font-size: 18px; } h3 { font-size: 16px; } h4 { font-size: 14px; } footer { color: #AAA; padding: 2px; background-color: #F2F2F2; border-top: 1px solid #DDD; text-align: right; margin: 0; font-size: 0.8em; } footer .btn-outline:hover, footer .btn-outline:focus, footer .btn-outline:active { color: #888; background: white; border: solid 1px white; } footer .btn-outline { color: #AAA; border: solid 1px #AAA; background: transparent; transition: all 0.3s ease-in-out; margin: 0 2px; font-size: 0.9em; } footer ul.list-inline { justify-content: flex-end; margin-bottom: 0; } footer ul.list-inline li { justify-content: center; align-items: center; padding-right: 1px; padding-left: 1px; font-size: 0.8em; } /* for main video */ .video-content { flex: 0 1 100%; height: 50%; display: flex; justify-content: flex-start; } .main-video { background-color: #000; margin-bottom: 10px; } .main-video{ -webkit-transition: ease 1s; /* Safari */ transition: ease 1s; } /* to fix the click on mobile */ .rightBar div{ z-index: 10; } #videosList, #videosList div{ z-index: 1; } /* end for main video */ .form-compact .form-control { position: relative; height: auto; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; padding: 10px; font-size: 16px; } .form-compact input.form-control { border-radius: 0; } .form-compact input.first, .form-compact select.first { border-top-left-radius: 5px; border-top-right-radius: 5px; } .form-compact input.last, .form-compact select.last { border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; margin-bottom: 10px; } @media (max-width: 767px) { .navbar-form { padding: 0; } #modeYoutubeBottomContent, .principalContainer{ padding: 0; } .panel-body, .tabbable-panel { padding: 5px; } .nopaddingOnSmall{ padding: 0; } } @media (max-width: 450px) { #captchaText, .captcha .input-group{ display: block; } .captcha .input-group-addon:first-child { border-right: 1px solid rgb(204, 204, 204); } } /* Comments */ .commenterName small { font-family: verdana; font-size: 0.9em; } .commenterName { margin-right: 5px; } .commentText { clear: both; } .commentDetails { margin: 0 0 0 60px; } /* End Comments */ /* Tabs panel */ .tabbable-panel { padding: 10px; } /* Default mode */ .tabbable-line > .nav-tabs { border: none; margin: 0px; } .tabbable-line > .nav-tabs > li > a { border: 0; margin-right: 0; } .tabbable-line > .nav-tabs > li.open > a, .tabbable-line > .nav-tabs > li:hover > a { border: 0; background: none !important; } .tabbable-line > .nav-tabs > li.open > a > i, .tabbable-line > .nav-tabs > li:hover > a > i { color: #a6a6a6; } .tabbable-line > .nav-tabs > li.open .dropdown-menu, .tabbable-line > .nav-tabs > li:hover .dropdown-menu { margin-top: 0px; } .tabbable-line > .nav-tabs > li.active > a { border: 0; background: none !important; } .tabbable-line > .nav-tabs > li.active > a > i { color: #404040; } .tabbable-line > .tab-content { margin-top: -3px; border: 0; border-top: 1px solid #eee; padding: 15px 0; } .tabbable-line > .nav-tabs>li:after { content: ""; background: #DDD; height: 4px; position: absolute; width: 100%; left: 0px; bottom: 1px; } .tabbable-line > .nav-tabs>li>a::after { content: ""; background: #f3565d; height: 4px; position: absolute; width: 100%; left: 0px; bottom: 1px; transition: all 250ms ease 0s; transform: scale(0); z-index: 1; } .tabbable-line > .nav-tabs>li:hover>a::after { background: #F99; } .tabbable-line > .nav-tabs>li.active>a::after { background: #f3565d; } .tabbable-line > .nav-tabs > li.open, .tabbable-line > .nav-tabs>li.active>a::after, .tabbable-line > .nav-tabs>li:hover>a::after { transform: scale(1); } .portlet .tabbable-line > .tab-content { padding-bottom: 0; } /* END Tabs panel */ .nowrapCell td { white-space: normal !important; } .watch8-action-buttons { padding: 5px 10px 0 10px; margin: 5px 0 0 0; border-top: 2px solid #F2F2F2; clear: both; } .bgWhite { margin: 0 0 10px; border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); -moz-box-sizing: border-box; box-sizing: border-box; padding: 10px; /*overflow: hidden;*/ text-overflow: ellipsis; } .ellipsis { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .no-outline { border: 0; } .no-outline:focus, .no-outline:active, .no-outline:hover { background-color: transparent; color: #000; } #showMore { padding: 20px; margin: 10px; border-top: 2px solid #F2F2F2; } .watch-view-count { line-height: 24px; max-height: 24px; font-size: 19px; white-space: nowrap; margin: -5px; padding: -5px; border-bottom: 2px solid #167ac6; } .myVote span, .myVote small { color: #167ac6; } /* fancy checkbox */ .material-switch > input[type="checkbox"] { display: none; } .material-switch > label { cursor: pointer; height: 0px; position: relative; width: 40px; } .material-switch > label::before { background: rgb(0, 0, 0); box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5); border-radius: 8px; content: ''; height: 16px; margin-top: -8px; position: absolute; opacity: 0.3; transition: all 0.4s ease-in-out; width: 40px; } .material-switch > label::after { background: rgb(255, 255, 255); border-radius: 16px; box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3); content: ''; height: 24px; left: -4px; margin-top: -8px; position: absolute; top: -4px; transition: all 0.3s ease-in-out; width: 24px; } .material-switch > input[type="checkbox"]:checked + label::before { background: inherit; opacity: 0.5; } .material-switch > input[type="checkbox"]:checked + label::after { background: inherit; left: 20px; } /* fancy checkbox */ .material-small.material-switch > input[type="checkbox"] { display: none; } .material-small.material-switch > label { width: 20px; margin-right: 5px; } .material-small.material-switch > label::before { margin-top: -5px; width: 20px; height: 10px; } .material-small.material-switch > label::after { margin-top: -4px; width: 15px; height: 15px; } .material-small.material-switch > input[type="checkbox"]:checked + label::after { left: 10px; } /* fancy checkbox end */ .videosDetails .label{ border-radius: 0; } .videosDetails .label:first-child{ border-top-left-radius: 0.25em; border-bottom-left-radius: 0.25em; } .videosDetails .label:last-child{ border-top-right-radius: 0.25em; border-bottom-right-radius: 0.25em; } .popover-content, .popover-title, .popover { color: #333 !important; } .videosDetails { padding-left: 20px; } .divMainVideo .duration { position: absolute; background: rgba(0, 0, 0, 0.6)!important; padding: 3px; color: #FFF; bottom: 5px; right: 25px; font-size: 0.9em; border-radius: 5px; } .autoplay span span { margin: 0 5px; font-weight: bold; } img.rotate90, img.rotate-270 { transform: rotate(90deg); -ms-transform: rotate(90deg); /* IE 9 */ -moz-transform: rotate(90deg); /* Firefox */ -webkit-transform: rotate(90deg); /* Safari and Chrome */ -o-transform: rotate(90deg); /* Opera */ } img.rotate180, img.rotate-180 { transform: rotate(180deg); -ms-transform: rotate(180deg); /* IE 9 */ -moz-transform: rotate(180deg); /* Firefox */ -webkit-transform: rotate(180deg); /* Safari and Chrome */ -o-transform: rotate(180deg); /* Opera */ } img.rotate270, img.rotate-90 { transform: rotate(270deg); -ms-transform: rotate(270deg); /* IE 9 */ -moz-transform: rotate(270deg); /* Firefox */ -webkit-transform: rotate(270deg); /* Safari and Chrome */ -o-transform: rotate(270deg); /* Opera */ } .subsB { background-color: #e62117; color: #FFF; -webkit-transition: all 1s ease-out; -moz-transition: all 1s ease-out; -o-transition: all 1s ease-out; transition: all 1s ease-out; } .subsB span:before { content: "\f16a"; } .subscribed { background-color: #DDD; color: #777; } .subscribed span:before { content: "\f00c"; } .subscribed:hover span:before { content: "\f057"; } .profileBg { padding: 20px; height: 27vw; min-height: 90px; max-height: 300px; margin: 10px 0; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } #sidebar { width: 300px; position: absolute; top: 0; height: 100vh; margin-top: 50px; } #sideBarContainer { overflow: hidden; position: absolute; left: 0; padding: 10px; height: 100%; width: 100%; overflow-y: auto; padding-right: 10px; } #sideBarContainer ul { margin-bottom: 150px; } .navbar-brand { padding: 0px ; /* firefox bug fix */ margin-left: 10px; height: auto; } .navbar-brand>img { width: 178px; } .list-inline { display: flex; justify-content: left; } /** header **/ nav ul.items-container { display: flex; justify-content: flex-end; margin: 0px; padding: 0px; } nav ul.items-container .tooltip{ min-width: 150px; } nav ul.items-container, nav ul.items-container li { list-style: none; } nav ul.items-container li:first-child { flex: 1; display: flex; } nav ul.items-container li:first-child ul.left-side { display: flex; align-items: center } ul.left-side { height: 50px; } nav ul.items-container li:last-child { margin-right: 20px; } nav ul.items-container li ul.right-menus { display: flex; flex-direction: row; } nav ul.items-container li ul.right-menus li { margin-left: 5px; } nav ul.items-container li ul.right-menus li li { margin-left: 0; } .navbar-left{ padding-right: 0; } /** header **/ .navbar .container { padding: 0 2px; align-items: center; } .list-inline > li { display: flex; } .navbar .list-inline { margin: 0; display: flex; align-items: center; } /* Play List */ .playlistList { height: 80vh; overflow: hidden; } .playlistList .nav { overflow-y: auto; position: absolute; top: 0; height: 100%; overflow-x: hidden; } .playlist-nav .navbar { padding: 0; max-height: none; margin: 0; } .playlist-nav .navbar ul { float: none; display: block; } .playlist-nav .navbar li { float: none; display: block; } .playlist-nav .navbar li a { padding-top: 12px; padding-bottom: 12px; } /* End Play List */ #videoContainer { overflow: visible; background: black; } /** video manager progress bar */ .progress { position: relative; height: 25px; } .progress > .progress-type { position: absolute; left: 0px; font-weight: 800; padding: 3px 30px 2px 10px; color: rgb(255, 255, 255); background-color: rgba(25, 25, 25, 0.2); } .progress > .progress-completed { position: absolute; right: 0px; font-weight: 800; padding: 3px 10px 2px; } .loader { border: 5px solid #f3f3f3; /* Light grey */ border-top: 5px solid #3498db; /* Blue */ border-radius: 50%; width: 30px; height: 30px; animation: spin 2s linear infinite; } .zoom { -webkit-transition: all 0.35s ease-in-out; -moz-transition: all 0.35s ease-in-out; transition: all 0.35s ease-in-out; cursor: -webkit-zoom-in; cursor: -moz-zoom-in; cursor: zoom-in; } .zoom:hover, .zoom:active, .zoom:focus { /**adjust scale to desired size, add browser prefixes**/ -ms-transform: scale(2.5); -moz-transform: scale(2.5); -webkit-transform: scale(2.5); -o-transform: scale(2.5); transform: scale(2.5); position:relative; z-index:100; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .navbar-collapse.in { overflow-y: visible; /* Bootstrap default is "auto" */ } .transparent{ opacity: 0.3; filter: alpha(opacity=30); /* For IE8 and earlier */ } .principalContainer{ position: relative; } .vjs-button-fa-size{ font-size: 14px !important; } a.h6 h2, a.h6 h1{ font-weight: bold; } img.blur{ filter: blur(5px); } .navbar-default .navbar-default, .navbar-inverse .navbar-default { border-width: 0; } /*Show play button only when paused*/ .vjs-paused .vjs-big-play-button, .vjs-paused.vjs-has-started .vjs-big-play-button { display: block; } .rightProfile li a{ text-align: left; } #mainNavBar ul.items-container li:last-child { margin-right: 0 !important; } .ima-controls-div{ pointer-events: none !important; } .ima-controls-div div{ pointer-events: auto !important; } .btn-circle { width: 32px; height: 32px; text-align: center; padding: 6px 0; font-size: 12px; line-height: 1.42; border-radius: 15px; } .btn-circle:hover, .btn-group.open .btn-circle { box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05) inset, 0px 0px 8px rgba(82, 168, 236, 0.6); } ::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); border-radius: 4px; background-color: rgba(100,100,100,0.01); } ::-webkit-scrollbar { width: 8px; height: 8px; background-color: rgba(100,100,100,0.01); overflow: hidden; } ::-webkit-scrollbar-thumb { border-radius: 4px; -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); background-color: rgba(100,100,100,0.05); } .videoAdUiSkipContainer { z-index: 99 !important; } @media (min-width: 1200px) and (max-width: 1600px) { .hidden-mdx { display: none !important; } } .swal-noform .form-group{ display: none; } #modeYoutubeBottomContentDetails{ overflow: hidden; } .cursorPointer:hover { cursor: pointer; text-decoration: underline; } .btn-dark { color: #CCC; background-color: #111; border-color: #000; } .btn-dark:hover { color: #FFF; background-color: #000; border-color: #000; } .opacityBtn{ opacity: 0.2; } .btn-group.justified, .btn-group-justified { display: flex; } .btn-group-justified .btn, .justified .btn { flex: 1 } .addWidthOnMenuOpen { transition: width 0.3s; } @media (min-width: 1200px){ body.youtube .lessMarginLeftOnMenuOpen{ margin-left: -200px; } body.youtube .col-lg-4.addWidthOnMenuOpen { margin-left: -150px; width: calc(33.3333333333% + 300px); } body.youtube .col-lg-10.addWidthOnMenuOpen { width: 100%; } body.youtube .col-lg-offset-1.addWidthOnMenuOpen { margin-left: 0; } } .liveVideo .thumbsImage img{ width: 100%; } #mainVideo_ima-ad-container, #mainVideo_ima-ad-container:after, #mainVideo_ima-ad-container:before { font-size: 14px !important; line-height: 1 !important; } #mainVideo_ima-ad-container .ima-play-pause-div, #mainVideo_ima-ad-container .ima-mute-div, #mainVideo_ima-ad-container .ima-slider-div, #mainVideo_ima-ad-container .ima-fullscreen-div { font-size: 1.5em !important; line-height: 2 !important; } #mainVideo_ima-controls-div{ max-height: 3.7em; } .vjs-menu-item, .vjs-menu-title{ margin: 0 !important; padding: 0 !important; border-radius: 0 !important; } .vjs-menu li { text-transform: none; } #navBarFlag li{ cursor: pointer; } .videoListItem{ overflow: hidden; } .extraVideos:empty{ display: none; } .list-group-horizontal .list-group-item{ display: inline-block; } .list-group-horizontal .list-group-item{ margin-bottom: 0; margin-left:-4px; margin-right: 0; border-right-width: 0; } .list-group-horizontal .list-group-item:first-child{ border-top-right-radius:0; border-bottom-left-radius:4px; } .list-group-horizontal .list-group-item:last-child{ border-top-right-radius:4px; border-bottom-left-radius:0; border-right-width: 1px; } #modeYoutubeTop, #mvideo, #videoContainer{ position: relative; } #closeBtnFull{ opacity: 0.25; filter: alpha(opacity=25); -webkit-transition: opacity 0.25s ease-in-out; -moz-transition: opacity 0.25s ease-in-out; -ms-transition: opacity 0.25s ease-in-out; -o-transition: opacity 0.25s ease-in-out; transition: opacity 0.25s ease-in-out; padding: 12px; margin: 5px; cursor: pointer; } #divTopBar:hover #closeBtnFull{ opacity: 1; filter: alpha(opacity=100); } #closeBtnFull i{ text-shadow: 1px 1px rgba(255,255,255,0.7); } li.dropdown-submenu > ul > li > a{ width: 100%; } .socket_not_loading{ display: none; } .socket_connected .socket_loading_icon, .socket_disconnected .socket_loading_icon{ display: none; } .socket_connected .socket_connected_icon{ display: block; } .socket_disconnected .socket_disconnected_icon{ display: block; } .socket_icon{ font-weight: bold; } .socket_connected{ color: #FFF; animation: socketGlow 1s infinite alternate; } .socket_connected_icon{ color: #FFF; animation: socketGlow 1s infinite alternate; } .socket_loading_icon{ color: #FFF; animation: socketGlowBlue 1s infinite alternate; } @keyframes socketGlow { from { color: #DFD; text-shadow: 0 0 1px #050, 0 0 2px #070, 0 0 3px #670, 0 0 4px #670; } to { color: #FFF; text-shadow: 0 0 2px #020, 0 0 5px #090, 0 0 10px #0F0, 0 0 15px #BF0, 0 0 20px #B6FF00; } } @keyframes socketGlowBlue { from { color: #DDF; text-shadow: 0 0 1px #005, 0 0 2px #007, 0 0 3px #067, 0 0 4px #067; } to { color: #FFF; text-shadow: 0 0 2px #002, 0 0 5px #009, 0 0 10px #00F, 0 0 15px #0BF, 0 0 20px #00B6FF; } } .glowBox{ animation: glowBox 1s infinite alternate; } @keyframes glowBox { from { color: #DFD; box-shadow: 0 0 1px #050, 0 0 2px #070, 0 0 3px #670, 0 0 4px #670; } to { color: #FFF; box-shadow: 0 0 2px #020, 0 0 5px #090, 0 0 10px #0F0, 0 0 15px #BF0, 0 0 20px #B6FF00; } } #extraVideos .liveVideo{ min-height: 170px; } #extraVideos .liveVideo .thumbsImage img{ min-height: 90px; } .swal-modal.swal-modal-iframe { width: calc(100% - 150px); height: calc(100% - 150px); } .swal-modal.swal-modal-iframe .swal-content, .swal-modal.swal-modal-iframe-small .swal-content, .swal-modal.swal-modal-iframe-large .swal-content{ width: 100%; height: calc(100% - 50px); } .swal-modal.swal-modal-iframe iframe, .swal-modal.swal-modal-iframe-small iframe, .swal-modal.swal-modal-iframe-large iframe{ width: 100%; height: 100%; } .swal-modal-iframe-small { width: 800px; height: 600px; max-width: 100%; max-height: 100%; } .swal-modal-iframe-large { width: calc(100% - 50px); height: calc(100% - 50px); max-width: 100%; max-height: 100%; } .swal-modal.swal-modal-iframe-large .swal-content{ height: 100%; padding: 0; margin: 0; } .getChangeVideoStatusButton button{ display: none; } .getChangeVideoStatusButton.status_i button.getChangeVideoStatusButton_i{ display: block; } .getChangeVideoStatusButton.status_a button.getChangeVideoStatusButton_a{ display: block; } .getChangeVideoStatusButton.status_u button.getChangeVideoStatusButton_u{ display: block; } #pleaseWaitDialog{ z-index: 2001; background-color: #00000077; } #pleaseWaitDialog>div, #pleaseWaitDialog .progress, #pleaseWaitDialog h2{ margin: 0; position: absolute; top: 50%; -ms-transform: translateY(-50%); transform: translateY(-50%); } #pleaseWaitDialog>div{ margin: -65px 0 0 -40px; left: 50%; } #pleaseWaitDialog .progress, #pleaseWaitDialog h2{ margin: 0 0 0 -200px; width: 400px; left: 50%; } #pleaseWaitDialog .progress{ background-color: #FFFFFF77; } #pleaseWaitDialog h2{ margin-top: 40px; text-shadow: #000 1px 0 5px; color: #FFF; font-weight: bold; } @media (min-width: 1200px) { .playerFullHeight, .playerFullHeight video, .playerFullHeight audio, .playerFullHeight iframe, .playerFullHeight #mainVideo, .playerFullHeight #main-video{ height: calc(100vh - 60px); width: 100%; padding: 0; } .playerFullHeight .floatVideo video, .playerFullHeight .floatVideo audio, .playerFullHeight .floatVideo iframe, .playerFullHeight .floatVideo #mainVideo, .playerFullHeight .floatVideo #main-video{ height: 300px; } .playerFullHeight .mainVideo{ padding: 0; } } .modal { overflow: auto !important; +} + +.nav-tabs-horizontal{ + display: -webkit-box; + display: -webkit-inline-box; +} +.scrtabs-tab-container{ + margin: 5px 0; +} +.scrtabs-tab-scroll-arrow{ + border-top: 1px solid #ddd; } \ No newline at end of file diff --git a/view/infoFromURL.php b/view/infoFromURL.php index 46a215b2d..5a0e30d9e 100644 --- a/view/infoFromURL.php +++ b/view/infoFromURL.php @@ -1,82 +1,76 @@ videos_id = ""; $obj->poster = ""; $obj->sources = ""; $obj->url = ""; $obj->friendly = ""; $obj->embed = ""; $obj->sprits = ""; $obj->nextURL = ""; $obj->nextURLEmbed = ""; $obj->error = true; $obj->msg = ""; if (empty($_GET['url'])) { $obj->msg = "empty URL"; die(json_encode($obj)); } $obj->url = $_GET['url']; $obj->vtt = array(); $patternURL = addcslashes($global['webSiteRootURL'], "/"); +$obj->videos_id = getVideoIDFromURL($obj->url); -if (preg_match("/{$patternURL}v(ideo(Embed)?)?\/([0-9]+)/", $obj->url, $matches)) { - if (empty($matches[3])) { - $obj->msg = "videos_id NOT found"; - die(json_encode($obj)); - } -} else { - $obj->msg = "it is not a valid URL"; +if (empty($obj->videos_id)) { + $obj->msg = "videos_id NOT found"; die(json_encode($obj)); } -$obj->videos_id = intval($matches[3]); - $video = Video::getVideo($obj->videos_id); if (empty($video['filename'])) { $obj->msg = "Video Not found"; die(json_encode($obj)); } if ($video['type'] !== 'video' && $video['type'] !== 'audio') { $obj->msg = "Must be a video [{$video['type']}]"; die(json_encode($obj)); } $obj->error = false; $obj->friendly = Video::getURLFriendly($obj->videos_id); $obj->embed = Video::getURLFriendly($obj->videos_id, true); $obj->sources = getSources($video['filename'], true); $obj->poster = "{$global['webSiteRootURL']}videos/{$video['filename']}.jpg"; $obj->sprits = "{$global['webSiteRootURL']}videos/{$video['filename']}_thumbsSprit.jpg"; $obj->title = $video['title']; $obj->userPhoto = User::getPhoto($video['users_id']); if (!empty($video['next_videos_id'])) { $obj->nextURL = Video::getURLFriendly($video['next_videos_id']); $obj->nextURLEmbed = Video::getURLFriendly($video['next_videos_id'], true); }else{ $catName = @$_GET['catName']; $cat = new Category($video['categories_id']); $_GET['catName'] = $cat->getClean_name(); $next_video = Video::getVideo('', 'viewable', false, true); $_GET['catName'] = $catName; if (!empty($next_video['id'])) { $obj->nextURL = Video::getURLFriendly($next_video['id']); $obj->nextURLEmbed = Video::getURLFriendly($next_video['id'], true); } } if (function_exists('getVTTTracks')) { $obj->vtt = getVTTTracks($video['filename'], true); } die(json_encode($obj)); diff --git a/view/managerUsers_body.php b/view/managerUsers_body.php index dcfa9372b..4ea84c665 100644 --- a/view/managerUsers_body.php +++ b/view/managerUsers_body.php @@ -1,468 +1,468 @@