Changeset 3072171
- Timestamp:
- 04/17/2024 08:15:31 AM (2 years ago)
- Location:
- multisafepay
- Files:
-
- 36 edited
- 1 copied
-
tags/6.4.0 (copied) (copied from multisafepay/trunk)
-
tags/6.4.0/multisafepay.php (modified) (3 diffs)
-
tags/6.4.0/readme.txt (modified) (6 diffs)
-
tags/6.4.0/src/PaymentMethods/Base/BasePaymentMethod.php (modified) (3 diffs)
-
tags/6.4.0/src/PaymentMethods/Base/BasePaymentMethodBlocks.php (modified) (4 diffs)
-
tags/6.4.0/src/Services/PaymentComponentService.php (modified) (2 diffs)
-
tags/6.4.0/vendor/composer/installed.json (modified) (6 diffs)
-
tags/6.4.0/vendor/composer/installed.php (modified) (4 diffs)
-
tags/6.4.0/vendor/multisafepay/php-sdk/CHANGELOG.md (modified) (1 diff)
-
tags/6.4.0/vendor/multisafepay/php-sdk/composer.json (modified) (1 diff)
-
tags/6.4.0/vendor/multisafepay/php-sdk/src/Api/Transactions/Gateways.php (modified) (1 diff)
-
tags/6.4.0/vendor/multisafepay/php-sdk/src/Util/Version.php (modified) (1 diff)
-
tags/6.4.0/vendor/php-http/discovery/CHANGELOG.md (modified) (1 diff)
-
tags/6.4.0/vendor/php-http/discovery/composer.json (modified) (1 diff)
-
tags/6.4.0/vendor/php-http/discovery/src/NotFoundException.php (modified) (2 diffs)
-
tags/6.4.0/vendor/php-http/discovery/src/Psr17Factory.php (modified) (4 diffs)
-
tags/6.4.0/vendor/php-http/discovery/src/Psr17FactoryDiscovery.php (modified) (9 diffs)
-
tags/6.4.0/vendor/php-http/discovery/src/Psr18Client.php (modified) (1 diff)
-
tags/6.4.0/vendor/php-http/discovery/src/Psr18ClientDiscovery.php (modified) (3 diffs)
-
trunk/multisafepay.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (6 diffs)
-
trunk/src/PaymentMethods/Base/BasePaymentMethod.php (modified) (3 diffs)
-
trunk/src/PaymentMethods/Base/BasePaymentMethodBlocks.php (modified) (4 diffs)
-
trunk/src/Services/PaymentComponentService.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (6 diffs)
-
trunk/vendor/composer/installed.php (modified) (4 diffs)
-
trunk/vendor/multisafepay/php-sdk/CHANGELOG.md (modified) (1 diff)
-
trunk/vendor/multisafepay/php-sdk/composer.json (modified) (1 diff)
-
trunk/vendor/multisafepay/php-sdk/src/Api/Transactions/Gateways.php (modified) (1 diff)
-
trunk/vendor/multisafepay/php-sdk/src/Util/Version.php (modified) (1 diff)
-
trunk/vendor/php-http/discovery/CHANGELOG.md (modified) (1 diff)
-
trunk/vendor/php-http/discovery/composer.json (modified) (1 diff)
-
trunk/vendor/php-http/discovery/src/NotFoundException.php (modified) (2 diffs)
-
trunk/vendor/php-http/discovery/src/Psr17Factory.php (modified) (4 diffs)
-
trunk/vendor/php-http/discovery/src/Psr17FactoryDiscovery.php (modified) (9 diffs)
-
trunk/vendor/php-http/discovery/src/Psr18Client.php (modified) (1 diff)
-
trunk/vendor/php-http/discovery/src/Psr18ClientDiscovery.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multisafepay/tags/6.4.0/multisafepay.php
r3050467 r3072171 5 5 * Plugin URI: https://docs.multisafepay.com/docs/woocommerce 6 6 * Description: MultiSafepay Payment Plugin 7 * Version: 6. 3.17 * Version: 6.4.0 8 8 * Author: MultiSafepay 9 9 * Author URI: https://www.multisafepay.com … … 12 12 * License URI: http://www.gnu.org/licenses/gpl-3.0.html 13 13 * Requires at least: 6.0 14 * Tested up to: 6. 4.314 * Tested up to: 6.5.2 15 15 * WC requires at least: 6.0.0 16 * WC tested up to: 8. 6.116 * WC tested up to: 8.7.0 17 17 * Requires PHP: 7.3 18 18 * Text Domain: multisafepay … … 27 27 * Plugin version 28 28 */ 29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6. 3.1' );29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4.0' ); 30 30 31 31 /** -
multisafepay/tags/6.4.0/readme.txt
r3050467 r3072171 1 1 === MultiSafepay plugin for WooCommerce === 2 2 Contributors: multisafepayplugin 3 Tags: multisafepay, credit card, credit cards, gateway, payments, woocommerce, ideal, bancontact, klarna, sofort, giropay, sepa direct debit3 Tags: multisafepay, payment gateway, credit cards, ideal, bnpl 4 4 Requires at least: 6.0 5 Tested up to: 6. 4.35 Tested up to: 6.5.2 6 6 Requires PHP: 7.3 7 Stable tag: 6. 3.17 Stable tag: 6.4.0 8 8 License: MIT 9 9 … … 32 32 * Giropay 33 33 * iDEAL 34 * iDEAL+in3 34 35 * in3 35 36 * KBC/CBC … … 89 90 * Go to _Order Status_ tab and confirm the match between WooCommerce order statuses and MultiSafepay order statuses. Click on _Save changes_ button. 90 91 * Go to _Options_ tab and confirm the settings for each field. Click on _Save changes_ button. 91 * Navigate to _WooCommerce_ -> _Settings_ -> _Payments_. Click on the payment methods you would like to offer, check and set or confirm the settings for those been enable . Click on _Save changes_ button.92 * Navigate to _WooCommerce_ -> _Settings_ -> _Payments_. Click on the payment methods you would like to offer, check and set or confirm the settings for those been enabled. Click on _Save changes_ button. 92 93 93 94 … … 117 118 3. In "Order actions" panel; select the option "Email invoice / order details to customer". 118 119 4. Click on "Create" order button. 119 5. An email will be sen dedto the customer with the details of the order and a payment link to finish the order.120 5. An email will be sent to the customer with the details of the order and a payment link to finish the order. 120 121 6. The payment link will be available for the customer in their private account area, in "Orders" section. 121 122 … … 127 128 == Upgrade Notice == 128 129 129 = 6. 3.1=130 = 6.4.0 = 130 131 6.x.x is a major upgrade in which the MultiSafepay payment methods are registered dynamically via an API request to MultiSafepay. If you are upgrading from 5.X.X version, after the upgrade, please navigate to the MultiSafepay settings page, and to each one of the payment methods enabled in your account, and confirm the settings in each section are set up according to your preferences. 131 132 … … 143 144 144 145 == Changelog == 146 = Release Notes - WooCommerce 6.4.0 (Apr 17th, 2024) = 147 148 ### Added 149 + PLGWOOS-915: Add 'direct' transaction type for 'Bank Transfer' payment method 150 151 ### Fixed 152 + PLGWOOS-918: Fix overwriting the payment methods name in WooCommerce Blocks 153 + DAVAMS-747: Fix 'template_id' within the Payment Components 154 145 155 = Release Notes - WooCommerce 6.3.1 (Mar 13th, 2024) = 146 156 147 157 ### Fixed 148 + PLGWOOS-911: Fix initialisation or refreshing of the Payment Component when payment methods isassigned to specific country158 + PLGWOOS-911: Fix initialisation or refreshing of the Payment Component when payment methods are assigned to specific country 149 159 150 160 ### Changed -
multisafepay/tags/6.4.0/src/PaymentMethods/Base/BasePaymentMethod.php
r3048898 r3072171 31 31 public const APPLEPAY_TEST_MERCHANT_NAME = 'Example Merchant'; 32 32 33 public const DIRECT_PAYMENT_METHODS_WITHOUT_COMPONENTS = array( 34 'BANKTRANS', 35 ); 36 33 37 public const MULTISAFEPAY_COMPONENT_JS_URL = 'https://pay.multisafepay.com/sdk/components/v2/components.js'; 34 38 public const MULTISAFEPAY_COMPONENT_CSS_URL = 'https://pay.multisafepay.com/sdk/components/v2/components.css'; … … 165 169 */ 166 170 public function get_payment_method_type(): string { 167 if ( $this->is_payment_component_enabled() ) {171 if ( $this->is_payment_component_enabled() || (bool) $this->get_option( 'direct_transaction', '0' ) ) { 168 172 return self::TRANSACTION_TYPE_DIRECT; 169 173 } … … 431 435 } 432 436 437 if ( in_array( $this->get_payment_method_gateway_code(), self::DIRECT_PAYMENT_METHODS_WITHOUT_COMPONENTS, true ) ) { 438 $form_fields['direct_transaction'] = array( 439 'title' => __( 'Transaction Type', 'multisafepay' ), 440 'type' => 'select', 441 'options' => array( 442 '0' => 'Redirect', 443 '1' => 'Direct', 444 ), 445 'desc_tip' => __( 'If enabled, the consumer receives an e-mail with payment details, and no extra information is required during checkout.', 'multisafepay' ), 446 'default' => '0', 447 ); 448 } 449 433 450 if ( 'GOOGLEPAY' === $this->get_payment_method_gateway_code() ) { 434 451 $form_fields['use_direct_button'] = array( -
multisafepay/tags/6.4.0/src/PaymentMethods/Base/BasePaymentMethodBlocks.php
r3030100 r3072171 5 5 use Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType; 6 6 use MultiSafepay\Api\PaymentMethods\PaymentMethod; 7 use MultiSafepay\Exception\InvalidDataInitializationException; 7 8 use MultiSafepay\WooCommerce\Services\PaymentMethodService; 8 9 … … 32 33 * 33 34 * @return void 35 * @throws InvalidDataInitializationException 34 36 */ 35 37 public function initialize(): void { … … 40 42 $multisafepay_payment_methods = $payment_method_service->get_multisafepay_payment_methods_from_api(); 41 43 foreach ( $multisafepay_payment_methods as $multisafepay_payment_method ) { 42 $gateway = new BasePaymentMethod( new PaymentMethod( $multisafepay_payment_method ) ); 43 $this->settings = get_option( 'woocommerce_' . $gateway->get_payment_method_id() . '_settings', array() ); 44 if ( ( 'redirect' === $gateway->get_payment_method_type() ) && $gateway->is_available() ) { 45 $this->gateways[] = $gateway; 44 $woocommerce_payment_gateway = null; 45 if ( isset( $multisafepay_payment_method['type'] ) && ( 'coupon' === $multisafepay_payment_method['type'] ) ) { 46 $woocommerce_payment_gateway = new BaseGiftCardPaymentMethod( new PaymentMethod( $multisafepay_payment_method ) ); 47 } 48 if ( isset( $multisafepay_payment_method['type'] ) && ( 'payment-method' === $multisafepay_payment_method['type'] ) ) { 49 $woocommerce_payment_gateway = new BasePaymentMethod( new PaymentMethod( $multisafepay_payment_method ) ); 50 } 51 if ( ( 'redirect' === $woocommerce_payment_gateway->get_payment_method_type() ) && $woocommerce_payment_gateway->is_available() ) { 52 $this->gateways[] = $woocommerce_payment_gateway; 46 53 } 47 54 } … … 94 101 $payment_methods_data[] = array( 95 102 'id' => $gateway->get_payment_method_id(), 96 'title' => $gateway->get_ payment_method_title(),97 'description' => $gateway->get_ option( 'description'),103 'title' => $gateway->get_title(), 104 'description' => $gateway->get_description(), 98 105 ); 99 106 } -
multisafepay/tags/6.4.0/src/Services/PaymentComponentService.php
r3048898 r3072171 56 56 'country' => ( WC()->customer )->get_billing_country(), 57 57 ), 58 'template' => array( 59 'settings' => array( 60 'embed_mode' => true, 58 'payment_options' => array( 59 'template' => array( 60 'settings' => array( 61 'embed_mode' => 1, 62 ), 63 'merge' => true, 61 64 ), 62 ),63 'payment_options' => array(64 65 'settings' => array( 65 66 'connect' => array( … … 106 107 $payment_component_arguments = $this->get_payment_component_arguments( $woocommerce_payment_gateway ); 107 108 wp_send_json( $payment_component_arguments ); 108 109 109 } 110 110 } -
multisafepay/tags/6.4.0/vendor/composer/installed.json
r3050467 r3072171 3 3 { 4 4 "name": "multisafepay/php-sdk", 5 "version": "5.1 2.1",6 "version_normalized": "5.1 2.1.0",5 "version": "5.13.0", 6 "version_normalized": "5.13.0.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/MultiSafepay/php-sdk.git", 10 "reference": " 6cd526e1edd8e25863ca84a03f663a221cee25e4"11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/MultiSafepay/php-sdk/zipball/ 6cd526e1edd8e25863ca84a03f663a221cee25e4",15 "reference": " 6cd526e1edd8e25863ca84a03f663a221cee25e4",10 "reference": "b88fa079981d590a70275d528cf52d8fd07affab" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/MultiSafepay/php-sdk/zipball/b88fa079981d590a70275d528cf52d8fd07affab", 15 "reference": "b88fa079981d590a70275d528cf52d8fd07affab", 16 16 "shasum": "" 17 17 }, … … 38 38 "jschaedl/iban-validation": "Adds additional IBAN validation for \\MultiSafepay\\ValueObject\\IbanNumber" 39 39 }, 40 "time": "2024-0 3-11T10:51:31+00:00",40 "time": "2024-04-16T11:41:31+00:00", 41 41 "type": "library", 42 42 "installation-source": "dist", … … 53 53 "support": { 54 54 "issues": "https://github.com/MultiSafepay/php-sdk/issues", 55 "source": "https://github.com/MultiSafepay/php-sdk/tree/5.1 2.1"55 "source": "https://github.com/MultiSafepay/php-sdk/tree/5.13.0" 56 56 }, 57 57 "install-path": "../multisafepay/php-sdk" … … 140 140 { 141 141 "name": "php-http/discovery", 142 "version": "1.19. 2",143 "version_normalized": "1.19. 2.0",142 "version": "1.19.4", 143 "version_normalized": "1.19.4.0", 144 144 "source": { 145 145 "type": "git", 146 146 "url": "https://github.com/php-http/discovery.git", 147 "reference": " 61e1a1eb69c92741f5896d9e05fb8e9d7e8bb0cb"148 }, 149 "dist": { 150 "type": "zip", 151 "url": "https://api.github.com/repos/php-http/discovery/zipball/ 61e1a1eb69c92741f5896d9e05fb8e9d7e8bb0cb",152 "reference": " 61e1a1eb69c92741f5896d9e05fb8e9d7e8bb0cb",147 "reference": "0700efda8d7526335132360167315fdab3aeb599" 148 }, 149 "dist": { 150 "type": "zip", 151 "url": "https://api.github.com/repos/php-http/discovery/zipball/0700efda8d7526335132360167315fdab3aeb599", 152 "reference": "0700efda8d7526335132360167315fdab3aeb599", 153 153 "shasum": "" 154 154 }, … … 174 174 "php-http/message-factory": "^1.0", 175 175 "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3", 176 "symfony/phpunit-bridge": "^6.2" 177 }, 178 "time": "2023-11-30T16:49:05+00:00", 176 "sebastian/comparator": "^3.0.5 || ^4.0.8", 177 "symfony/phpunit-bridge": "^6.4.4 || ^7.0.1" 178 }, 179 "time": "2024-03-29T13:00:05+00:00", 179 180 "type": "composer-plugin", 180 181 "extra": { … … 215 216 "support": { 216 217 "issues": "https://github.com/php-http/discovery/issues", 217 "source": "https://github.com/php-http/discovery/tree/1.19. 2"218 "source": "https://github.com/php-http/discovery/tree/1.19.4" 218 219 }, 219 220 "install-path": "../php-http/discovery" -
multisafepay/tags/6.4.0/vendor/composer/installed.php
r3050467 r3072171 2 2 'root' => array( 3 3 'name' => 'multisafepay/woocommerce', 4 'pretty_version' => '6. 3.1',5 'version' => '6. 3.1.0',6 'reference' => 'e f5a8306f345bb83085e0e7957fd1780a9c73e38',4 'pretty_version' => '6.4.0', 5 'version' => '6.4.0.0', 6 'reference' => 'ecc911c2a5d20e186b653cbc98161133bba10bf0', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'multisafepay/php-sdk' => array( 14 'pretty_version' => '5.1 2.1',15 'version' => '5.1 2.1.0',16 'reference' => ' 6cd526e1edd8e25863ca84a03f663a221cee25e4',14 'pretty_version' => '5.13.0', 15 'version' => '5.13.0.0', 16 'reference' => 'b88fa079981d590a70275d528cf52d8fd07affab', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../multisafepay/php-sdk', … … 21 21 ), 22 22 'multisafepay/woocommerce' => array( 23 'pretty_version' => '6. 3.1',24 'version' => '6. 3.1.0',25 'reference' => 'e f5a8306f345bb83085e0e7957fd1780a9c73e38',23 'pretty_version' => '6.4.0', 24 'version' => '6.4.0.0', 25 'reference' => 'ecc911c2a5d20e186b653cbc98161133bba10bf0', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', … … 51 51 ), 52 52 'php-http/discovery' => array( 53 'pretty_version' => '1.19. 2',54 'version' => '1.19. 2.0',55 'reference' => ' 61e1a1eb69c92741f5896d9e05fb8e9d7e8bb0cb',53 'pretty_version' => '1.19.4', 54 'version' => '1.19.4.0', 55 'reference' => '0700efda8d7526335132360167315fdab3aeb599', 56 56 'type' => 'composer-plugin', 57 57 'install_path' => __DIR__ . '/../php-http/discovery', -
multisafepay/tags/6.4.0/vendor/multisafepay/php-sdk/CHANGELOG.md
r3050467 r3072171 6 6 7 7 ## [Unreleased] 8 9 ## [5.13.0] - 2024-04-16 10 ### Added 11 + PHPSDK-151: Update Gateways::SHOPPING_CART_REQUIRED_GATEWAYS adding 'BNPL_INST', 'IN3B2B', 'SANTANDER', 'ZINIA', 'ZINIA_IN3', 'BNPL_OB', 'BNPL_MF' gateways codes 8 12 9 13 ## [5.12.1] - 2024-03-11 -
multisafepay/tags/6.4.0/vendor/multisafepay/php-sdk/composer.json
r3050467 r3072171 4 4 "type": "library", 5 5 "license": "MIT", 6 "version": "5.1 2.1",6 "version": "5.13.0", 7 7 "require": { 8 8 "php": "^7.2|^8.0", -
multisafepay/tags/6.4.0/vendor/multisafepay/php-sdk/src/Api/Transactions/Gateways.php
r2927749 r3072171 20 20 'PAYAFTER', 21 21 'BNPL_INSTM', 22 'BNPL_INST', 23 'IN3B2B', 24 'SANTANDER', 25 'ZINIA', 26 'ZINIA_IN3', 27 'BNPL_OB', 28 'BNPL_MF', 22 29 ); 23 30 } -
multisafepay/tags/6.4.0/vendor/multisafepay/php-sdk/src/Util/Version.php
r3050467 r3072171 18 18 class Version 19 19 { 20 public const SDK_VERSION = '5.1 2.1';20 public const SDK_VERSION = '5.13.0'; 21 21 22 22 /** -
multisafepay/tags/6.4.0/vendor/php-http/discovery/CHANGELOG.md
r3030100 r3072171 1 1 # Change Log 2 2 3 ## 1.19.4 - 2024-03-29 4 5 - [#264](https://github.com/php-http/discovery/pull/264) - Do not report a general conflict with `sebastian/comparator` but make sure we install the correct version for our tests. 6 7 ## 1.19.3 - 2024-03-28 8 9 - [#261](https://github.com/php-http/discovery/pull/261) - explicitly mark nullable parameters as nullable (avoid deprecation in PHP 8.4) 10 3 11 ## 1.19.2 - 2023-11-30 4 12 5 - [#253](https://github.com/php-http/discovery/pull/253) - Symfony 7 dropped the deprecated PHP-HTTP `HttpClient` interface from their HTTP client, do not discover the version 7 client when looki g for the old interface.13 - [#253](https://github.com/php-http/discovery/pull/253) - Symfony 7 dropped the deprecated PHP-HTTP `HttpClient` interface from their HTTP client, do not discover the version 7 client when looking for the old interface. 6 14 7 15 ## 1.19.1 - 2023-07-11 -
multisafepay/tags/6.4.0/vendor/php-http/discovery/composer.json
r2927749 r3072171 29 29 "php-http/message-factory": "^1.0", 30 30 "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3", 31 "symfony/phpunit-bridge": "^6.2" 31 "symfony/phpunit-bridge": "^6.4.4 || ^7.0.1", 32 "sebastian/comparator": "^3.0.5 || ^4.0.8" 32 33 }, 33 34 "autoload": { -
multisafepay/tags/6.4.0/vendor/php-http/discovery/src/NotFoundException.php
r2476949 r3072171 2 2 3 3 namespace Http\Discovery; 4 5 use Http\Discovery\Exception\NotFoundException as RealNotFoundException; 4 6 5 7 /** … … 10 12 * @deprecated since since version 1.0, and will be removed in 2.0. Use {@link \Http\Discovery\Exception\NotFoundException} instead. 11 13 */ 12 final class NotFoundException extends \Http\Discovery\Exception\NotFoundException14 final class NotFoundException extends RealNotFoundException 13 15 { 14 16 } -
multisafepay/tags/6.4.0/vendor/php-http/discovery/src/Psr17Factory.php
r2927749 r3072171 50 50 51 51 public function __construct( 52 RequestFactoryInterface $requestFactory = null,53 ResponseFactoryInterface $responseFactory = null,54 ServerRequestFactoryInterface $serverRequestFactory = null,55 StreamFactoryInterface $streamFactory = null,56 UploadedFileFactoryInterface $uploadedFileFactory = null,57 UriFactoryInterface $uriFactory = null52 ?RequestFactoryInterface $requestFactory = null, 53 ?ResponseFactoryInterface $responseFactory = null, 54 ?ServerRequestFactoryInterface $serverRequestFactory = null, 55 ?StreamFactoryInterface $streamFactory = null, 56 ?UploadedFileFactoryInterface $uploadedFileFactory = null, 57 ?UriFactoryInterface $uriFactory = null 58 58 ) { 59 59 $this->requestFactory = $requestFactory; … … 99 99 } 100 100 101 public function createServerRequestFromGlobals( array $server = null, array $get = null, array $post = null, array $cookie = null, array $files = null,StreamInterface $body = null): ServerRequestInterface101 public function createServerRequestFromGlobals(?array $server = null, ?array $get = null, ?array $post = null, ?array $cookie = null, ?array $files = null, ?StreamInterface $body = null): ServerRequestInterface 102 102 { 103 103 $server = $server ?? $_SERVER; … … 135 135 } 136 136 137 public function createUploadedFile(StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null,string $clientMediaType = null): UploadedFileInterface137 public function createUploadedFile(StreamInterface $stream, ?int $size = null, int $error = \UPLOAD_ERR_OK, ?string $clientFilename = null, ?string $clientMediaType = null): UploadedFileInterface 138 138 { 139 139 $factory = $this->uploadedFileFactory ?? $this->setFactory(Psr17FactoryDiscovery::findUploadedFileFactory()); … … 149 149 } 150 150 151 public function createUriFromGlobals( array $server = null): UriInterface151 public function createUriFromGlobals(?array $server = null): UriInterface 152 152 { 153 153 return $this->buildUriFromGlobals($this->createUri(''), $server ?? $_SERVER); -
multisafepay/tags/6.4.0/vendor/php-http/discovery/src/Psr17FactoryDiscovery.php
r2476949 r3072171 4 4 5 5 use Http\Discovery\Exception\DiscoveryFailedException; 6 use Http\Discovery\Exception\NotFoundException as RealNotFoundException; 6 7 use Psr\Http\Message\RequestFactoryInterface; 7 8 use Psr\Http\Message\ResponseFactoryInterface; … … 20 21 private static function createException($type, Exception $e) 21 22 { 22 return new \Http\Discovery\Exception\NotFoundException(23 return new RealNotFoundException( 23 24 'No PSR-17 '.$type.' found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation', 24 25 0, … … 30 31 * @return RequestFactoryInterface 31 32 * 32 * @throws Exception\NotFoundException33 * @throws RealNotFoundException 33 34 */ 34 35 public static function findRequestFactory() … … 46 47 * @return ResponseFactoryInterface 47 48 * 48 * @throws Exception\NotFoundException49 * @throws RealNotFoundException 49 50 */ 50 51 public static function findResponseFactory() … … 62 63 * @return ServerRequestFactoryInterface 63 64 * 64 * @throws Exception\NotFoundException65 * @throws RealNotFoundException 65 66 */ 66 67 public static function findServerRequestFactory() … … 78 79 * @return StreamFactoryInterface 79 80 * 80 * @throws Exception\NotFoundException81 * @throws RealNotFoundException 81 82 */ 82 83 public static function findStreamFactory() … … 94 95 * @return UploadedFileFactoryInterface 95 96 * 96 * @throws Exception\NotFoundException97 * @throws RealNotFoundException 97 98 */ 98 99 public static function findUploadedFileFactory() … … 110 111 * @return UriFactoryInterface 111 112 * 112 * @throws Exception\NotFoundException113 * @throws RealNotFoundException 113 114 */ 114 115 public static function findUriFactory() … … 126 127 * @return UriFactoryInterface 127 128 * 128 * @throws Exception\NotFoundException129 * @throws RealNotFoundException 129 130 * 130 131 * @deprecated This will be removed in 2.0. Consider using the findUriFactory() method. -
multisafepay/tags/6.4.0/vendor/php-http/discovery/src/Psr18Client.php
r2927749 r3072171 26 26 27 27 public function __construct( 28 ClientInterface $client = null,29 RequestFactoryInterface $requestFactory = null,30 ResponseFactoryInterface $responseFactory = null,31 ServerRequestFactoryInterface $serverRequestFactory = null,32 StreamFactoryInterface $streamFactory = null,33 UploadedFileFactoryInterface $uploadedFileFactory = null,34 UriFactoryInterface $uriFactory = null28 ?ClientInterface $client = null, 29 ?RequestFactoryInterface $requestFactory = null, 30 ?ResponseFactoryInterface $responseFactory = null, 31 ?ServerRequestFactoryInterface $serverRequestFactory = null, 32 ?StreamFactoryInterface $streamFactory = null, 33 ?UploadedFileFactoryInterface $uploadedFileFactory = null, 34 ?UriFactoryInterface $uriFactory = null 35 35 ) { 36 36 parent::__construct($requestFactory, $responseFactory, $serverRequestFactory, $streamFactory, $uploadedFileFactory, $uriFactory); -
multisafepay/tags/6.4.0/vendor/php-http/discovery/src/Psr18ClientDiscovery.php
r2730349 r3072171 4 4 5 5 use Http\Discovery\Exception\DiscoveryFailedException; 6 use Http\Discovery\Exception\NotFoundException as RealNotFoundException; 6 7 use Psr\Http\Client\ClientInterface; 7 8 … … 18 19 * @return ClientInterface 19 20 * 20 * @throws Exception\NotFoundException21 * @throws RealNotFoundException 21 22 */ 22 23 public static function find() … … 25 26 $client = static::findOneByType(ClientInterface::class); 26 27 } catch (DiscoveryFailedException $e) { 27 throw new \Http\Discovery\Exception\NotFoundException('No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle7-adapter".', 0, $e);28 throw new RealNotFoundException('No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle7-adapter".', 0, $e); 28 29 } 29 30 -
multisafepay/trunk/multisafepay.php
r3050467 r3072171 5 5 * Plugin URI: https://docs.multisafepay.com/docs/woocommerce 6 6 * Description: MultiSafepay Payment Plugin 7 * Version: 6. 3.17 * Version: 6.4.0 8 8 * Author: MultiSafepay 9 9 * Author URI: https://www.multisafepay.com … … 12 12 * License URI: http://www.gnu.org/licenses/gpl-3.0.html 13 13 * Requires at least: 6.0 14 * Tested up to: 6. 4.314 * Tested up to: 6.5.2 15 15 * WC requires at least: 6.0.0 16 * WC tested up to: 8. 6.116 * WC tested up to: 8.7.0 17 17 * Requires PHP: 7.3 18 18 * Text Domain: multisafepay … … 27 27 * Plugin version 28 28 */ 29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6. 3.1' );29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4.0' ); 30 30 31 31 /** -
multisafepay/trunk/readme.txt
r3050467 r3072171 1 1 === MultiSafepay plugin for WooCommerce === 2 2 Contributors: multisafepayplugin 3 Tags: multisafepay, credit card, credit cards, gateway, payments, woocommerce, ideal, bancontact, klarna, sofort, giropay, sepa direct debit3 Tags: multisafepay, payment gateway, credit cards, ideal, bnpl 4 4 Requires at least: 6.0 5 Tested up to: 6. 4.35 Tested up to: 6.5.2 6 6 Requires PHP: 7.3 7 Stable tag: 6. 3.17 Stable tag: 6.4.0 8 8 License: MIT 9 9 … … 32 32 * Giropay 33 33 * iDEAL 34 * iDEAL+in3 34 35 * in3 35 36 * KBC/CBC … … 89 90 * Go to _Order Status_ tab and confirm the match between WooCommerce order statuses and MultiSafepay order statuses. Click on _Save changes_ button. 90 91 * Go to _Options_ tab and confirm the settings for each field. Click on _Save changes_ button. 91 * Navigate to _WooCommerce_ -> _Settings_ -> _Payments_. Click on the payment methods you would like to offer, check and set or confirm the settings for those been enable . Click on _Save changes_ button.92 * Navigate to _WooCommerce_ -> _Settings_ -> _Payments_. Click on the payment methods you would like to offer, check and set or confirm the settings for those been enabled. Click on _Save changes_ button. 92 93 93 94 … … 117 118 3. In "Order actions" panel; select the option "Email invoice / order details to customer". 118 119 4. Click on "Create" order button. 119 5. An email will be sen dedto the customer with the details of the order and a payment link to finish the order.120 5. An email will be sent to the customer with the details of the order and a payment link to finish the order. 120 121 6. The payment link will be available for the customer in their private account area, in "Orders" section. 121 122 … … 127 128 == Upgrade Notice == 128 129 129 = 6. 3.1=130 = 6.4.0 = 130 131 6.x.x is a major upgrade in which the MultiSafepay payment methods are registered dynamically via an API request to MultiSafepay. If you are upgrading from 5.X.X version, after the upgrade, please navigate to the MultiSafepay settings page, and to each one of the payment methods enabled in your account, and confirm the settings in each section are set up according to your preferences. 131 132 … … 143 144 144 145 == Changelog == 146 = Release Notes - WooCommerce 6.4.0 (Apr 17th, 2024) = 147 148 ### Added 149 + PLGWOOS-915: Add 'direct' transaction type for 'Bank Transfer' payment method 150 151 ### Fixed 152 + PLGWOOS-918: Fix overwriting the payment methods name in WooCommerce Blocks 153 + DAVAMS-747: Fix 'template_id' within the Payment Components 154 145 155 = Release Notes - WooCommerce 6.3.1 (Mar 13th, 2024) = 146 156 147 157 ### Fixed 148 + PLGWOOS-911: Fix initialisation or refreshing of the Payment Component when payment methods isassigned to specific country158 + PLGWOOS-911: Fix initialisation or refreshing of the Payment Component when payment methods are assigned to specific country 149 159 150 160 ### Changed -
multisafepay/trunk/src/PaymentMethods/Base/BasePaymentMethod.php
r3048898 r3072171 31 31 public const APPLEPAY_TEST_MERCHANT_NAME = 'Example Merchant'; 32 32 33 public const DIRECT_PAYMENT_METHODS_WITHOUT_COMPONENTS = array( 34 'BANKTRANS', 35 ); 36 33 37 public const MULTISAFEPAY_COMPONENT_JS_URL = 'https://pay.multisafepay.com/sdk/components/v2/components.js'; 34 38 public const MULTISAFEPAY_COMPONENT_CSS_URL = 'https://pay.multisafepay.com/sdk/components/v2/components.css'; … … 165 169 */ 166 170 public function get_payment_method_type(): string { 167 if ( $this->is_payment_component_enabled() ) {171 if ( $this->is_payment_component_enabled() || (bool) $this->get_option( 'direct_transaction', '0' ) ) { 168 172 return self::TRANSACTION_TYPE_DIRECT; 169 173 } … … 431 435 } 432 436 437 if ( in_array( $this->get_payment_method_gateway_code(), self::DIRECT_PAYMENT_METHODS_WITHOUT_COMPONENTS, true ) ) { 438 $form_fields['direct_transaction'] = array( 439 'title' => __( 'Transaction Type', 'multisafepay' ), 440 'type' => 'select', 441 'options' => array( 442 '0' => 'Redirect', 443 '1' => 'Direct', 444 ), 445 'desc_tip' => __( 'If enabled, the consumer receives an e-mail with payment details, and no extra information is required during checkout.', 'multisafepay' ), 446 'default' => '0', 447 ); 448 } 449 433 450 if ( 'GOOGLEPAY' === $this->get_payment_method_gateway_code() ) { 434 451 $form_fields['use_direct_button'] = array( -
multisafepay/trunk/src/PaymentMethods/Base/BasePaymentMethodBlocks.php
r3030100 r3072171 5 5 use Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType; 6 6 use MultiSafepay\Api\PaymentMethods\PaymentMethod; 7 use MultiSafepay\Exception\InvalidDataInitializationException; 7 8 use MultiSafepay\WooCommerce\Services\PaymentMethodService; 8 9 … … 32 33 * 33 34 * @return void 35 * @throws InvalidDataInitializationException 34 36 */ 35 37 public function initialize(): void { … … 40 42 $multisafepay_payment_methods = $payment_method_service->get_multisafepay_payment_methods_from_api(); 41 43 foreach ( $multisafepay_payment_methods as $multisafepay_payment_method ) { 42 $gateway = new BasePaymentMethod( new PaymentMethod( $multisafepay_payment_method ) ); 43 $this->settings = get_option( 'woocommerce_' . $gateway->get_payment_method_id() . '_settings', array() ); 44 if ( ( 'redirect' === $gateway->get_payment_method_type() ) && $gateway->is_available() ) { 45 $this->gateways[] = $gateway; 44 $woocommerce_payment_gateway = null; 45 if ( isset( $multisafepay_payment_method['type'] ) && ( 'coupon' === $multisafepay_payment_method['type'] ) ) { 46 $woocommerce_payment_gateway = new BaseGiftCardPaymentMethod( new PaymentMethod( $multisafepay_payment_method ) ); 47 } 48 if ( isset( $multisafepay_payment_method['type'] ) && ( 'payment-method' === $multisafepay_payment_method['type'] ) ) { 49 $woocommerce_payment_gateway = new BasePaymentMethod( new PaymentMethod( $multisafepay_payment_method ) ); 50 } 51 if ( ( 'redirect' === $woocommerce_payment_gateway->get_payment_method_type() ) && $woocommerce_payment_gateway->is_available() ) { 52 $this->gateways[] = $woocommerce_payment_gateway; 46 53 } 47 54 } … … 94 101 $payment_methods_data[] = array( 95 102 'id' => $gateway->get_payment_method_id(), 96 'title' => $gateway->get_ payment_method_title(),97 'description' => $gateway->get_ option( 'description'),103 'title' => $gateway->get_title(), 104 'description' => $gateway->get_description(), 98 105 ); 99 106 } -
multisafepay/trunk/src/Services/PaymentComponentService.php
r3048898 r3072171 56 56 'country' => ( WC()->customer )->get_billing_country(), 57 57 ), 58 'template' => array( 59 'settings' => array( 60 'embed_mode' => true, 58 'payment_options' => array( 59 'template' => array( 60 'settings' => array( 61 'embed_mode' => 1, 62 ), 63 'merge' => true, 61 64 ), 62 ),63 'payment_options' => array(64 65 'settings' => array( 65 66 'connect' => array( … … 106 107 $payment_component_arguments = $this->get_payment_component_arguments( $woocommerce_payment_gateway ); 107 108 wp_send_json( $payment_component_arguments ); 108 109 109 } 110 110 } -
multisafepay/trunk/vendor/composer/installed.json
r3050467 r3072171 3 3 { 4 4 "name": "multisafepay/php-sdk", 5 "version": "5.1 2.1",6 "version_normalized": "5.1 2.1.0",5 "version": "5.13.0", 6 "version_normalized": "5.13.0.0", 7 7 "source": { 8 8 "type": "git", 9 9 "url": "https://github.com/MultiSafepay/php-sdk.git", 10 "reference": " 6cd526e1edd8e25863ca84a03f663a221cee25e4"11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/MultiSafepay/php-sdk/zipball/ 6cd526e1edd8e25863ca84a03f663a221cee25e4",15 "reference": " 6cd526e1edd8e25863ca84a03f663a221cee25e4",10 "reference": "b88fa079981d590a70275d528cf52d8fd07affab" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/MultiSafepay/php-sdk/zipball/b88fa079981d590a70275d528cf52d8fd07affab", 15 "reference": "b88fa079981d590a70275d528cf52d8fd07affab", 16 16 "shasum": "" 17 17 }, … … 38 38 "jschaedl/iban-validation": "Adds additional IBAN validation for \\MultiSafepay\\ValueObject\\IbanNumber" 39 39 }, 40 "time": "2024-0 3-11T10:51:31+00:00",40 "time": "2024-04-16T11:41:31+00:00", 41 41 "type": "library", 42 42 "installation-source": "dist", … … 53 53 "support": { 54 54 "issues": "https://github.com/MultiSafepay/php-sdk/issues", 55 "source": "https://github.com/MultiSafepay/php-sdk/tree/5.1 2.1"55 "source": "https://github.com/MultiSafepay/php-sdk/tree/5.13.0" 56 56 }, 57 57 "install-path": "../multisafepay/php-sdk" … … 140 140 { 141 141 "name": "php-http/discovery", 142 "version": "1.19. 2",143 "version_normalized": "1.19. 2.0",142 "version": "1.19.4", 143 "version_normalized": "1.19.4.0", 144 144 "source": { 145 145 "type": "git", 146 146 "url": "https://github.com/php-http/discovery.git", 147 "reference": " 61e1a1eb69c92741f5896d9e05fb8e9d7e8bb0cb"148 }, 149 "dist": { 150 "type": "zip", 151 "url": "https://api.github.com/repos/php-http/discovery/zipball/ 61e1a1eb69c92741f5896d9e05fb8e9d7e8bb0cb",152 "reference": " 61e1a1eb69c92741f5896d9e05fb8e9d7e8bb0cb",147 "reference": "0700efda8d7526335132360167315fdab3aeb599" 148 }, 149 "dist": { 150 "type": "zip", 151 "url": "https://api.github.com/repos/php-http/discovery/zipball/0700efda8d7526335132360167315fdab3aeb599", 152 "reference": "0700efda8d7526335132360167315fdab3aeb599", 153 153 "shasum": "" 154 154 }, … … 174 174 "php-http/message-factory": "^1.0", 175 175 "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3", 176 "symfony/phpunit-bridge": "^6.2" 177 }, 178 "time": "2023-11-30T16:49:05+00:00", 176 "sebastian/comparator": "^3.0.5 || ^4.0.8", 177 "symfony/phpunit-bridge": "^6.4.4 || ^7.0.1" 178 }, 179 "time": "2024-03-29T13:00:05+00:00", 179 180 "type": "composer-plugin", 180 181 "extra": { … … 215 216 "support": { 216 217 "issues": "https://github.com/php-http/discovery/issues", 217 "source": "https://github.com/php-http/discovery/tree/1.19. 2"218 "source": "https://github.com/php-http/discovery/tree/1.19.4" 218 219 }, 219 220 "install-path": "../php-http/discovery" -
multisafepay/trunk/vendor/composer/installed.php
r3050467 r3072171 2 2 'root' => array( 3 3 'name' => 'multisafepay/woocommerce', 4 'pretty_version' => '6. 3.1',5 'version' => '6. 3.1.0',6 'reference' => 'e f5a8306f345bb83085e0e7957fd1780a9c73e38',4 'pretty_version' => '6.4.0', 5 'version' => '6.4.0.0', 6 'reference' => 'ecc911c2a5d20e186b653cbc98161133bba10bf0', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'multisafepay/php-sdk' => array( 14 'pretty_version' => '5.1 2.1',15 'version' => '5.1 2.1.0',16 'reference' => ' 6cd526e1edd8e25863ca84a03f663a221cee25e4',14 'pretty_version' => '5.13.0', 15 'version' => '5.13.0.0', 16 'reference' => 'b88fa079981d590a70275d528cf52d8fd07affab', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../multisafepay/php-sdk', … … 21 21 ), 22 22 'multisafepay/woocommerce' => array( 23 'pretty_version' => '6. 3.1',24 'version' => '6. 3.1.0',25 'reference' => 'e f5a8306f345bb83085e0e7957fd1780a9c73e38',23 'pretty_version' => '6.4.0', 24 'version' => '6.4.0.0', 25 'reference' => 'ecc911c2a5d20e186b653cbc98161133bba10bf0', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', … … 51 51 ), 52 52 'php-http/discovery' => array( 53 'pretty_version' => '1.19. 2',54 'version' => '1.19. 2.0',55 'reference' => ' 61e1a1eb69c92741f5896d9e05fb8e9d7e8bb0cb',53 'pretty_version' => '1.19.4', 54 'version' => '1.19.4.0', 55 'reference' => '0700efda8d7526335132360167315fdab3aeb599', 56 56 'type' => 'composer-plugin', 57 57 'install_path' => __DIR__ . '/../php-http/discovery', -
multisafepay/trunk/vendor/multisafepay/php-sdk/CHANGELOG.md
r3050467 r3072171 6 6 7 7 ## [Unreleased] 8 9 ## [5.13.0] - 2024-04-16 10 ### Added 11 + PHPSDK-151: Update Gateways::SHOPPING_CART_REQUIRED_GATEWAYS adding 'BNPL_INST', 'IN3B2B', 'SANTANDER', 'ZINIA', 'ZINIA_IN3', 'BNPL_OB', 'BNPL_MF' gateways codes 8 12 9 13 ## [5.12.1] - 2024-03-11 -
multisafepay/trunk/vendor/multisafepay/php-sdk/composer.json
r3050467 r3072171 4 4 "type": "library", 5 5 "license": "MIT", 6 "version": "5.1 2.1",6 "version": "5.13.0", 7 7 "require": { 8 8 "php": "^7.2|^8.0", -
multisafepay/trunk/vendor/multisafepay/php-sdk/src/Api/Transactions/Gateways.php
r2927749 r3072171 20 20 'PAYAFTER', 21 21 'BNPL_INSTM', 22 'BNPL_INST', 23 'IN3B2B', 24 'SANTANDER', 25 'ZINIA', 26 'ZINIA_IN3', 27 'BNPL_OB', 28 'BNPL_MF', 22 29 ); 23 30 } -
multisafepay/trunk/vendor/multisafepay/php-sdk/src/Util/Version.php
r3050467 r3072171 18 18 class Version 19 19 { 20 public const SDK_VERSION = '5.1 2.1';20 public const SDK_VERSION = '5.13.0'; 21 21 22 22 /** -
multisafepay/trunk/vendor/php-http/discovery/CHANGELOG.md
r3030100 r3072171 1 1 # Change Log 2 2 3 ## 1.19.4 - 2024-03-29 4 5 - [#264](https://github.com/php-http/discovery/pull/264) - Do not report a general conflict with `sebastian/comparator` but make sure we install the correct version for our tests. 6 7 ## 1.19.3 - 2024-03-28 8 9 - [#261](https://github.com/php-http/discovery/pull/261) - explicitly mark nullable parameters as nullable (avoid deprecation in PHP 8.4) 10 3 11 ## 1.19.2 - 2023-11-30 4 12 5 - [#253](https://github.com/php-http/discovery/pull/253) - Symfony 7 dropped the deprecated PHP-HTTP `HttpClient` interface from their HTTP client, do not discover the version 7 client when looki g for the old interface.13 - [#253](https://github.com/php-http/discovery/pull/253) - Symfony 7 dropped the deprecated PHP-HTTP `HttpClient` interface from their HTTP client, do not discover the version 7 client when looking for the old interface. 6 14 7 15 ## 1.19.1 - 2023-07-11 -
multisafepay/trunk/vendor/php-http/discovery/composer.json
r2927749 r3072171 29 29 "php-http/message-factory": "^1.0", 30 30 "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3", 31 "symfony/phpunit-bridge": "^6.2" 31 "symfony/phpunit-bridge": "^6.4.4 || ^7.0.1", 32 "sebastian/comparator": "^3.0.5 || ^4.0.8" 32 33 }, 33 34 "autoload": { -
multisafepay/trunk/vendor/php-http/discovery/src/NotFoundException.php
r2476949 r3072171 2 2 3 3 namespace Http\Discovery; 4 5 use Http\Discovery\Exception\NotFoundException as RealNotFoundException; 4 6 5 7 /** … … 10 12 * @deprecated since since version 1.0, and will be removed in 2.0. Use {@link \Http\Discovery\Exception\NotFoundException} instead. 11 13 */ 12 final class NotFoundException extends \Http\Discovery\Exception\NotFoundException14 final class NotFoundException extends RealNotFoundException 13 15 { 14 16 } -
multisafepay/trunk/vendor/php-http/discovery/src/Psr17Factory.php
r2927749 r3072171 50 50 51 51 public function __construct( 52 RequestFactoryInterface $requestFactory = null,53 ResponseFactoryInterface $responseFactory = null,54 ServerRequestFactoryInterface $serverRequestFactory = null,55 StreamFactoryInterface $streamFactory = null,56 UploadedFileFactoryInterface $uploadedFileFactory = null,57 UriFactoryInterface $uriFactory = null52 ?RequestFactoryInterface $requestFactory = null, 53 ?ResponseFactoryInterface $responseFactory = null, 54 ?ServerRequestFactoryInterface $serverRequestFactory = null, 55 ?StreamFactoryInterface $streamFactory = null, 56 ?UploadedFileFactoryInterface $uploadedFileFactory = null, 57 ?UriFactoryInterface $uriFactory = null 58 58 ) { 59 59 $this->requestFactory = $requestFactory; … … 99 99 } 100 100 101 public function createServerRequestFromGlobals( array $server = null, array $get = null, array $post = null, array $cookie = null, array $files = null,StreamInterface $body = null): ServerRequestInterface101 public function createServerRequestFromGlobals(?array $server = null, ?array $get = null, ?array $post = null, ?array $cookie = null, ?array $files = null, ?StreamInterface $body = null): ServerRequestInterface 102 102 { 103 103 $server = $server ?? $_SERVER; … … 135 135 } 136 136 137 public function createUploadedFile(StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null,string $clientMediaType = null): UploadedFileInterface137 public function createUploadedFile(StreamInterface $stream, ?int $size = null, int $error = \UPLOAD_ERR_OK, ?string $clientFilename = null, ?string $clientMediaType = null): UploadedFileInterface 138 138 { 139 139 $factory = $this->uploadedFileFactory ?? $this->setFactory(Psr17FactoryDiscovery::findUploadedFileFactory()); … … 149 149 } 150 150 151 public function createUriFromGlobals( array $server = null): UriInterface151 public function createUriFromGlobals(?array $server = null): UriInterface 152 152 { 153 153 return $this->buildUriFromGlobals($this->createUri(''), $server ?? $_SERVER); -
multisafepay/trunk/vendor/php-http/discovery/src/Psr17FactoryDiscovery.php
r2476949 r3072171 4 4 5 5 use Http\Discovery\Exception\DiscoveryFailedException; 6 use Http\Discovery\Exception\NotFoundException as RealNotFoundException; 6 7 use Psr\Http\Message\RequestFactoryInterface; 7 8 use Psr\Http\Message\ResponseFactoryInterface; … … 20 21 private static function createException($type, Exception $e) 21 22 { 22 return new \Http\Discovery\Exception\NotFoundException(23 return new RealNotFoundException( 23 24 'No PSR-17 '.$type.' found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation', 24 25 0, … … 30 31 * @return RequestFactoryInterface 31 32 * 32 * @throws Exception\NotFoundException33 * @throws RealNotFoundException 33 34 */ 34 35 public static function findRequestFactory() … … 46 47 * @return ResponseFactoryInterface 47 48 * 48 * @throws Exception\NotFoundException49 * @throws RealNotFoundException 49 50 */ 50 51 public static function findResponseFactory() … … 62 63 * @return ServerRequestFactoryInterface 63 64 * 64 * @throws Exception\NotFoundException65 * @throws RealNotFoundException 65 66 */ 66 67 public static function findServerRequestFactory() … … 78 79 * @return StreamFactoryInterface 79 80 * 80 * @throws Exception\NotFoundException81 * @throws RealNotFoundException 81 82 */ 82 83 public static function findStreamFactory() … … 94 95 * @return UploadedFileFactoryInterface 95 96 * 96 * @throws Exception\NotFoundException97 * @throws RealNotFoundException 97 98 */ 98 99 public static function findUploadedFileFactory() … … 110 111 * @return UriFactoryInterface 111 112 * 112 * @throws Exception\NotFoundException113 * @throws RealNotFoundException 113 114 */ 114 115 public static function findUriFactory() … … 126 127 * @return UriFactoryInterface 127 128 * 128 * @throws Exception\NotFoundException129 * @throws RealNotFoundException 129 130 * 130 131 * @deprecated This will be removed in 2.0. Consider using the findUriFactory() method. -
multisafepay/trunk/vendor/php-http/discovery/src/Psr18Client.php
r2927749 r3072171 26 26 27 27 public function __construct( 28 ClientInterface $client = null,29 RequestFactoryInterface $requestFactory = null,30 ResponseFactoryInterface $responseFactory = null,31 ServerRequestFactoryInterface $serverRequestFactory = null,32 StreamFactoryInterface $streamFactory = null,33 UploadedFileFactoryInterface $uploadedFileFactory = null,34 UriFactoryInterface $uriFactory = null28 ?ClientInterface $client = null, 29 ?RequestFactoryInterface $requestFactory = null, 30 ?ResponseFactoryInterface $responseFactory = null, 31 ?ServerRequestFactoryInterface $serverRequestFactory = null, 32 ?StreamFactoryInterface $streamFactory = null, 33 ?UploadedFileFactoryInterface $uploadedFileFactory = null, 34 ?UriFactoryInterface $uriFactory = null 35 35 ) { 36 36 parent::__construct($requestFactory, $responseFactory, $serverRequestFactory, $streamFactory, $uploadedFileFactory, $uriFactory); -
multisafepay/trunk/vendor/php-http/discovery/src/Psr18ClientDiscovery.php
r2730349 r3072171 4 4 5 5 use Http\Discovery\Exception\DiscoveryFailedException; 6 use Http\Discovery\Exception\NotFoundException as RealNotFoundException; 6 7 use Psr\Http\Client\ClientInterface; 7 8 … … 18 19 * @return ClientInterface 19 20 * 20 * @throws Exception\NotFoundException21 * @throws RealNotFoundException 21 22 */ 22 23 public static function find() … … 25 26 $client = static::findOneByType(ClientInterface::class); 26 27 } catch (DiscoveryFailedException $e) { 27 throw new \Http\Discovery\Exception\NotFoundException('No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle7-adapter".', 0, $e);28 throw new RealNotFoundException('No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle7-adapter".', 0, $e); 28 29 } 29 30
Note: See TracChangeset
for help on using the changeset viewer.