Changeset 2893356
- Timestamp:
- 04/04/2023 07:32:05 AM (3 years ago)
- Location:
- gocrypto-pay/trunk
- Files:
-
- 26 edited
-
composer.json (modified) (1 diff)
-
gocrypto-pay.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.json (modified) (14 diffs)
-
vendor/composer/installed.php (modified) (7 diffs)
-
vendor/eligmaltd/gocrypto-pay-php/src/GoCryptoPay.php (modified) (3 diffs)
-
vendor/guzzlehttp/guzzle/CHANGELOG.md (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/README.md (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/composer.json (modified) (2 diffs)
-
vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/RetryMiddleware.php (modified) (1 diff)
-
vendor/guzzlehttp/guzzle/src/Utils.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/CHANGELOG.md (modified) (2 diffs)
-
vendor/guzzlehttp/promises/README.md (modified) (19 diffs)
-
vendor/guzzlehttp/promises/src/EachPromise.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/CHANGELOG.md (modified) (2 diffs)
-
vendor/guzzlehttp/psr7/README.md (modified) (3 diffs)
-
vendor/guzzlehttp/psr7/composer.json (modified) (2 diffs)
-
vendor/guzzlehttp/psr7/src/AppendStream.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/Header.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/LazyOpenStream.php (modified) (3 diffs)
-
vendor/guzzlehttp/psr7/src/Message.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/MultipartStream.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/Uri.php (modified) (2 diffs)
-
vendor/symfony/deprecation-contracts/LICENSE (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gocrypto-pay/trunk/composer.json
r2759032 r2893356 6 6 "require": { 7 7 "php": ">=7.4", 8 "eligmaltd/gocrypto-pay-php": " dev-main"8 "eligmaltd/gocrypto-pay-php": "v1.0.0" 9 9 }, 10 10 "config": { -
gocrypto-pay/trunk/gocrypto-pay.php
r2877836 r2893356 3 3 * Plugin Name: GoCrypto Pay 4 4 * Description: Instant and secure crypto payments. 5 * Version: 1.0. 65 * Version: 1.0.7 6 6 * Author: Eligma Ltd. 7 7 * Author URI: https://gocrypto.com … … 184 184 'discount' => round($order->get_total_discount() * 100), 185 185 'currency_code' => $order->get_currency(), 186 'customer_email' => $order->get_billing_email(), 186 'kyc' => [ 187 'email' => $order->get_billing_email(), 188 'first_name' => $order->get_billing_first_name(), 189 'last_name' => $order->get_billing_last_name(), 190 'country' => $order->get_billing_country(), 191 'city' => $order->get_billing_city(), 192 'zip_code' => $order->get_billing_postcode(), 193 'address' => $order->get_billing_address_1() 194 ], 187 195 'callback_endpoint' => $baseUrl . $this->id .'&order_id=' . $orderId 188 196 ); … … 200 208 $chargeData['items'][] = $itemData; 201 209 } 210 202 211 203 212 // generate charge -
gocrypto-pay/trunk/readme.txt
r2877838 r2893356 2 2 Plugin Name: GoCrypto Pay 3 3 Description: Instant and secure crypto payments. 4 Stable tag: 1.0. 64 Stable tag: 1.0.7 5 5 Author: Eligma Ltd. 6 6 Author URI: https://gocrypto.com … … 53 53 == Changelog == 54 54 55 = 1.0.7 = 56 KYC support 57 55 58 = 1.0.6 = 56 59 Overpayment and Underpayment support -
gocrypto-pay/trunk/vendor/composer/installed.json
r2759221 r2893356 3 3 { 4 4 "name": "eligmaltd/gocrypto-pay-php", 5 "version": " dev-main",6 "version_normalized": " dev-main",5 "version": "v1.0.0", 6 "version_normalized": "1.0.0.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/eligmaltd/gocrypto-pay-php.git", 10 "reference": " 881d84a0842bf1465b5174a53615daa9df8d508c"11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/eligmaltd/gocrypto-pay-php/zipball/ 881d84a0842bf1465b5174a53615daa9df8d508c",15 "reference": " 881d84a0842bf1465b5174a53615daa9df8d508c",10 "reference": "134655420cbc88be177e3cf9b7fb4a6d4566f697" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/eligmaltd/gocrypto-pay-php/zipball/134655420cbc88be177e3cf9b7fb4a6d4566f697", 15 "reference": "134655420cbc88be177e3cf9b7fb4a6d4566f697", 16 16 "shasum": "" 17 17 }, … … 20 20 "php": ">=7.4" 21 21 }, 22 "time": "2022-07-20T13:20:34+00:00", 23 "default-branch": true, 22 "time": "2023-04-04T07:08:34+00:00", 24 23 "type": "payments", 25 24 "installation-source": "dist", … … 41 40 "support": { 42 41 "issues": "https://github.com/eligmaltd/gocrypto-pay-php/issues", 43 "source": "https://github.com/eligmaltd/gocrypto-pay-php/tree/ main"42 "source": "https://github.com/eligmaltd/gocrypto-pay-php/tree/v1.0.0" 44 43 }, 45 44 "install-path": "../eligmaltd/gocrypto-pay-php" … … 52 51 "type": "git", 53 52 "url": "https://github.com/guzzle/guzzle.git", 54 "reference": " ca5c743d20730d1a129a9ee04cbe854df7304b96"55 }, 56 "dist": { 57 "type": "zip", 58 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ ca5c743d20730d1a129a9ee04cbe854df7304b96",59 "reference": " ca5c743d20730d1a129a9ee04cbe854df7304b96",53 "reference": "8459341c16f96b9610dcdfe22bd3060d60c0da04" 54 }, 55 "dist": { 56 "type": "zip", 57 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/8459341c16f96b9610dcdfe22bd3060d60c0da04", 58 "reference": "8459341c16f96b9610dcdfe22bd3060d60c0da04", 60 59 "shasum": "" 61 60 }, … … 72 71 }, 73 72 "require-dev": { 74 "bamarni/composer-bin-plugin": "^1. 4.1",73 "bamarni/composer-bin-plugin": "^1.8.1", 75 74 "ext-curl": "*", 76 75 "php-http/client-integration-tests": "^3.0", 77 "phpunit/phpunit": "^8.5. 5 || ^9.3.5",76 "phpunit/phpunit": "^8.5.29 || ^9.5.23", 78 77 "psr/log": "^1.1 || ^2.0 || ^3.0" 79 78 }, … … 83 82 "psr/log": "Required for using the Log middleware" 84 83 }, 85 "time": "2022-0 6-22T22:41:11+00:00",84 "time": "2022-08-29T11:03:19+00:00", 86 85 "default-branch": true, 87 86 "type": "library", 88 87 "extra": { 88 "bamarni-bin": { 89 "bin-links": true, 90 "forward-command": false 91 }, 89 92 "branch-alias": { 90 "dev-master": "7. 4-dev"93 "dev-master": "7.5-dev" 91 94 } 92 95 }, … … 180 183 "type": "git", 181 184 "url": "https://github.com/guzzle/promises.git", 182 "reference": " 43453bfd44284ccb73d1beb16f3d30ea888097c1"183 }, 184 "dist": { 185 "type": "zip", 186 "url": "https://api.github.com/repos/guzzle/promises/zipball/ 43453bfd44284ccb73d1beb16f3d30ea888097c1",187 "reference": " 43453bfd44284ccb73d1beb16f3d30ea888097c1",185 "reference": "b94b2807d85443f9719887892882d0329d1e2598" 186 }, 187 "dist": { 188 "type": "zip", 189 "url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598", 190 "reference": "b94b2807d85443f9719887892882d0329d1e2598", 188 191 "shasum": "" 189 192 }, … … 194 197 "symfony/phpunit-bridge": "^4.4 || ^5.1" 195 198 }, 196 "time": "2022-0 6-28T20:38:13+00:00",199 "time": "2022-08-28T14:55:35+00:00", 197 200 "default-branch": true, 198 201 "type": "library", … … 243 246 "support": { 244 247 "issues": "https://github.com/guzzle/promises/issues", 245 "source": "https://github.com/guzzle/promises/tree/ master"248 "source": "https://github.com/guzzle/promises/tree/1.5.2" 246 249 }, 247 250 "funding": [ … … 268 271 "type": "git", 269 272 "url": "https://github.com/guzzle/psr7.git", 270 "reference": " 13388f00956b1503577598873fffb5ae994b5737"271 }, 272 "dist": { 273 "type": "zip", 274 "url": "https://api.github.com/repos/guzzle/psr7/zipball/ 13388f00956b1503577598873fffb5ae994b5737",275 "reference": " 13388f00956b1503577598873fffb5ae994b5737",273 "reference": "3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf" 274 }, 275 "dist": { 276 "type": "zip", 277 "url": "https://api.github.com/repos/guzzle/psr7/zipball/3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf", 278 "reference": "3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf", 276 279 "shasum": "" 277 280 }, … … 287 290 }, 288 291 "require-dev": { 289 "bamarni/composer-bin-plugin": "^1. 4.1",292 "bamarni/composer-bin-plugin": "^1.8.1", 290 293 "http-interop/http-factory-tests": "^0.9", 291 "phpunit/phpunit": "^8.5. 8 || ^9.3.10"294 "phpunit/phpunit": "^8.5.29 || ^9.5.23" 292 295 }, 293 296 "suggest": { 294 297 "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" 295 298 }, 296 "time": "202 2-06-20T21:43:11+00:00",299 "time": "2023-03-09T13:19:02+00:00", 297 300 "default-branch": true, 298 301 "type": "library", 299 302 "extra": { 303 "bamarni-bin": { 304 "bin-links": true, 305 "forward-command": false 306 }, 300 307 "branch-alias": { 301 308 "dev-master": "2.4-dev" … … 362 369 "support": { 363 370 "issues": "https://github.com/guzzle/psr7/issues", 364 "source": "https://github.com/guzzle/psr7/tree/2.4. 0"371 "source": "https://github.com/guzzle/psr7/tree/2.4.4" 365 372 }, 366 373 "funding": [ … … 606 613 "type": "git", 607 614 "url": "https://github.com/symfony/deprecation-contracts.git", 608 "reference": " e8b495ea28c1d97b5e0c121748d6f9b53d075c66"609 }, 610 "dist": { 611 "type": "zip", 612 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/ e8b495ea28c1d97b5e0c121748d6f9b53d075c66",613 "reference": " e8b495ea28c1d97b5e0c121748d6f9b53d075c66",615 "reference": "80d075412b557d41002320b96a096ca65aa2c98d" 616 }, 617 "dist": { 618 "type": "zip", 619 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d", 620 "reference": "80d075412b557d41002320b96a096ca65aa2c98d", 614 621 "shasum": "" 615 622 }, … … 617 624 "php": ">=7.1" 618 625 }, 619 "time": "202 2-01-02T09:53:40+00:00",626 "time": "2023-01-24T14:02:46+00:00", 620 627 "type": "library", 621 628 "extra": { -
gocrypto-pay/trunk/vendor/composer/installed.php
r2759221 r2893356 4 4 'pretty_version' => 'dev-develop', 5 5 'version' => 'dev-develop', 6 'reference' => ' de15679f6e4efb05d0519f1fe8377244c8947b35',6 'reference' => '60c6f88bd8f8191636c2a1e814b33a431a2adc90', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-develop', 15 15 'version' => 'dev-develop', 16 'reference' => ' de15679f6e4efb05d0519f1fe8377244c8947b35',16 'reference' => '60c6f88bd8f8191636c2a1e814b33a431a2adc90', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'eligmaltd/gocrypto-pay-php' => array( 23 'pretty_version' => ' dev-main',24 'version' => ' dev-main',25 'reference' => ' 881d84a0842bf1465b5174a53615daa9df8d508c',23 'pretty_version' => 'v1.0.0', 24 'version' => '1.0.0.0', 25 'reference' => '134655420cbc88be177e3cf9b7fb4a6d4566f697', 26 26 'type' => 'payments', 27 27 'install_path' => __DIR__ . '/../eligmaltd/gocrypto-pay-php', 28 'aliases' => array( 29 0 => '9999999-dev', 30 ), 28 'aliases' => array(), 31 29 'dev_requirement' => false, 32 30 ), … … 34 32 'pretty_version' => 'dev-master', 35 33 'version' => 'dev-master', 36 'reference' => ' ca5c743d20730d1a129a9ee04cbe854df7304b96',34 'reference' => '8459341c16f96b9610dcdfe22bd3060d60c0da04', 37 35 'type' => 'library', 38 36 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 39 37 'aliases' => array( 40 0 => '7. 4.x-dev',38 0 => '7.5.x-dev', 41 39 ), 42 40 'dev_requirement' => false, … … 45 43 'pretty_version' => 'dev-master', 46 44 'version' => 'dev-master', 47 'reference' => ' 43453bfd44284ccb73d1beb16f3d30ea888097c1',45 'reference' => 'b94b2807d85443f9719887892882d0329d1e2598', 48 46 'type' => 'library', 49 47 'install_path' => __DIR__ . '/../guzzlehttp/promises', … … 56 54 'pretty_version' => 'dev-master', 57 55 'version' => 'dev-master', 58 'reference' => ' 13388f00956b1503577598873fffb5ae994b5737',56 'reference' => '3cf1b6d4f0c820a2cf8bcaec39fc698f3443b5cf', 59 57 'type' => 'library', 60 58 'install_path' => __DIR__ . '/../guzzlehttp/psr7', … … 127 125 'pretty_version' => '2.5.x-dev', 128 126 'version' => '2.5.9999999.9999999-dev', 129 'reference' => ' e8b495ea28c1d97b5e0c121748d6f9b53d075c66',127 'reference' => '80d075412b557d41002320b96a096ca65aa2c98d', 130 128 'type' => 'library', 131 129 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', -
gocrypto-pay/trunk/vendor/eligmaltd/gocrypto-pay-php/src/GoCryptoPay.php
r2759221 r2893356 1 1 <?php 2 2 // Author (c) Daniel Jaušovec, Eligma Ltd. 3 // Version: GOC-00 1:2022-07-073 // Version: GOC-002:2023-04-04 4 4 5 5 namespace Eligmaltd\GoCryptoPayPHP; … … 132 132 * @var $data [items][discount] integer, optional 133 133 * @var $data [items][tax] integer, optional 134 * @var $data [kyc] object, optional 135 * @var $data [kyc][email] string, required 136 * @var $data [kyc][first_name] string, required 137 * @var $data [kyc][last_name] string, required 138 * @var $data [kyc][country] string, required 139 * @var $data [kyc][city] string, required 140 * @var $data [kyc][zip_code] string, required 141 * @var $data [kyc][address] string, required 142 * @var $data [kyc][building_number] string, optional 134 143 * @var $data [callback_endpoint] string, required 135 144 */ … … 156 165 } 157 166 167 if (array_key_exists('kyc', $data)) { 168 $chargeData['kyc'] = $data['kyc']; 169 } 170 158 171 $response = $this->client->request('POST', $this->endpoint . '/payments/charge/', [ 159 172 'headers' => [ -
gocrypto-pay/trunk/vendor/guzzlehttp/guzzle/CHANGELOG.md
r2759032 r2893356 2 2 3 3 Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version. 4 5 ## 7.5.0 - 2022-08-28 6 7 ### Added 8 9 - Support PHP 8.2 10 - Add request to delay closure params 4 11 5 12 ## 7.4.5 - 2022-06-20 -
gocrypto-pay/trunk/vendor/guzzlehttp/guzzle/README.md
r2759032 r2893356 67 67 | 5.x | EOL | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No | >=5.4,<7.4 | 68 68 | 6.x | Security fixes | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes | >=5.5,<8.0 | 69 | 7.x | Latest | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes | >=7.2.5,<8. 2|69 | 7.x | Latest | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes | >=7.2.5,<8.3 | 70 70 71 71 [guzzle-3-repo]: https://github.com/guzzle/guzzle3 -
gocrypto-pay/trunk/vendor/guzzlehttp/guzzle/composer.json
r2759032 r2893356 64 64 "require-dev": { 65 65 "ext-curl": "*", 66 "bamarni/composer-bin-plugin": "^1. 4.1",66 "bamarni/composer-bin-plugin": "^1.8.1", 67 67 "php-http/client-integration-tests": "^3.0", 68 "phpunit/phpunit": "^8.5. 5 || ^9.3.5",68 "phpunit/phpunit": "^8.5.29 || ^9.5.23", 69 69 "psr/log": "^1.1 || ^2.0 || ^3.0" 70 70 }, … … 82 82 }, 83 83 "extra": { 84 "bamarni-bin": { 85 "bin-links": true, 86 "forward-command": false 87 }, 84 88 "branch-alias": { 85 "dev-master": "7. 4-dev"89 "dev-master": "7.5-dev" 86 90 } 87 91 }, -
gocrypto-pay/trunk/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php
r2759032 r2893356 179 179 // Resolve conflicts with previously set cookies 180 180 foreach ($this->cookies as $i => $c) { 181 182 181 // Two cookies are identical, when their path, and domain are 183 182 // identical. -
gocrypto-pay/trunk/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php
r2759032 r2893356 20 20 * @final 21 21 */ 22 #[\AllowDynamicProperties] 22 23 class CurlMultiHandler 23 24 { -
gocrypto-pay/trunk/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
r2759032 r2893356 110 110 private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null): PromiseInterface 111 111 { 112 $options['delay'] = ($this->delay)(++$options['retries'], $response );112 $options['delay'] = ($this->delay)(++$options['retries'], $response, $request); 113 113 114 114 return $this($request, $options); -
gocrypto-pay/trunk/vendor/guzzlehttp/guzzle/src/Utils.php
r2759032 r2893356 87 87 { 88 88 $handler = null; 89 if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) { 90 $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler()); 91 } elseif (\function_exists('curl_exec')) { 92 $handler = new CurlHandler(); 93 } elseif (\function_exists('curl_multi_exec')) { 94 $handler = new CurlMultiHandler(); 89 90 if (\defined('CURLOPT_CUSTOMREQUEST')) { 91 if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) { 92 $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler()); 93 } elseif (\function_exists('curl_exec')) { 94 $handler = new CurlHandler(); 95 } elseif (\function_exists('curl_multi_exec')) { 96 $handler = new CurlMultiHandler(); 97 } 95 98 } 96 99 -
gocrypto-pay/trunk/vendor/guzzlehttp/promises/CHANGELOG.md
r2759032 r2893356 1 1 # CHANGELOG 2 3 ## 1.5.2 - 2022-08-07 4 5 ### Changed 6 7 - Officially support PHP 8.2 2 8 3 9 ## 1.5.1 - 2021-10-22 … … 13 19 14 20 - Call handler when waiting on fulfilled/rejected Promise 21 - Officially support PHP 8.1 15 22 16 23 ### Fixed 17 24 18 - Fix manually settle promises generated with Utils::task25 - Fix manually settle promises generated with `Utils::task` 19 26 20 27 ## 1.4.1 - 2021-02-18 -
gocrypto-pay/trunk/vendor/guzzlehttp/promises/README.md
r2759032 r2893356 18 18 19 19 20 # Features20 ## Features 21 21 22 22 - [Promises/A+](https://promisesaplus.com/) implementation. … … 30 30 31 31 32 # Quick start32 ## Quick Start 33 33 34 34 A *promise* represents the eventual result of an asynchronous operation. The … … 37 37 why the promise cannot be fulfilled. 38 38 39 40 ## Callbacks 39 ### Callbacks 41 40 42 41 Callbacks are registered with the `then` method by providing an optional … … 61 60 62 61 *Resolving* a promise means that you either fulfill a promise with a *value* or 63 reject a promise with a *reason*. Resolving a promise striggers callbacks64 registered with the promise s's `then` method. These callbacks are triggered62 reject a promise with a *reason*. Resolving a promise triggers callbacks 63 registered with the promise's `then` method. These callbacks are triggered 65 64 only once and in the order in which they were added. 66 65 67 68 ## Resolving a promise 66 ### Resolving a Promise 69 67 70 68 Promises are fulfilled using the `resolve($value)` method. Resolving a promise … … 93 91 ``` 94 92 95 96 ## Promise forwarding 93 ### Promise Forwarding 97 94 98 95 Promises can be chained one after the other. Each then in the chain is a new … … 124 121 ``` 125 122 126 ## Promise rejection123 ### Promise Rejection 127 124 128 125 When a promise is rejected, the `$onRejected` callbacks are invoked with the … … 141 138 ``` 142 139 143 ## Rejection forwarding140 ### Rejection Forwarding 144 141 145 142 If an exception is thrown in an `$onRejected` callback, subsequent … … 196 193 ``` 197 194 198 # Synchronous wait 195 196 ## Synchronous Wait 199 197 200 198 You can synchronously force promises to complete using a promise's `wait` … … 248 246 > PHP Fatal error: Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The promise was rejected with value: foo' 249 247 250 251 ## Unwrapping a promise 248 ### Unwrapping a Promise 252 249 253 250 When synchronously waiting on a promise, you are joining the state of the … … 276 273 277 274 278 # Cancellation275 ## Cancellation 279 276 280 277 You can cancel a promise that has not yet been fulfilled using the `cancel()` … … 284 281 285 282 286 # API 287 288 289 ## Promise 283 ## API 284 285 ### Promise 290 286 291 287 When creating a promise object, you can provide an optional `$waitFn` and … … 350 346 351 347 352 ## FulfilledPromise348 ### FulfilledPromise 353 349 354 350 A fulfilled promise can be created to represent a promise that has been … … 367 363 368 364 369 ## RejectedPromise365 ### RejectedPromise 370 366 371 367 A rejected promise can be created to represent a promise that has been … … 384 380 385 381 386 # Promise interop382 ## Promise Interoperability 387 383 388 384 This library works with foreign promises that have a `then` method. This means … … 410 406 411 407 412 ## Event Loop Integration408 ### Event Loop Integration 413 409 414 410 In order to keep the stack size constant, Guzzle promises are resolved … … 438 434 439 435 440 # Implementation notes 441 442 443 ## Promise resolution and chaining is handled iteratively 436 ## Implementation Notes 437 438 ### Promise Resolution and Chaining is Handled Iteratively 444 439 445 440 By shuffling pending handlers from one owner to another, promises are … … 477 472 value. 478 473 479 480 ## A promise is the deferred. 474 ### A Promise is the Deferred 481 475 482 476 Some promise libraries implement promises using a deferred object to represent … … 506 500 ## Upgrading from Function API 507 501 508 A static API was first introduced in 1.4.0, in order to mitigate problems with functions conflicting between global and local copies of the package. The function API will be removed in 2.0.0. A migration table has been provided here for your convenience: 502 A static API was first introduced in 1.4.0, in order to mitigate problems with 503 functions conflicting between global and local copies of the package. The 504 function API will be removed in 2.0.0. A migration table has been provided here 505 for your convenience: 509 506 510 507 | Original Function | Replacement Method | … … 537 534 If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/promises/security/policy) for more information. 538 535 536 539 537 ## License 540 538 541 539 Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information. 542 540 541 543 542 ## For Enterprise 544 543 -
gocrypto-pay/trunk/vendor/guzzlehttp/promises/src/EachPromise.php
r2759032 r2893356 82 82 $this->refillPending(); 83 83 } catch (\Throwable $e) { 84 /**85 * @psalm-suppress NullReference86 * @phpstan-ignore-next-line87 */88 84 $this->aggregate->reject($e); 89 85 } catch (\Exception $e) { 90 /**91 * @psalm-suppress NullReference92 * @phpstan-ignore-next-line93 */94 86 $this->aggregate->reject($e); 95 87 } -
gocrypto-pay/trunk/vendor/guzzlehttp/psr7/CHANGELOG.md
r2759032 r2893356 7 7 8 8 ## Unreleased 9 10 ## 2.4.4 - 2023-03-09 11 12 ### Changed 13 14 - Removed the need for `AllowDynamicProperties` in `LazyOpenStream` 15 16 ## 2.4.3 - 2022-10-26 17 18 ### Changed 19 20 - Replaced `sha1(uniqid())` by `bin2hex(random_bytes(20))` 21 22 ## 2.4.2 - 2022-10-25 23 24 ### Fixed 25 26 - Fixed erroneous behaviour when combining host and relative path 27 28 ## 2.4.1 - 2022-08-28 29 30 ### Fixed 31 32 - Rewind body before reading in `Message::bodySummary` 9 33 10 34 ## 2.4.0 - 2022-06-20 … … 98 122 99 123 - PHP < 7.2 support 100 - All functions in the Guzzle\Psr7namespace124 - All functions in the `GuzzleHttp\Psr7` namespace 101 125 102 126 ## 1.8.1 - 2021-03-21 -
gocrypto-pay/trunk/vendor/guzzlehttp/psr7/README.md
r2759032 r2893356 8 8  9 9 10 11 # Installation 12 13 ```shell 14 composer require guzzlehttp/psr7 15 ``` 10 16 11 17 # Stream implementation … … 246 252 private $callback; 247 253 254 private $stream; 255 248 256 public function __construct(StreamInterface $stream, callable $cb) 249 257 { … … 381 389 382 390 383 ## `GuzzleHttp\Psr7\Header::normalize` 391 ## `GuzzleHttp\Psr7\Header::splitList` 392 393 `public static function splitList(string|string[] $header): string[]` 394 395 Splits a HTTP header defined to contain a comma-separated list into 396 each individual value: 397 398 ``` 399 $knownEtags = Header::splitList($request->getHeader('if-none-match')); 400 ``` 401 402 Example headers include `accept`, `cache-control` and `if-none-match`. 403 404 405 ## `GuzzleHttp\Psr7\Header::normalize` (deprecated) 384 406 385 407 `public static function normalize(string|array $header): array` 408 409 `Header::normalize()` is deprecated in favor of [`Header::splitList()`](README.md#guzzlehttppsr7headersplitlist) 410 which performs the same operation with a cleaned up API and improved 411 documentation. 386 412 387 413 Converts an array of header values that may contain comma separated -
gocrypto-pay/trunk/vendor/guzzlehttp/psr7/composer.json
r2759032 r2893356 61 61 }, 62 62 "require-dev": { 63 "bamarni/composer-bin-plugin": "^1. 4.1",63 "bamarni/composer-bin-plugin": "^1.8.1", 64 64 "http-interop/http-factory-tests": "^0.9", 65 "phpunit/phpunit": "^8.5. 8 || ^9.3.10"65 "phpunit/phpunit": "^8.5.29 || ^9.5.23" 66 66 }, 67 67 "suggest": { … … 79 79 }, 80 80 "extra": { 81 "bamarni-bin": { 82 "bin-links": true, 83 "forward-command": false 84 }, 81 85 "branch-alias": { 82 86 "dev-master": "2.4-dev" -
gocrypto-pay/trunk/vendor/guzzlehttp/psr7/src/AppendStream.php
r2759032 r2893356 192 192 193 193 while ($remaining > 0) { 194 195 194 // Progress to the next stream if needed. 196 195 if ($progressToNext || $this->streams[$this->current]->eof()) { -
gocrypto-pay/trunk/vendor/guzzlehttp/psr7/src/Header.php
r2759032 r2893356 63 63 64 64 /** 65 * Splits a HTTP header defined to contain comma-separated list into65 * Splits a HTTP header defined to contain a comma-separated list into 66 66 * each individual value. Empty values will be removed. 67 67 * -
gocrypto-pay/trunk/vendor/guzzlehttp/psr7/src/LazyOpenStream.php
r2759032 r2893356 11 11 * take place on the stream. 12 12 */ 13 #[\AllowDynamicProperties]14 13 final class LazyOpenStream implements StreamInterface 15 14 { … … 23 22 24 23 /** 24 * @var StreamInterface 25 */ 26 private $stream; 27 28 /** 25 29 * @param string $filename File to lazily open 26 30 * @param string $mode fopen mode to use when opening the stream … … 30 34 $this->filename = $filename; 31 35 $this->mode = $mode; 36 37 // unsetting the property forces the first access to go through 38 // __get(). 39 unset($this->stream); 32 40 } 33 41 -
gocrypto-pay/trunk/vendor/guzzlehttp/psr7/src/Message.php
r2759032 r2893356 68 68 } 69 69 70 $body->rewind(); 70 71 $summary = $body->read($truncateAt); 71 72 $body->rewind(); -
gocrypto-pay/trunk/vendor/guzzlehttp/psr7/src/MultipartStream.php
r2759032 r2893356 35 35 public function __construct(array $elements = [], string $boundary = null) 36 36 { 37 $this->boundary = $boundary ?: sha1(uniqid('', true));37 $this->boundary = $boundary ?: bin2hex(random_bytes(20)); 38 38 $this->stream = $this->createStream($elements); 39 39 } -
gocrypto-pay/trunk/vendor/guzzlehttp/psr7/src/Uri.php
r2759032 r2893356 173 173 } 174 174 175 if ($authority != '' || $scheme === 'file') {175 if ($authority != '' || $scheme === 'file') { 176 176 $uri .= '//' . $authority; 177 } 178 179 if ($authority != '' && $path != '' && $path[0] != '/') { 180 $path = '/' . $path; 177 181 } 178 182 … … 732 736 throw new MalformedUriException('A relative URI must not have a path beginning with a segment containing a colon'); 733 737 } 734 } elseif (isset($this->path[0]) && $this->path[0] !== '/') {735 throw new MalformedUriException('The path of a URI with an authority must start with a slash "/" or be empty');736 738 } 737 739 } -
gocrypto-pay/trunk/vendor/symfony/deprecation-contracts/LICENSE
r2759032 r2893356 1 Copyright (c) 2020- 2022Fabien Potencier1 Copyright (c) 2020-present Fabien Potencier 2 2 3 3 Permission is hereby granted, free of charge, to any person obtaining a copy
Note: See TracChangeset
for help on using the changeset viewer.