File manager - Edit - /home/linknsbh/sabel-eltaqwa.com/assets/lfm/files/shares/events/thumbs/paypal.zip
Back
PK ���\��*�W W ( rest-api-sdk-php/phpunit.integration.xmlnu �[��� <?xml version="1.0" encoding="UTF-8"?> <phpunit bootstrap="./tests/bootstrap.php" colors="true" processIsolation="false" stopOnFailure="false" syntaxCheck="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"> <php> <env name="REST_MODE" value="sandbox"/> </php> <testsuites> <testsuite name="All"> <directory>tests</directory> </testsuite> </testsuites> <logging> <log type="junit" target="build/junit.xml" logIncompleteSkipped="false" /> <log type="coverage-html" target="build/coverage/" charset="UTF-8" highlight="true" lowUpperBound="35" highLowerBound="70"/> <log type="coverage-clover" target="build/coverage/clover.xml"/> </logging> <filter> <whitelist> <directory suffix=".php">./lib</directory> <exclude> </exclude> </whitelist> </filter> </phpunit> PK ���\� �)( )( rest-api-sdk-php/CHANGELOG.mdnu �[��� PayPal PHP SDK release notes ============================ 1.14.0 ----- * Update sdk_config.ini log.LogLevel comments [#983](https://github.com/paypal/PayPal-PHP-SDK/pull/983). * Update RefundCapture.php [#998](https://github.com/paypal/PayPal-PHP-SDK/pull/998). * update readme for direct credit card restriction [#1019](https://github.com/paypal/PayPal-PHP-SDK/pull/1019). * Add PHP 7.1 and 7.2 in travis build [#1061](https://github.com/paypal/PayPal-PHP-SDK/pull/1061). * Custom cache directory line was not written [#1062](https://github.com/paypal/PayPal-PHP-SDK/pull/1062). * Re-Order the array keys so that JSON will be an array, not an object [#1034](https://github.com/paypal/PayPal-PHP-SDK/pull/1034). * Refactoring tests [#1011](https://github.com/paypal/PayPal-PHP-SDK/pull/1011). * Added condition to ignore extra header [#1060](https://github.com/paypal/PayPal-PHP-SDK/pull/1060). * Fix links to Developer API Reference [#1095](https://github.com/paypal/PayPal-PHP-SDK/pull/1095). * adding target subject to the generate access token call. 1.13.0 ----- * Add HUF as a non-decimal currency [#974](https://github.com/paypal/PayPal-PHP-SDK/pull/974). * Add `purchaseOrder` in `CartBase` [#939](https://github.com/paypal/PayPal-PHP-SDK/pull/939). * Fixed annotation bug [#872](https://github.com/paypal/PayPal-PHP-SDK/pull/872). * Update PHPUnit [#979](https://github.com/paypal/PayPal-PHP-SDK/pull/979). 1.12.0 ----- * Add `getToken` method to `Payment` class to retrieve EC token from approval URL. * Add TLSv1.2 to cipher list [#844](https://github.com/paypal/PayPal-PHP-SDK/pull/844). * Use restCall object for function that makes REST requests [#841](https://github.com/paypal/PayPal-PHP-SDK/pull/841). * Minor bugfixes [#766](https://github.com/paypal/PayPal-PHP-SDK/issues/766), [#798](https://github.com/paypal/PayPal-PHP-SDK/issues/798), [#845](https://github.com/paypal/PayPal-PHP-SDK/pull/845). * Updated samples. 1.11.0 ----- * Update third party payment sample with PayPal payment. * Prevent error in SSL version check if curl is not available [#706](https://github.com/paypal/PayPal-PHP-SDK/pull/706). * Stop auto-generating PayPal-Request-Id header values and allow SDK users to optionally set the value [#747](https://github.com/paypal/PayPal-PHP-SDK/pull/747). * Remove automatic retries on failed requests [#747](https://github.com/paypal/PayPal-PHP-SDK/pull/747). 1.10.0 ----- * Updated Payments APIs [#700](https://github.com/paypal/PayPal-PHP-SDK/pull/700). * Minor bug fixes. 1.9.0 ----- * Updated Payouts APIs [#692](https://github.com/paypal/PayPal-PHP-SDK/pull/692). * Updated Payment Experience APIs [#682](https://github.com/paypal/PayPal-PHP-SDK/pull/682). * Updated Payments API to use Payment Card instead of credit card [#696](https://github.com/paypal/PayPal-PHP-SDK/pull/696). * Fixed bug on failed Access token call. [#665](https://github.com/paypal/PayPal-PHP-SDK/pull/665). 1.8.0 ----- * Updated Webhooks APIs [#653](https://github.com/paypal/PayPal-PHP-SDK/pull/653). * Updated Invoicing APIs [#657](https://github.com/paypal/PayPal-PHP-SDK/pull/657). * UTF-8 encoding bug fix [#655](https://github.com/paypal/PayPal-PHP-SDK/pull/655). * Updated PSR log [#654](https://github.com/paypal/PayPal-PHP-SDK/pull/654). 1.7.4 ----- * Fixed Duplicate conditional expression in PayPalCredentialManager.php [#594](https://github.com/paypal/PayPal-PHP-SDK/pull/594). * Updated Invoicing APIs [#605](https://github.com/paypal/PayPal-PHP-SDK/pull/605). * Fixed PSR code style errors [#607](https://github.com/paypal/PayPal-PHP-SDK/pull/607). 1.7.3 ----- * Enabled Third Party Invoicing [#581](https://github.com/paypal/PayPal-PHP-SDK/pull/581). 1.7.2 ---- * Vault API updates. * Fixes #575. 1.7.1 ---- * Fixes #559. 1.7.0 ---- * Enable custom logger injection. * Minor bug fixes. 1.6.4 ---- * SSL Connect Error Fix. * Fixes #474. 1.6.3 ---- * Fixes Continue 100 Header. * Minor Bug Fixes #452. 1.6.2 ---- * TLS Check Sample Added. * Updated README. 1.6.1 ---- * User Agent Changes. * SDK Version Fix. 1.6.0 ---- * Updated Payments API to latest version. * Removed ModelAccessValidator. * Minor Bug Fixes #399. 1.5.1 ---- * Fixed a bug #343 in Future Payment. * Minor Improvements. * Updates to Sample Docs. 1.5.0 ---- * Enabled Vault List API. * Added More Fields to Vault Credit Card Object. * Minor Fixes. 1.4.0 ---- * Ability to validate Webhook. * Fixes to Logging Manager to skip if mode is not set. * SDK updates and fixes. 1.3.2 ---- * Minor Fix for Agreement Details. 1.3.1 ---- * PayPalModel to differentiate between empty objects and array. * Fixed CURLINFO_HEADER_SIZE miscalculations if Proxy Enabled. 1.3.0 ---- * Updated Payment APIs. * Updating ModelAccessValidator to be disabled if not set explicitly. 1.2.1 ---- * Ability to handle missing accessors for unknown objects in json. 1.2.0 ---- * Order API Support. * Introduced DEBUG mode in Logging. Deprecated FINE. * Ability to not Log on DEBUG, while on live environment. * Vault APIs Update API Support. * Transaction Fee Added in Sale Object. * Fixed #237, #234, #233, #215. 1.1.1 ---- * Fix to Cipher Encryption (Critical). 1.1.0 ---- * Enabled Payouts Cancel API Support for Unclaimed Payouts. * Encrypting Access Token in Cached Storage. * Updated Billing Agreement Search Transaction code to pass start_date and end_date. * Updated OAuthToken to throw proper error on not receiving access token. * Minor Bug Fixes and Documentation Updates. 1.0.0 ---- * Enabled Payouts API Support. * Authorization Cache Custom Path Directory Configuration. * Helper Functions to retrieve specific HATEOS Links. * Default Mode set to Sandbox. * Enabled Rest SDK to work nicely with Classic SDKs. * If missing annotation of return type in Getters, it throws a proper exception. * `echo` on PayPalModel Objects will print nice looking JSON. * Updated Invoice Object to retrieve payments and refunds. > ## Breaking Changes * Removed Deprecated Getter Setters from all Model Classes. * All Camelcase getters and setters are removed. Please use first letter uppercase syntax. * E.g. instead of using get_notify_url(), use getNotifyUrl() instead. * Renamed Classes. * PayPal\Common\PPModel => PayPal\Common\PayPalModel. * PayPal\Common\ResourceModel => PayPal\Common\PayPalResourceModel. * PayPal\Common\PPUserAgent => PayPal\Common\PayPalUserAgent. * PayPal\Core\PPConfigManager => PayPal\Core\PayPalConfigManager. * PayPal\Core\PPConstants => PayPal\Core\PayPalConstants. * PayPal\Core\PPCredentialManager => PayPal\Core\PayPalCredentialManager. * PayPal\Core\PPHttpConfig => PayPal\Core\PayPalHttpConfig. * PayPal\Core\PPHttpConnection => PayPal\Core\PayPalHttpConnection. * PayPal\Core\PPLoggingLevel => PayPal\Core\PayPalLoggingLevel. * PayPal\Core\PPLoggingManager => PayPal\Core\PayPalLoggingManager. * PayPal\Exception\PPConfigurationException => PayPal\Exception\PayPalConfigurationException. * PayPal\Exception\PPConnectionException => PayPal\Exception\PayPalConnectionException. * PayPal\Exception\PPInvalidCredentialException => PayPal\Exception\PayPalInvalidCredentialException. * PayPal\Exception\PPMissingCredentialException => PayPal\Exception\PayPalMissingCredentialException. * PayPal\Handler\IPPHandler => PayPal\Handler\IPayPalHandler. * PayPal\Transport\PPRestCall => PayPal\Transport\PayPalRestCall. * Namespace Changes and Class Naming Convention. * PayPal\Common\FormatConverter => PayPal\Converter\FormatConverter. * PayPal\Rest\RestHandler => PayPal\Handler\RestHandler. * PayPal\Rest\OauthHandler => PayPal\Handler\OauthHandler. * Fixes to Methods. * PayPal\Api\Invoice->getPaymentDetails() was renamed to getPayments(). * PayPal\Api\Invoice->getRefundDetails() was renamed to getRefunds(). 1.0.0-beta ---- * Namespace Changes and Class Naming Convention. * Helper Functions to retrieve specific HATEOS Links. * Default Mode set to Sandbox. 0.16.1 ---- * Configurable Headers for all requests to PayPal. * Allows adding additional headers to every call to PayPal APIs. * SDK Config to add headers with http.headers.* syntax. 0.16.0 ---- * Enabled Webhook Management Capabilities. * Enabled Caching Abilities for Access Tokens. 0.15.1 ---- * Enabled Deleting Billing Plans. * Updated Samples. 0.15.0 ---- * Extended Invoicing Capabilities. * Allows QR Code Generation for Invoices. * Updated Formatter to work with multiple locales. * Removed Future Payments mandate on Correlation Id. 0.14.2 ---- * Quick Patch to Unset Cipher List for NSS. 0.14.1 ---- * Updated HttpConfig to use TLSv1 as Cipher List. * Added resetRequestId in ApiContext to enable multiple create calls in succession. * Sanitize Input for Price Variables. * Made samples look better and work best. 0.14.0 ---- * Enabled Billing Plans and Agreements APIs. * Renamed SDK name to PayPal-PHP-SDK. 0.13.2 ---- * Updated Future Payments and LIPP Support. * Updated Logging Syntax. 0.13.1 ---- * Enabled TLS version 1.x for SSL Negotiation. * Updated Identity Support from SDK Core. * Fixed Backward Compatibility changes. 0.13.0 ---- * Enabled Payment Experience. 0.12.0 ---- * Enabled EC Parameters Support for Payment APIs. * Enabled Validation for Missing Accessors. 0.11.1 ---- * Removed Dependency from SDK Core Project. * Enabled Future Payments. 0.11.0 ---- * Ability for PUT and PATCH requests. * Invoice number, custom and soft descriptor. * Order API and tests, more Authorization tests. * remove references to sdk-packages. * patch for retrieving paid invoices. * Shipping address docs patch. * Remove @array annotation. * Validate return cancel url. * type hinting, comment cleaning, and getters and setters for Shipping. 0.10.0 ----- * N/A. 0.9.0 ----- * N/A. 0.8.0 ----- * Invoicing API support added. 0.7.1 ----- * Added support for Reauthorization. 0.7.0 ----- * Added support for Auth and Capture APIs. * Types modified to match the API Spec. * Updated SDK to use namespace supported core library. 0.6.0 ----- * Adding support for dynamic configuration of SDK (Upgrading sdk-core-php dependency to V1.4.0). * Deprecating the setCredential method and changing resource class methods to take an ApiContext argument instead of a OauthTokenCredential argument. 0.5.0 ----- * Initial Release. PK ���\�Z�I� � rest-api-sdk-php/phpunit.xmlnu �[��� <?xml version="1.0" encoding="UTF-8"?> <phpunit bootstrap="./tests/bootstrap.php" colors="true" processIsolation="false" stopOnFailure="false" syntaxCheck="false" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"> <testsuites> <testsuite name="All"> <directory>tests</directory> </testsuite> </testsuites> <groups> <exclude> <group>integration</group> </exclude> </groups> <logging> <log type="junit" target="build/junit.xml" logIncompleteSkipped="false" /> <log type="coverage-clover" target="build/coverage/clover.xml"/> </logging> <filter> <whitelist> <directory suffix=".php">./lib</directory> <exclude> </exclude> </whitelist> </filter> </phpunit> PK ���\��'. . rest-api-sdk-php/README.mdnu �[��� # REST API SDK for PHP  [](https://travis-ci.org/paypal/PayPal-PHP-SDK) [](https://coveralls.io/r/paypal/PayPal-PHP-SDK?branch=master) __Welcome to PayPal PHP SDK__. This repository contains PayPal's PHP SDK and samples for REST API. ## Direct Credit Card Support > **Important: The PayPal REST API no longer supports new direct credit card integrations.** Please instead consider [Braintree Direct](https://www.braintreepayments.com/products/braintree-direct); which is, PayPal's preferred integration solution for accepting direct credit card payments in your mobile app or website. Braintree, a PayPal service, is the easiest way to accept credit cards, PayPal, and many other payment methods. ## Please Note > **The Payment Card Industry (PCI) Council has [mandated](https://blog.pcisecuritystandards.org/migrating-from-ssl-and-early-tls) that early versions of TLS be retired from service. All organizations that handle credit card information are required to comply with this standard. As part of this obligation, PayPal is updating its services to require TLS 1.2 for all HTTPS connections. At this time, PayPal will also require HTTP/1.1 for all connections. [Click here](https://github.com/paypal/tls-update) for more information** > **Connections to the sandbox environment use only TLS 1.2.** ## SDK Documentation [Our PayPal-PHP-SDK Page](http://paypal.github.io/PayPal-PHP-SDK/) includes all the documentation related to PHP SDK. Everything from SDK Wiki, to Sample Codes, to Releases. Here are few quick links to get you there faster. * [PayPal-PHP-SDK Home Page](https://paypal.github.io/PayPal-PHP-SDK/) * [Wiki](https://github.com/paypal/PayPal-PHP-SDK/wiki) * [Samples](https://paypal.github.io/PayPal-PHP-SDK/sample/) * [Installation](https://github.com/paypal/PayPal-PHP-SDK/wiki/Installation) * [Make your First SDK Call](https://github.com/paypal/PayPal-PHP-SDK/wiki/Making-First-Call) * [PayPal Developer Docs](https://developer.paypal.com/docs/) ## Latest Updates - SDK now allows injecting your logger implementation. Please read [documentation](https://github.com/paypal/PayPal-PHP-SDK/wiki/Custom-Logger) for more details. - If you are running into SSL Connect Error talking to sandbox or live, please update your SDK to latest version or, follow instructions as shown [here](https://github.com/paypal/PayPal-PHP-SDK/issues/474) - Checkout the latest 1.0.0 release. Here are all the [breaking Changes in v1.0.0](https://github.com/paypal/PayPal-PHP-SDK/wiki/Breaking-Changes---1.0.0) if you are migrating from older versions. - Now we have a [Github Page](https://paypal.github.io/PayPal-PHP-SDK/), that helps you find all helpful resources building applications using PayPal-PHP-SDK. ## 2.0 Release Candidate! We're releasing a [brand new version of our SDK!](https://github.com/paypal/PayPal-php-SDK/tree/2.0-beta) 2.0 is currently at release candidate status, and represents a full refactor, with the goal of making all of our APIs extremely easy to use. 2.0 includes all of the existing APIs (except payouts), and includes the new Orders API (Disputes and Marketplace coming soon). Check out the [FAQ and migration guide](https://github.com/paypal/PayPal-php-SDK/tree/2.0-beta/docs), and let us know if you have any suggestions or issues! ## Prerequisites - PHP 5.3 or above - [curl](https://secure.php.net/manual/en/book.curl.php), [json](https://secure.php.net/manual/en/book.json.php) & [openssl](https://secure.php.net/manual/en/book.openssl.php) extensions must be enabled ## License Read [License](LICENSE) for more licensing information. ## Contributing Read [here](CONTRIBUTING.md) for more information. ## More help * [Going Live](https://github.com/paypal/PayPal-PHP-SDK/wiki/Going-Live) * [PayPal-PHP-SDK Home Page](http://paypal.github.io/PayPal-PHP-SDK/) * [SDK Documentation](https://github.com/paypal/PayPal-PHP-SDK/wiki) * [Sample Source Code](http://paypal.github.io/PayPal-PHP-SDK/sample/) * [API Reference](https://developer.paypal.com/docs/api/) * [Reporting Issues / Feature Requests](https://github.com/paypal/PayPal-PHP-SDK/issues) PK ���\z�H:� � rest-api-sdk-php/LICENSEnu �[��� The PayPal PHP SDK is released under the following license: Copyright (c) 2013-2016 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. PK ���\g��h� � rest-api-sdk-php/composer.jsonnu �[��� { "name": "paypal/rest-api-sdk-php", "description": "PayPal's PHP SDK for REST APIs", "keywords": ["paypal", "payments", "rest", "sdk"], "type": "library", "license": "Apache-2.0", "homepage": "http://paypal.github.io/PayPal-PHP-SDK/", "authors": [ { "name": "PayPal", "homepage": "https://github.com/paypal/rest-api-sdk-php/contributors" } ], "require": { "php": ">=5.3.0", "ext-curl": "*", "ext-json": "*", "psr/log": "^1.0.0" }, "require-dev": { "phpunit/phpunit": "^4.8.35" }, "autoload": { "psr-0": { "PayPal": "lib/" } } } PK ���\{�&@4 4 * rest-api-sdk-php/.github/ISSUE_TEMPLATE.mdnu �[��� <!-- ** General notice: if you have an API issue, see our [REST API issues](https://github.com/paypal/PayPal-REST-API-issues) repository, or contact [PayPal Tech Support](https://developer.paypal.com/support/). ** --> ### General information * SDK/Library version: <!-- Example: 4.7.2 --> * Environment: <!-- Is this issue in Sandbox or Production? --> * `PayPal-Debug-ID` values: <!-- Report PayPal-Debug-IDs from any logs --> * Language, language version, and OS: <!-- Example: Java 1.8.0_101-b13 on Ubuntu 16.10 --> ### Issue description <!-- To help us quickly reproduce your issue, include as many details as possible, such as logs, steps to reproduce, and so on. If the issue reports a new feature, follow the [user story](https://en.wikipedia.org/wiki/User_story) format to clearly describe the use case. --> PK ���\�;�6 6 rest-api-sdk-php/.gitattributesnu �[��� tests/ export-ignore sample/ export-ignore docs/ export-ignore .coveralls.yml export-ignore .editorconfig export-ignore .releasinator.rb export-ignore .travis.yml export-ignore CONTRIBUTING.md export-ignore Gemfile export-ignore Gemfile.lock export-ignore Rakefile export-ignore generate-api.sh export-ignore PK ���\eWSS� � rest-api-sdk-php/.gitignorenu �[��� build .DS_Store phpunit.local.xml *.log # IDE .idea .project .settings .buildpath atlassian-ide-plugin.xml *.bak # Composer vendor composer.lock composer.phar # Project var tools # Groc node_modules PK ���\��% q q * rest-api-sdk-php/lib/PayPal/Api/Payout.phpnu �[��� <?php namespace PayPal\Api; use PayPal\Common\PayPalResourceModel; use PayPal\Rest\ApiContext; use PayPal\Transport\PayPalRestCall; use PayPal\Validation\ArgumentValidator; /** * Class Payout * * This object represents a set of payouts that includes status data for the payouts. This object enables you to create a payout using a POST request. * * @package PayPal\Api * * @property \PayPal\Api\PayoutSenderBatchHeader sender_batch_header * @property \PayPal\Api\PayoutItem[] items * @property \PayPal\Api\Links[] links */ class Payout extends PayPalResourceModel { /** * The original batch header as provided by the payment sender. * * @param \PayPal\Api\PayoutSenderBatchHeader $sender_batch_header * * @return $this */ public function setSenderBatchHeader($sender_batch_header) { $this->sender_batch_header = $sender_batch_header; return $this; } /** * The original batch header as provided by the payment sender. * * @return \PayPal\Api\PayoutSenderBatchHeader */ public function getSenderBatchHeader() { return $this->sender_batch_header; } /** * An array of payout items (that is, a set of individual payouts). * * @param \PayPal\Api\PayoutItem[] $items * * @return $this */ public function setItems($items) { $this->items = $items; return $this; } /** * An array of payout items (that is, a set of individual payouts). * * @return \PayPal\Api\PayoutItem[] */ public function getItems() { return $this->items; } /** * Append Items to the list. * * @param \PayPal\Api\PayoutItem $payoutItem * @return $this */ public function addItem($payoutItem) { if (!$this->getItems()) { return $this->setItems(array($payoutItem)); } else { return $this->setItems( array_merge($this->getItems(), array($payoutItem)) ); } } /** * Remove Items from the list. * * @param \PayPal\Api\PayoutItem $payoutItem * @return $this */ public function removeItem($payoutItem) { return $this->setItems( array_diff($this->getItems(), array($payoutItem)) ); } /** * Create a payout batch resource by passing a sender_batch_header and an items array to the request URI. The sender_batch_header contains payout parameters that describe the handling of a batch resource while the items array conatins payout items. * * @param array $params * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls * @return PayoutBatch */ public function create($params = array(), $apiContext = null, $restCall = null) { $params = $params ? $params : array(); ArgumentValidator::validate($params, 'params'); $payLoad = $this->toJSON(); $allowedParams = array( 'sync_mode' => 1, ); $json = self::executeCall( "/v1/payments/payouts" . "?" . http_build_query(array_intersect_key($params, $allowedParams)), "POST", $payLoad, null, $apiContext, $restCall ); $ret = new PayoutBatch(); $ret->fromJson($json); return $ret; } /** * You can submit a payout with a synchronous API call, which immediately returns the results of a PayPal payment. * * @param ApiContext $apiContext * @param PayPalRestCall $restCall * @return PayoutBatch */ public function createSynchronous($apiContext = null, $restCall = null) { $params = array('sync_mode' => 'true'); return $this->create($params, $apiContext, $restCall); } /** * Obtain the status of a specific batch resource by passing the payout batch ID to the request URI. You can issue this call multiple times to get the current status. * * @param string $payoutBatchId * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls * @return PayoutBatch */ public static function get($payoutBatchId, $apiContext = null, $restCall = null) { ArgumentValidator::validate($payoutBatchId, 'payoutBatchId'); $payLoad = ""; $json = self::executeCall( "/v1/payments/payouts/$payoutBatchId", "GET", $payLoad, null, $apiContext, $restCall ); $ret = new PayoutBatch(); $ret->fromJson($json); return $ret; } } PK ���\Qf��~ ~ '