Plugin Directory

Changeset 2979525


Ignore:
Timestamp:
10/16/2023 11:53:41 AM (2 years ago)
Author:
multisafepayplugin
Message:

Update to version 6.1.1 from GitHub

Location:
multisafepay
Files:
22 edited
1 copied

Legend:

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

    r2977382 r2979525  
    55 * Plugin URI:              https://docs.multisafepay.com/docs/woocommerce
    66 * Description:             MultiSafepay Payment Plugin
    7  * Version:                 6.1.0
     7 * Version:                 6.1.1
    88 * Author:                  MultiSafepay
    99 * Author URI:              https://www.multisafepay.com
     
    2727 * Plugin version
    2828 */
    29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.1.0' );
     29define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.1.1' );
    3030
    3131/**
  • multisafepay/tags/6.1.1/readme.txt

    r2977382 r2979525  
    55Tested up to: 6.3.1
    66Requires PHP: 7.3
    7 Stable tag: 6.1.0
     7Stable tag: 6.1.1
    88License: MIT
    99
     
    144144
    145145== Changelog ==
     146= Release Notes - WooCommerce 6.1.1 (Oct 16th, 2023) =
     147
     148### Fixed
     149+ PLGWOOS-887: Disable Payment Components for Gift Cards payment methods, even when API is returning Payment Component is allowed
     150
    146151= Release Notes - WooCommerce 6.1.0 (Oct 11th, 2023) =
    147152
  • multisafepay/tags/6.1.1/src/PaymentMethods/Base/BaseGiftCardPaymentMethod.php

    r2974626 r2979525  
    1919        return false;
    2020    }
     21
     22    /**
     23     * Return if payment component is enabled.
     24     *
     25     * @return bool
     26     */
     27    public function is_payment_component_enabled(): bool {
     28        return false;
     29    }
    2130}
  • multisafepay/tags/6.1.1/vendor/composer/installed.json

    r2971890 r2979525  
    33        {
    44            "name": "multisafepay/php-sdk",
    5             "version": "5.11.1",
    6             "version_normalized": "5.11.1.0",
     5            "version": "5.11.2",
     6            "version_normalized": "5.11.2.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/MultiSafepay/php-sdk.git",
    10                 "reference": "bfe0ed07b0339e292b822e085f3205d59761619f"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/MultiSafepay/php-sdk/zipball/bfe0ed07b0339e292b822e085f3205d59761619f",
    15                 "reference": "bfe0ed07b0339e292b822e085f3205d59761619f",
     10                "reference": "16a7cead65c0d34c7b8e8be4fd002bae5fa3a60f"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/MultiSafepay/php-sdk/zipball/16a7cead65c0d34c7b8e8be4fd002bae5fa3a60f",
     15                "reference": "16a7cead65c0d34c7b8e8be4fd002bae5fa3a60f",
    1616                "shasum": ""
    1717            },
     
    3838                "jschaedl/iban-validation": "Adds additional IBAN validation for \\MultiSafepay\\ValueObject\\IbanNumber"
    3939            },
    40             "time": "2023-07-31T14:31:58+00:00",
     40            "time": "2023-10-13T14:29:27+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.11.1"
     55                "source": "https://github.com/MultiSafepay/php-sdk/tree/5.11.2"
    5656            },
    5757            "install-path": "../multisafepay/php-sdk"
  • multisafepay/tags/6.1.1/vendor/composer/installed.php

    r2977382 r2979525  
    22    'root' => array(
    33        'name' => 'multisafepay/woocommerce',
    4         'pretty_version' => '6.1.0',
    5         'version' => '6.1.0.0',
    6         'reference' => '06e6ef9e37a2ce521c8097cafa8aa94957893be7',
     4        'pretty_version' => '6.1.1',
     5        'version' => '6.1.1.0',
     6        'reference' => '73a66a353ecc825dea4a1bfbac16201de2e34722',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'multisafepay/php-sdk' => array(
    14             'pretty_version' => '5.11.1',
    15             'version' => '5.11.1.0',
    16             'reference' => 'bfe0ed07b0339e292b822e085f3205d59761619f',
     14            'pretty_version' => '5.11.2',
     15            'version' => '5.11.2.0',
     16            'reference' => '16a7cead65c0d34c7b8e8be4fd002bae5fa3a60f',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../multisafepay/php-sdk',
     
    2121        ),
    2222        'multisafepay/woocommerce' => array(
    23             'pretty_version' => '6.1.0',
    24             'version' => '6.1.0.0',
    25             'reference' => '06e6ef9e37a2ce521c8097cafa8aa94957893be7',
     23            'pretty_version' => '6.1.1',
     24            'version' => '6.1.1.0',
     25            'reference' => '73a66a353ecc825dea4a1bfbac16201de2e34722',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/CHANGELOG.md

    r2951435 r2979525  
    66
    77## [Unreleased]
     8
     9## [5.11.2] - 2023-10-13
     10### Fixed
     11+ PHPSDK-134: Fix errors when only reference is set, within the CustomerDetails object
     12
     13### Changed
     14+ PHPSDK-136: Remove PluginDetails as mandatory from the Order Request
    815
    916## [5.11.1] - 2023-07-31
  • multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/composer.json

    r2951435 r2979525  
    44  "type": "library",
    55  "license": "MIT",
    6   "version": "5.11.1",
     6  "version": "5.11.2",
    77  "require": {
    88    "php": "^7.2|^8.0",
  • multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest.php

    r2927749 r2979525  
    474474    protected function validate(array $data): bool
    475475    {
    476         if (!$data['plugin']) {
    477             throw new InvalidArgumentException('Required plugin details are missing');
    478         }
    479 
    480476        if ($this->strictMode) {
    481477            (new TotalAmountValidator())->validate($data);
  • multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest/Arguments/CustomerDetails.php

    r2927749 r2979525  
    5555        $address = $this->getAddress();
    5656        $data = [
    57             'firstname' => $this->getFirstName(),
    58             'lastname' => $this->getLastName(),
    59             'company_name' => $this->getCompanyName(),
    60             'address1' => $address->getStreetName(),
    61             'address2' => $address->getStreetNameAdditional(),
    62             'house_number' => $this->getHouseNumber(),
    63             'zip_code' => $address->getZipCode(),
    64             'city' => $address->getCity(),
    65             'state' => $address->getState(),
    66             'country' => $address->getCountry() ? $address->getCountry()->getCode() : null,
     57            'firstname' => $this->getFirstName() ?: null,
     58            'lastname' => $this->getLastName() ?: null,
     59            'company_name' => $this->getCompanyName() ?: null,
     60            'address1' => $address ? $address->getStreetName() : null,
     61            'address2' => $address ? $address->getStreetNameAdditional() : null,
     62            'house_number' => $address ? $this->getHouseNumber() : null,
     63            'zip_code' => $address ? $address->getZipCode() : null,
     64            'city' => $address ? $address->getCity() : null,
     65            'state' => $address ? $address->getState() : null,
     66            'country' => $this->getCountryCode() ? $this->getCountryCode() : null,
    6767            'phone' => $this->getPhoneNumber() ? $this->getPhoneNumber()->get() : null,
    6868            'email' => $this->getEmailAddress() ? $this->getEmailAddress()->get() : null,
    6969            'ip_address' => $this->getIpAddress() ? $this->getIpAddress()->get() : null,
    7070            'locale' => $this->getLocale(),
    71             'referrer' => $this->getReferrer(),
     71            'referrer' => $this->getReferrer() ?: null,
    7272            'forwarded_ip' => $this->getForwardedIp() ? $this->getForwardedIp()->get() : null,
    73             'user_agent' => $this->getUserAgent(),
     73            'user_agent' => $this->getUserAgent() ?: null,
    7474            'reference' => $this->reference,
    7575        ];
     
    189189
    190190    /**
     191     * @return string|null
     192     */
     193    private function getCountryCode(): ?string
     194    {
     195        $address = $this->getAddress();
     196
     197        if (!$address) {
     198            return null;
     199        }
     200
     201        return $address->getCountry() ? $address->getCountry()->getCode(): null;
     202    }
     203
     204    /**
    191205     * @param string $reference
    192206     * @return $this
  • multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/src/Util/Version.php

    r2951435 r2979525  
    1818class Version
    1919{
    20     public const SDK_VERSION = '5.11.1';
     20    public const SDK_VERSION = '5.11.2';
    2121
    2222    /**
  • multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/src/ValueObject/Customer.php

    r2927749 r2979525  
    156156
    157157    /**
    158      * @return IpAddress
     158     * @return IpAddress|null
    159159     */
    160160    public function getIpAddress(): ?IpAddress
     
    164164
    165165    /**
    166      * @return EmailAddress
     166     * @return EmailAddress|null
    167167     */
    168168    public function getEmailAddress(): ?EmailAddress
     
    172172
    173173    /**
    174      * @return Address
     174     * @return Address|null
    175175     */
    176176    public function getAddress(): ?Address
     
    204204
    205205    /**
    206      * @return PhoneNumber
     206     * @return PhoneNumber|null
    207207     */
    208208    public function getPhoneNumber(): ?PhoneNumber
  • multisafepay/trunk/multisafepay.php

    r2977382 r2979525  
    55 * Plugin URI:              https://docs.multisafepay.com/docs/woocommerce
    66 * Description:             MultiSafepay Payment Plugin
    7  * Version:                 6.1.0
     7 * Version:                 6.1.1
    88 * Author:                  MultiSafepay
    99 * Author URI:              https://www.multisafepay.com
     
    2727 * Plugin version
    2828 */
    29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.1.0' );
     29define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.1.1' );
    3030
    3131/**
  • multisafepay/trunk/readme.txt

    r2977382 r2979525  
    55Tested up to: 6.3.1
    66Requires PHP: 7.3
    7 Stable tag: 6.1.0
     7Stable tag: 6.1.1
    88License: MIT
    99
     
    144144
    145145== Changelog ==
     146= Release Notes - WooCommerce 6.1.1 (Oct 16th, 2023) =
     147
     148### Fixed
     149+ PLGWOOS-887: Disable Payment Components for Gift Cards payment methods, even when API is returning Payment Component is allowed
     150
    146151= Release Notes - WooCommerce 6.1.0 (Oct 11th, 2023) =
    147152
  • multisafepay/trunk/src/PaymentMethods/Base/BaseGiftCardPaymentMethod.php

    r2974626 r2979525  
    1919        return false;
    2020    }
     21
     22    /**
     23     * Return if payment component is enabled.
     24     *
     25     * @return bool
     26     */
     27    public function is_payment_component_enabled(): bool {
     28        return false;
     29    }
    2130}
  • multisafepay/trunk/vendor/composer/installed.json

    r2971890 r2979525  
    33        {
    44            "name": "multisafepay/php-sdk",
    5             "version": "5.11.1",
    6             "version_normalized": "5.11.1.0",
     5            "version": "5.11.2",
     6            "version_normalized": "5.11.2.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/MultiSafepay/php-sdk.git",
    10                 "reference": "bfe0ed07b0339e292b822e085f3205d59761619f"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/MultiSafepay/php-sdk/zipball/bfe0ed07b0339e292b822e085f3205d59761619f",
    15                 "reference": "bfe0ed07b0339e292b822e085f3205d59761619f",
     10                "reference": "16a7cead65c0d34c7b8e8be4fd002bae5fa3a60f"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/MultiSafepay/php-sdk/zipball/16a7cead65c0d34c7b8e8be4fd002bae5fa3a60f",
     15                "reference": "16a7cead65c0d34c7b8e8be4fd002bae5fa3a60f",
    1616                "shasum": ""
    1717            },
     
    3838                "jschaedl/iban-validation": "Adds additional IBAN validation for \\MultiSafepay\\ValueObject\\IbanNumber"
    3939            },
    40             "time": "2023-07-31T14:31:58+00:00",
     40            "time": "2023-10-13T14:29:27+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.11.1"
     55                "source": "https://github.com/MultiSafepay/php-sdk/tree/5.11.2"
    5656            },
    5757            "install-path": "../multisafepay/php-sdk"
  • multisafepay/trunk/vendor/composer/installed.php

    r2977382 r2979525  
    22    'root' => array(
    33        'name' => 'multisafepay/woocommerce',
    4         'pretty_version' => '6.1.0',
    5         'version' => '6.1.0.0',
    6         'reference' => '06e6ef9e37a2ce521c8097cafa8aa94957893be7',
     4        'pretty_version' => '6.1.1',
     5        'version' => '6.1.1.0',
     6        'reference' => '73a66a353ecc825dea4a1bfbac16201de2e34722',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'multisafepay/php-sdk' => array(
    14             'pretty_version' => '5.11.1',
    15             'version' => '5.11.1.0',
    16             'reference' => 'bfe0ed07b0339e292b822e085f3205d59761619f',
     14            'pretty_version' => '5.11.2',
     15            'version' => '5.11.2.0',
     16            'reference' => '16a7cead65c0d34c7b8e8be4fd002bae5fa3a60f',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../multisafepay/php-sdk',
     
    2121        ),
    2222        'multisafepay/woocommerce' => array(
    23             'pretty_version' => '6.1.0',
    24             'version' => '6.1.0.0',
    25             'reference' => '06e6ef9e37a2ce521c8097cafa8aa94957893be7',
     23            'pretty_version' => '6.1.1',
     24            'version' => '6.1.1.0',
     25            'reference' => '73a66a353ecc825dea4a1bfbac16201de2e34722',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • multisafepay/trunk/vendor/multisafepay/php-sdk/CHANGELOG.md

    r2951435 r2979525  
    66
    77## [Unreleased]
     8
     9## [5.11.2] - 2023-10-13
     10### Fixed
     11+ PHPSDK-134: Fix errors when only reference is set, within the CustomerDetails object
     12
     13### Changed
     14+ PHPSDK-136: Remove PluginDetails as mandatory from the Order Request
    815
    916## [5.11.1] - 2023-07-31
  • multisafepay/trunk/vendor/multisafepay/php-sdk/composer.json

    r2951435 r2979525  
    44  "type": "library",
    55  "license": "MIT",
    6   "version": "5.11.1",
     6  "version": "5.11.2",
    77  "require": {
    88    "php": "^7.2|^8.0",
  • multisafepay/trunk/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest.php

    r2927749 r2979525  
    474474    protected function validate(array $data): bool
    475475    {
    476         if (!$data['plugin']) {
    477             throw new InvalidArgumentException('Required plugin details are missing');
    478         }
    479 
    480476        if ($this->strictMode) {
    481477            (new TotalAmountValidator())->validate($data);
  • multisafepay/trunk/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest/Arguments/CustomerDetails.php

    r2927749 r2979525  
    5555        $address = $this->getAddress();
    5656        $data = [
    57             'firstname' => $this->getFirstName(),
    58             'lastname' => $this->getLastName(),
    59             'company_name' => $this->getCompanyName(),
    60             'address1' => $address->getStreetName(),
    61             'address2' => $address->getStreetNameAdditional(),
    62             'house_number' => $this->getHouseNumber(),
    63             'zip_code' => $address->getZipCode(),
    64             'city' => $address->getCity(),
    65             'state' => $address->getState(),
    66             'country' => $address->getCountry() ? $address->getCountry()->getCode() : null,
     57            'firstname' => $this->getFirstName() ?: null,
     58            'lastname' => $this->getLastName() ?: null,
     59            'company_name' => $this->getCompanyName() ?: null,
     60            'address1' => $address ? $address->getStreetName() : null,
     61            'address2' => $address ? $address->getStreetNameAdditional() : null,
     62            'house_number' => $address ? $this->getHouseNumber() : null,
     63            'zip_code' => $address ? $address->getZipCode() : null,
     64            'city' => $address ? $address->getCity() : null,
     65            'state' => $address ? $address->getState() : null,
     66            'country' => $this->getCountryCode() ? $this->getCountryCode() : null,
    6767            'phone' => $this->getPhoneNumber() ? $this->getPhoneNumber()->get() : null,
    6868            'email' => $this->getEmailAddress() ? $this->getEmailAddress()->get() : null,
    6969            'ip_address' => $this->getIpAddress() ? $this->getIpAddress()->get() : null,
    7070            'locale' => $this->getLocale(),
    71             'referrer' => $this->getReferrer(),
     71            'referrer' => $this->getReferrer() ?: null,
    7272            'forwarded_ip' => $this->getForwardedIp() ? $this->getForwardedIp()->get() : null,
    73             'user_agent' => $this->getUserAgent(),
     73            'user_agent' => $this->getUserAgent() ?: null,
    7474            'reference' => $this->reference,
    7575        ];
     
    189189
    190190    /**
     191     * @return string|null
     192     */
     193    private function getCountryCode(): ?string
     194    {
     195        $address = $this->getAddress();
     196
     197        if (!$address) {
     198            return null;
     199        }
     200
     201        return $address->getCountry() ? $address->getCountry()->getCode(): null;
     202    }
     203
     204    /**
    191205     * @param string $reference
    192206     * @return $this
  • multisafepay/trunk/vendor/multisafepay/php-sdk/src/Util/Version.php

    r2951435 r2979525  
    1818class Version
    1919{
    20     public const SDK_VERSION = '5.11.1';
     20    public const SDK_VERSION = '5.11.2';
    2121
    2222    /**
  • multisafepay/trunk/vendor/multisafepay/php-sdk/src/ValueObject/Customer.php

    r2927749 r2979525  
    156156
    157157    /**
    158      * @return IpAddress
     158     * @return IpAddress|null
    159159     */
    160160    public function getIpAddress(): ?IpAddress
     
    164164
    165165    /**
    166      * @return EmailAddress
     166     * @return EmailAddress|null
    167167     */
    168168    public function getEmailAddress(): ?EmailAddress
     
    172172
    173173    /**
    174      * @return Address
     174     * @return Address|null
    175175     */
    176176    public function getAddress(): ?Address
     
    204204
    205205    /**
    206      * @return PhoneNumber
     206     * @return PhoneNumber|null
    207207     */
    208208    public function getPhoneNumber(): ?PhoneNumber
Note: See TracChangeset for help on using the changeset viewer.