Plugin Directory

Changeset 3072171


Ignore:
Timestamp:
04/17/2024 08:15:31 AM (2 years ago)
Author:
multisafepayplugin
Message:

Update to version 6.4.0 from GitHub

Location:
multisafepay
Files:
36 edited
1 copied

Legend:

Unmodified
Added
Removed
  • multisafepay/tags/6.4.0/multisafepay.php

    r3050467 r3072171  
    55 * Plugin URI:              https://docs.multisafepay.com/docs/woocommerce
    66 * Description:             MultiSafepay Payment Plugin
    7  * Version:                 6.3.1
     7 * Version:                 6.4.0
    88 * Author:                  MultiSafepay
    99 * Author URI:              https://www.multisafepay.com
     
    1212 * License URI:             http://www.gnu.org/licenses/gpl-3.0.html
    1313 * Requires at least:       6.0
    14  * Tested up to:            6.4.3
     14 * Tested up to:            6.5.2
    1515 * WC requires at least:    6.0.0
    16  * WC tested up to:         8.6.1
     16 * WC tested up to:         8.7.0
    1717 * Requires PHP:            7.3
    1818 * Text Domain:             multisafepay
     
    2727 * Plugin version
    2828 */
    29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.3.1' );
     29define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4.0' );
    3030
    3131/**
  • multisafepay/tags/6.4.0/readme.txt

    r3050467 r3072171  
    11=== MultiSafepay plugin for WooCommerce ===
    22Contributors: multisafepayplugin
    3 Tags: multisafepay, credit card, credit cards, gateway, payments, woocommerce, ideal, bancontact, klarna, sofort, giropay, sepa direct debit
     3Tags: multisafepay, payment gateway, credit cards, ideal, bnpl
    44Requires at least: 6.0
    5 Tested up to: 6.4.3
     5Tested up to: 6.5.2
    66Requires PHP: 7.3
    7 Stable tag: 6.3.1
     7Stable tag: 6.4.0
    88License: MIT
    99
     
    3232* Giropay
    3333* iDEAL
     34* iDEAL+in3
    3435* in3
    3536* KBC/CBC
     
    8990* Go to _Order Status_ tab and confirm the match between WooCommerce order statuses and MultiSafepay order statuses. Click on _Save changes_ button.
    9091* 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.
    9293
    9394
     
    1171183. In "Order actions" panel; select the option "Email invoice / order details to customer".
    1181194. Click on "Create" order button.
    119 5. An email will be sended to the customer with the details of the order and a payment link to finish the order.
     1205. An email will be sent to the customer with the details of the order and a payment link to finish the order.
    1201216. The payment link will be available for the customer in their private account area, in "Orders" section.
    121122
     
    127128== Upgrade Notice ==
    128129
    129 = 6.3.1 =
     130= 6.4.0 =
    1301316.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.
    131132
     
    143144
    144145== 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
    145155= Release Notes - WooCommerce 6.3.1 (Mar 13th, 2024) =
    146156
    147157### Fixed
    148 + PLGWOOS-911: Fix initialisation or refreshing of the Payment Component when payment methods is assigned to specific country
     158+ PLGWOOS-911: Fix initialisation or refreshing of the Payment Component when payment methods are assigned to specific country
    149159
    150160### Changed
  • multisafepay/tags/6.4.0/src/PaymentMethods/Base/BasePaymentMethod.php

    r3048898 r3072171  
    3131    public const APPLEPAY_TEST_MERCHANT_NAME  = 'Example Merchant';
    3232
     33    public const DIRECT_PAYMENT_METHODS_WITHOUT_COMPONENTS = array(
     34        'BANKTRANS',
     35    );
     36
    3337    public const MULTISAFEPAY_COMPONENT_JS_URL  = 'https://pay.multisafepay.com/sdk/components/v2/components.js';
    3438    public const MULTISAFEPAY_COMPONENT_CSS_URL = 'https://pay.multisafepay.com/sdk/components/v2/components.css';
     
    165169     */
    166170    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' ) ) {
    168172            return self::TRANSACTION_TYPE_DIRECT;
    169173        }
     
    431435        }
    432436
     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
    433450        if ( 'GOOGLEPAY' === $this->get_payment_method_gateway_code() ) {
    434451            $form_fields['use_direct_button'] = array(
  • multisafepay/tags/6.4.0/src/PaymentMethods/Base/BasePaymentMethodBlocks.php

    r3030100 r3072171  
    55use Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType;
    66use MultiSafepay\Api\PaymentMethods\PaymentMethod;
     7use MultiSafepay\Exception\InvalidDataInitializationException;
    78use MultiSafepay\WooCommerce\Services\PaymentMethodService;
    89
     
    3233     *
    3334     * @return void
     35     * @throws InvalidDataInitializationException
    3436     */
    3537    public function initialize(): void {
     
    4042            $multisafepay_payment_methods = $payment_method_service->get_multisafepay_payment_methods_from_api();
    4143            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;
    4653                }
    4754            }
     
    94101            $payment_methods_data[] = array(
    95102                '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(),
    98105            );
    99106        }
  • multisafepay/tags/6.4.0/src/Services/PaymentComponentService.php

    r3048898 r3072171  
    5656                    'country' => ( WC()->customer )->get_billing_country(),
    5757                ),
    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,
    6164                    ),
    62                 ),
    63                 'payment_options' => array(
    6465                    'settings' => array(
    6566                        'connect' => array(
     
    106107        $payment_component_arguments = $this->get_payment_component_arguments( $woocommerce_payment_gateway );
    107108        wp_send_json( $payment_component_arguments );
    108 
    109109    }
    110110}
  • multisafepay/tags/6.4.0/vendor/composer/installed.json

    r3050467 r3072171  
    33        {
    44            "name": "multisafepay/php-sdk",
    5             "version": "5.12.1",
    6             "version_normalized": "5.12.1.0",
     5            "version": "5.13.0",
     6            "version_normalized": "5.13.0.0",
    77            "source": {
    88                "type": "git",
    99                "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",
    1616                "shasum": ""
    1717            },
     
    3838                "jschaedl/iban-validation": "Adds additional IBAN validation for \\MultiSafepay\\ValueObject\\IbanNumber"
    3939            },
    40             "time": "2024-03-11T10:51:31+00:00",
     40            "time": "2024-04-16T11:41:31+00:00",
    4141            "type": "library",
    4242            "installation-source": "dist",
     
    5353            "support": {
    5454                "issues": "https://github.com/MultiSafepay/php-sdk/issues",
    55                 "source": "https://github.com/MultiSafepay/php-sdk/tree/5.12.1"
     55                "source": "https://github.com/MultiSafepay/php-sdk/tree/5.13.0"
    5656            },
    5757            "install-path": "../multisafepay/php-sdk"
     
    140140        {
    141141            "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",
    144144            "source": {
    145145                "type": "git",
    146146                "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",
    153153                "shasum": ""
    154154            },
     
    174174                "php-http/message-factory": "^1.0",
    175175                "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",
    179180            "type": "composer-plugin",
    180181            "extra": {
     
    215216            "support": {
    216217                "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"
    218219            },
    219220            "install-path": "../php-http/discovery"
  • multisafepay/tags/6.4.0/vendor/composer/installed.php

    r3050467 r3072171  
    22    'root' => array(
    33        'name' => 'multisafepay/woocommerce',
    4         'pretty_version' => '6.3.1',
    5         'version' => '6.3.1.0',
    6         'reference' => 'ef5a8306f345bb83085e0e7957fd1780a9c73e38',
     4        'pretty_version' => '6.4.0',
     5        'version' => '6.4.0.0',
     6        'reference' => 'ecc911c2a5d20e186b653cbc98161133bba10bf0',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'multisafepay/php-sdk' => array(
    14             'pretty_version' => '5.12.1',
    15             'version' => '5.12.1.0',
    16             'reference' => '6cd526e1edd8e25863ca84a03f663a221cee25e4',
     14            'pretty_version' => '5.13.0',
     15            'version' => '5.13.0.0',
     16            'reference' => 'b88fa079981d590a70275d528cf52d8fd07affab',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../multisafepay/php-sdk',
     
    2121        ),
    2222        'multisafepay/woocommerce' => array(
    23             'pretty_version' => '6.3.1',
    24             'version' => '6.3.1.0',
    25             'reference' => 'ef5a8306f345bb83085e0e7957fd1780a9c73e38',
     23            'pretty_version' => '6.4.0',
     24            'version' => '6.4.0.0',
     25            'reference' => 'ecc911c2a5d20e186b653cbc98161133bba10bf0',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
     
    5151        ),
    5252        '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',
    5656            'type' => 'composer-plugin',
    5757            'install_path' => __DIR__ . '/../php-http/discovery',
  • multisafepay/tags/6.4.0/vendor/multisafepay/php-sdk/CHANGELOG.md

    r3050467 r3072171  
    66
    77## [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
    812
    913## [5.12.1] - 2024-03-11
  • multisafepay/tags/6.4.0/vendor/multisafepay/php-sdk/composer.json

    r3050467 r3072171  
    44  "type": "library",
    55  "license": "MIT",
    6   "version": "5.12.1",
     6  "version": "5.13.0",
    77  "require": {
    88    "php": "^7.2|^8.0",
  • multisafepay/tags/6.4.0/vendor/multisafepay/php-sdk/src/Api/Transactions/Gateways.php

    r2927749 r3072171  
    2020        'PAYAFTER',
    2121        'BNPL_INSTM',
     22        'BNPL_INST',
     23        'IN3B2B',
     24        'SANTANDER',
     25        'ZINIA',
     26        'ZINIA_IN3',
     27        'BNPL_OB',
     28        'BNPL_MF',
    2229    );
    2330}
  • multisafepay/tags/6.4.0/vendor/multisafepay/php-sdk/src/Util/Version.php

    r3050467 r3072171  
    1818class Version
    1919{
    20     public const SDK_VERSION = '5.12.1';
     20    public const SDK_VERSION = '5.13.0';
    2121
    2222    /**
  • multisafepay/tags/6.4.0/vendor/php-http/discovery/CHANGELOG.md

    r3030100 r3072171  
    11# Change Log
    22
     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
    311## 1.19.2 - 2023-11-30
    412
    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 lookig 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.
    614
    715## 1.19.1 - 2023-07-11
  • multisafepay/tags/6.4.0/vendor/php-http/discovery/composer.json

    r2927749 r3072171  
    2929        "php-http/message-factory": "^1.0",
    3030        "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"
    3233    },
    3334    "autoload": {
  • multisafepay/tags/6.4.0/vendor/php-http/discovery/src/NotFoundException.php

    r2476949 r3072171  
    22
    33namespace Http\Discovery;
     4
     5use Http\Discovery\Exception\NotFoundException as RealNotFoundException;
    46
    57/**
     
    1012 * @deprecated since since version 1.0, and will be removed in 2.0. Use {@link \Http\Discovery\Exception\NotFoundException} instead.
    1113 */
    12 final class NotFoundException extends \Http\Discovery\Exception\NotFoundException
     14final class NotFoundException extends RealNotFoundException
    1315{
    1416}
  • multisafepay/tags/6.4.0/vendor/php-http/discovery/src/Psr17Factory.php

    r2927749 r3072171  
    5050
    5151    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 = null
     52        ?RequestFactoryInterface $requestFactory = null,
     53        ?ResponseFactoryInterface $responseFactory = null,
     54        ?ServerRequestFactoryInterface $serverRequestFactory = null,
     55        ?StreamFactoryInterface $streamFactory = null,
     56        ?UploadedFileFactoryInterface $uploadedFileFactory = null,
     57        ?UriFactoryInterface $uriFactory = null
    5858    ) {
    5959        $this->requestFactory = $requestFactory;
     
    9999    }
    100100
    101     public function createServerRequestFromGlobals(array $server = null, array $get = null, array $post = null, array $cookie = null, array $files = null, StreamInterface $body = null): ServerRequestInterface
     101    public function createServerRequestFromGlobals(?array $server = null, ?array $get = null, ?array $post = null, ?array $cookie = null, ?array $files = null, ?StreamInterface $body = null): ServerRequestInterface
    102102    {
    103103        $server = $server ?? $_SERVER;
     
    135135    }
    136136
    137     public function createUploadedFile(StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null): UploadedFileInterface
     137    public function createUploadedFile(StreamInterface $stream, ?int $size = null, int $error = \UPLOAD_ERR_OK, ?string $clientFilename = null, ?string $clientMediaType = null): UploadedFileInterface
    138138    {
    139139        $factory = $this->uploadedFileFactory ?? $this->setFactory(Psr17FactoryDiscovery::findUploadedFileFactory());
     
    149149    }
    150150
    151     public function createUriFromGlobals(array $server = null): UriInterface
     151    public function createUriFromGlobals(?array $server = null): UriInterface
    152152    {
    153153        return $this->buildUriFromGlobals($this->createUri(''), $server ?? $_SERVER);
  • multisafepay/tags/6.4.0/vendor/php-http/discovery/src/Psr17FactoryDiscovery.php

    r2476949 r3072171  
    44
    55use Http\Discovery\Exception\DiscoveryFailedException;
     6use Http\Discovery\Exception\NotFoundException as RealNotFoundException;
    67use Psr\Http\Message\RequestFactoryInterface;
    78use Psr\Http\Message\ResponseFactoryInterface;
     
    2021    private static function createException($type, Exception $e)
    2122    {
    22         return new \Http\Discovery\Exception\NotFoundException(
     23        return new RealNotFoundException(
    2324            'No PSR-17 '.$type.' found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation',
    2425            0,
     
    3031     * @return RequestFactoryInterface
    3132     *
    32      * @throws Exception\NotFoundException
     33     * @throws RealNotFoundException
    3334     */
    3435    public static function findRequestFactory()
     
    4647     * @return ResponseFactoryInterface
    4748     *
    48      * @throws Exception\NotFoundException
     49     * @throws RealNotFoundException
    4950     */
    5051    public static function findResponseFactory()
     
    6263     * @return ServerRequestFactoryInterface
    6364     *
    64      * @throws Exception\NotFoundException
     65     * @throws RealNotFoundException
    6566     */
    6667    public static function findServerRequestFactory()
     
    7879     * @return StreamFactoryInterface
    7980     *
    80      * @throws Exception\NotFoundException
     81     * @throws RealNotFoundException
    8182     */
    8283    public static function findStreamFactory()
     
    9495     * @return UploadedFileFactoryInterface
    9596     *
    96      * @throws Exception\NotFoundException
     97     * @throws RealNotFoundException
    9798     */
    9899    public static function findUploadedFileFactory()
     
    110111     * @return UriFactoryInterface
    111112     *
    112      * @throws Exception\NotFoundException
     113     * @throws RealNotFoundException
    113114     */
    114115    public static function findUriFactory()
     
    126127     * @return UriFactoryInterface
    127128     *
    128      * @throws Exception\NotFoundException
     129     * @throws RealNotFoundException
    129130     *
    130131     * @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  
    2626
    2727    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 = null
     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 = null
    3535    ) {
    3636        parent::__construct($requestFactory, $responseFactory, $serverRequestFactory, $streamFactory, $uploadedFileFactory, $uriFactory);
  • multisafepay/tags/6.4.0/vendor/php-http/discovery/src/Psr18ClientDiscovery.php

    r2730349 r3072171  
    44
    55use Http\Discovery\Exception\DiscoveryFailedException;
     6use Http\Discovery\Exception\NotFoundException as RealNotFoundException;
    67use Psr\Http\Client\ClientInterface;
    78
     
    1819     * @return ClientInterface
    1920     *
    20      * @throws Exception\NotFoundException
     21     * @throws RealNotFoundException
    2122     */
    2223    public static function find()
     
    2526            $client = static::findOneByType(ClientInterface::class);
    2627        } 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);
    2829        }
    2930
  • multisafepay/trunk/multisafepay.php

    r3050467 r3072171  
    55 * Plugin URI:              https://docs.multisafepay.com/docs/woocommerce
    66 * Description:             MultiSafepay Payment Plugin
    7  * Version:                 6.3.1
     7 * Version:                 6.4.0
    88 * Author:                  MultiSafepay
    99 * Author URI:              https://www.multisafepay.com
     
    1212 * License URI:             http://www.gnu.org/licenses/gpl-3.0.html
    1313 * Requires at least:       6.0
    14  * Tested up to:            6.4.3
     14 * Tested up to:            6.5.2
    1515 * WC requires at least:    6.0.0
    16  * WC tested up to:         8.6.1
     16 * WC tested up to:         8.7.0
    1717 * Requires PHP:            7.3
    1818 * Text Domain:             multisafepay
     
    2727 * Plugin version
    2828 */
    29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.3.1' );
     29define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.4.0' );
    3030
    3131/**
  • multisafepay/trunk/readme.txt

    r3050467 r3072171  
    11=== MultiSafepay plugin for WooCommerce ===
    22Contributors: multisafepayplugin
    3 Tags: multisafepay, credit card, credit cards, gateway, payments, woocommerce, ideal, bancontact, klarna, sofort, giropay, sepa direct debit
     3Tags: multisafepay, payment gateway, credit cards, ideal, bnpl
    44Requires at least: 6.0
    5 Tested up to: 6.4.3
     5Tested up to: 6.5.2
    66Requires PHP: 7.3
    7 Stable tag: 6.3.1
     7Stable tag: 6.4.0
    88License: MIT
    99
     
    3232* Giropay
    3333* iDEAL
     34* iDEAL+in3
    3435* in3
    3536* KBC/CBC
     
    8990* Go to _Order Status_ tab and confirm the match between WooCommerce order statuses and MultiSafepay order statuses. Click on _Save changes_ button.
    9091* 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.
    9293
    9394
     
    1171183. In "Order actions" panel; select the option "Email invoice / order details to customer".
    1181194. Click on "Create" order button.
    119 5. An email will be sended to the customer with the details of the order and a payment link to finish the order.
     1205. An email will be sent to the customer with the details of the order and a payment link to finish the order.
    1201216. The payment link will be available for the customer in their private account area, in "Orders" section.
    121122
     
    127128== Upgrade Notice ==
    128129
    129 = 6.3.1 =
     130= 6.4.0 =
    1301316.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.
    131132
     
    143144
    144145== 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
    145155= Release Notes - WooCommerce 6.3.1 (Mar 13th, 2024) =
    146156
    147157### Fixed
    148 + PLGWOOS-911: Fix initialisation or refreshing of the Payment Component when payment methods is assigned to specific country
     158+ PLGWOOS-911: Fix initialisation or refreshing of the Payment Component when payment methods are assigned to specific country
    149159
    150160### Changed
  • multisafepay/trunk/src/PaymentMethods/Base/BasePaymentMethod.php

    r3048898 r3072171  
    3131    public const APPLEPAY_TEST_MERCHANT_NAME  = 'Example Merchant';
    3232
     33    public const DIRECT_PAYMENT_METHODS_WITHOUT_COMPONENTS = array(
     34        'BANKTRANS',
     35    );
     36
    3337    public const MULTISAFEPAY_COMPONENT_JS_URL  = 'https://pay.multisafepay.com/sdk/components/v2/components.js';
    3438    public const MULTISAFEPAY_COMPONENT_CSS_URL = 'https://pay.multisafepay.com/sdk/components/v2/components.css';
     
    165169     */
    166170    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' ) ) {
    168172            return self::TRANSACTION_TYPE_DIRECT;
    169173        }
     
    431435        }
    432436
     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
    433450        if ( 'GOOGLEPAY' === $this->get_payment_method_gateway_code() ) {
    434451            $form_fields['use_direct_button'] = array(
  • multisafepay/trunk/src/PaymentMethods/Base/BasePaymentMethodBlocks.php

    r3030100 r3072171  
    55use Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType;
    66use MultiSafepay\Api\PaymentMethods\PaymentMethod;
     7use MultiSafepay\Exception\InvalidDataInitializationException;
    78use MultiSafepay\WooCommerce\Services\PaymentMethodService;
    89
     
    3233     *
    3334     * @return void
     35     * @throws InvalidDataInitializationException
    3436     */
    3537    public function initialize(): void {
     
    4042            $multisafepay_payment_methods = $payment_method_service->get_multisafepay_payment_methods_from_api();
    4143            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;
    4653                }
    4754            }
     
    94101            $payment_methods_data[] = array(
    95102                '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(),
    98105            );
    99106        }
  • multisafepay/trunk/src/Services/PaymentComponentService.php

    r3048898 r3072171  
    5656                    'country' => ( WC()->customer )->get_billing_country(),
    5757                ),
    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,
    6164                    ),
    62                 ),
    63                 'payment_options' => array(
    6465                    'settings' => array(
    6566                        'connect' => array(
     
    106107        $payment_component_arguments = $this->get_payment_component_arguments( $woocommerce_payment_gateway );
    107108        wp_send_json( $payment_component_arguments );
    108 
    109109    }
    110110}
  • multisafepay/trunk/vendor/composer/installed.json

    r3050467 r3072171  
    33        {
    44            "name": "multisafepay/php-sdk",
    5             "version": "5.12.1",
    6             "version_normalized": "5.12.1.0",
     5            "version": "5.13.0",
     6            "version_normalized": "5.13.0.0",
    77            "source": {
    88                "type": "git",
    99                "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",
    1616                "shasum": ""
    1717            },
     
    3838                "jschaedl/iban-validation": "Adds additional IBAN validation for \\MultiSafepay\\ValueObject\\IbanNumber"
    3939            },
    40             "time": "2024-03-11T10:51:31+00:00",
     40            "time": "2024-04-16T11:41:31+00:00",
    4141            "type": "library",
    4242            "installation-source": "dist",
     
    5353            "support": {
    5454                "issues": "https://github.com/MultiSafepay/php-sdk/issues",
    55                 "source": "https://github.com/MultiSafepay/php-sdk/tree/5.12.1"
     55                "source": "https://github.com/MultiSafepay/php-sdk/tree/5.13.0"
    5656            },
    5757            "install-path": "../multisafepay/php-sdk"
     
    140140        {
    141141            "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",
    144144            "source": {
    145145                "type": "git",
    146146                "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",
    153153                "shasum": ""
    154154            },
     
    174174                "php-http/message-factory": "^1.0",
    175175                "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",
    179180            "type": "composer-plugin",
    180181            "extra": {
     
    215216            "support": {
    216217                "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"
    218219            },
    219220            "install-path": "../php-http/discovery"
  • multisafepay/trunk/vendor/composer/installed.php

    r3050467 r3072171  
    22    'root' => array(
    33        'name' => 'multisafepay/woocommerce',
    4         'pretty_version' => '6.3.1',
    5         'version' => '6.3.1.0',
    6         'reference' => 'ef5a8306f345bb83085e0e7957fd1780a9c73e38',
     4        'pretty_version' => '6.4.0',
     5        'version' => '6.4.0.0',
     6        'reference' => 'ecc911c2a5d20e186b653cbc98161133bba10bf0',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'multisafepay/php-sdk' => array(
    14             'pretty_version' => '5.12.1',
    15             'version' => '5.12.1.0',
    16             'reference' => '6cd526e1edd8e25863ca84a03f663a221cee25e4',
     14            'pretty_version' => '5.13.0',
     15            'version' => '5.13.0.0',
     16            'reference' => 'b88fa079981d590a70275d528cf52d8fd07affab',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../multisafepay/php-sdk',
     
    2121        ),
    2222        'multisafepay/woocommerce' => array(
    23             'pretty_version' => '6.3.1',
    24             'version' => '6.3.1.0',
    25             'reference' => 'ef5a8306f345bb83085e0e7957fd1780a9c73e38',
     23            'pretty_version' => '6.4.0',
     24            'version' => '6.4.0.0',
     25            'reference' => 'ecc911c2a5d20e186b653cbc98161133bba10bf0',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
     
    5151        ),
    5252        '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',
    5656            'type' => 'composer-plugin',
    5757            'install_path' => __DIR__ . '/../php-http/discovery',
  • multisafepay/trunk/vendor/multisafepay/php-sdk/CHANGELOG.md

    r3050467 r3072171  
    66
    77## [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
    812
    913## [5.12.1] - 2024-03-11
  • multisafepay/trunk/vendor/multisafepay/php-sdk/composer.json

    r3050467 r3072171  
    44  "type": "library",
    55  "license": "MIT",
    6   "version": "5.12.1",
     6  "version": "5.13.0",
    77  "require": {
    88    "php": "^7.2|^8.0",
  • multisafepay/trunk/vendor/multisafepay/php-sdk/src/Api/Transactions/Gateways.php

    r2927749 r3072171  
    2020        'PAYAFTER',
    2121        'BNPL_INSTM',
     22        'BNPL_INST',
     23        'IN3B2B',
     24        'SANTANDER',
     25        'ZINIA',
     26        'ZINIA_IN3',
     27        'BNPL_OB',
     28        'BNPL_MF',
    2229    );
    2330}
  • multisafepay/trunk/vendor/multisafepay/php-sdk/src/Util/Version.php

    r3050467 r3072171  
    1818class Version
    1919{
    20     public const SDK_VERSION = '5.12.1';
     20    public const SDK_VERSION = '5.13.0';
    2121
    2222    /**
  • multisafepay/trunk/vendor/php-http/discovery/CHANGELOG.md

    r3030100 r3072171  
    11# Change Log
    22
     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
    311## 1.19.2 - 2023-11-30
    412
    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 lookig 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.
    614
    715## 1.19.1 - 2023-07-11
  • multisafepay/trunk/vendor/php-http/discovery/composer.json

    r2927749 r3072171  
    2929        "php-http/message-factory": "^1.0",
    3030        "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"
    3233    },
    3334    "autoload": {
  • multisafepay/trunk/vendor/php-http/discovery/src/NotFoundException.php

    r2476949 r3072171  
    22
    33namespace Http\Discovery;
     4
     5use Http\Discovery\Exception\NotFoundException as RealNotFoundException;
    46
    57/**
     
    1012 * @deprecated since since version 1.0, and will be removed in 2.0. Use {@link \Http\Discovery\Exception\NotFoundException} instead.
    1113 */
    12 final class NotFoundException extends \Http\Discovery\Exception\NotFoundException
     14final class NotFoundException extends RealNotFoundException
    1315{
    1416}
  • multisafepay/trunk/vendor/php-http/discovery/src/Psr17Factory.php

    r2927749 r3072171  
    5050
    5151    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 = null
     52        ?RequestFactoryInterface $requestFactory = null,
     53        ?ResponseFactoryInterface $responseFactory = null,
     54        ?ServerRequestFactoryInterface $serverRequestFactory = null,
     55        ?StreamFactoryInterface $streamFactory = null,
     56        ?UploadedFileFactoryInterface $uploadedFileFactory = null,
     57        ?UriFactoryInterface $uriFactory = null
    5858    ) {
    5959        $this->requestFactory = $requestFactory;
     
    9999    }
    100100
    101     public function createServerRequestFromGlobals(array $server = null, array $get = null, array $post = null, array $cookie = null, array $files = null, StreamInterface $body = null): ServerRequestInterface
     101    public function createServerRequestFromGlobals(?array $server = null, ?array $get = null, ?array $post = null, ?array $cookie = null, ?array $files = null, ?StreamInterface $body = null): ServerRequestInterface
    102102    {
    103103        $server = $server ?? $_SERVER;
     
    135135    }
    136136
    137     public function createUploadedFile(StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null): UploadedFileInterface
     137    public function createUploadedFile(StreamInterface $stream, ?int $size = null, int $error = \UPLOAD_ERR_OK, ?string $clientFilename = null, ?string $clientMediaType = null): UploadedFileInterface
    138138    {
    139139        $factory = $this->uploadedFileFactory ?? $this->setFactory(Psr17FactoryDiscovery::findUploadedFileFactory());
     
    149149    }
    150150
    151     public function createUriFromGlobals(array $server = null): UriInterface
     151    public function createUriFromGlobals(?array $server = null): UriInterface
    152152    {
    153153        return $this->buildUriFromGlobals($this->createUri(''), $server ?? $_SERVER);
  • multisafepay/trunk/vendor/php-http/discovery/src/Psr17FactoryDiscovery.php

    r2476949 r3072171  
    44
    55use Http\Discovery\Exception\DiscoveryFailedException;
     6use Http\Discovery\Exception\NotFoundException as RealNotFoundException;
    67use Psr\Http\Message\RequestFactoryInterface;
    78use Psr\Http\Message\ResponseFactoryInterface;
     
    2021    private static function createException($type, Exception $e)
    2122    {
    22         return new \Http\Discovery\Exception\NotFoundException(
     23        return new RealNotFoundException(
    2324            'No PSR-17 '.$type.' found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation',
    2425            0,
     
    3031     * @return RequestFactoryInterface
    3132     *
    32      * @throws Exception\NotFoundException
     33     * @throws RealNotFoundException
    3334     */
    3435    public static function findRequestFactory()
     
    4647     * @return ResponseFactoryInterface
    4748     *
    48      * @throws Exception\NotFoundException
     49     * @throws RealNotFoundException
    4950     */
    5051    public static function findResponseFactory()
     
    6263     * @return ServerRequestFactoryInterface
    6364     *
    64      * @throws Exception\NotFoundException
     65     * @throws RealNotFoundException
    6566     */
    6667    public static function findServerRequestFactory()
     
    7879     * @return StreamFactoryInterface
    7980     *
    80      * @throws Exception\NotFoundException
     81     * @throws RealNotFoundException
    8182     */
    8283    public static function findStreamFactory()
     
    9495     * @return UploadedFileFactoryInterface
    9596     *
    96      * @throws Exception\NotFoundException
     97     * @throws RealNotFoundException
    9798     */
    9899    public static function findUploadedFileFactory()
     
    110111     * @return UriFactoryInterface
    111112     *
    112      * @throws Exception\NotFoundException
     113     * @throws RealNotFoundException
    113114     */
    114115    public static function findUriFactory()
     
    126127     * @return UriFactoryInterface
    127128     *
    128      * @throws Exception\NotFoundException
     129     * @throws RealNotFoundException
    129130     *
    130131     * @deprecated This will be removed in 2.0. Consider using the findUriFactory() method.
  • multisafepay/trunk/vendor/php-http/discovery/src/Psr18Client.php

    r2927749 r3072171  
    2626
    2727    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 = null
     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 = null
    3535    ) {
    3636        parent::__construct($requestFactory, $responseFactory, $serverRequestFactory, $streamFactory, $uploadedFileFactory, $uriFactory);
  • multisafepay/trunk/vendor/php-http/discovery/src/Psr18ClientDiscovery.php

    r2730349 r3072171  
    44
    55use Http\Discovery\Exception\DiscoveryFailedException;
     6use Http\Discovery\Exception\NotFoundException as RealNotFoundException;
    67use Psr\Http\Client\ClientInterface;
    78
     
    1819     * @return ClientInterface
    1920     *
    20      * @throws Exception\NotFoundException
     21     * @throws RealNotFoundException
    2122     */
    2223    public static function find()
     
    2526            $client = static::findOneByType(ClientInterface::class);
    2627        } 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);
    2829        }
    2930
Note: See TracChangeset for help on using the changeset viewer.