Changeset 2979525
- Timestamp:
- 10/16/2023 11:53:41 AM (2 years ago)
- Location:
- multisafepay
- Files:
-
- 22 edited
- 1 copied
-
tags/6.1.1 (copied) (copied from multisafepay/trunk)
-
tags/6.1.1/multisafepay.php (modified) (2 diffs)
-
tags/6.1.1/readme.txt (modified) (2 diffs)
-
tags/6.1.1/src/PaymentMethods/Base/BaseGiftCardPaymentMethod.php (modified) (1 diff)
-
tags/6.1.1/vendor/composer/installed.json (modified) (3 diffs)
-
tags/6.1.1/vendor/composer/installed.php (modified) (3 diffs)
-
tags/6.1.1/vendor/multisafepay/php-sdk/CHANGELOG.md (modified) (1 diff)
-
tags/6.1.1/vendor/multisafepay/php-sdk/composer.json (modified) (1 diff)
-
tags/6.1.1/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest.php (modified) (1 diff)
-
tags/6.1.1/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest/Arguments/CustomerDetails.php (modified) (2 diffs)
-
tags/6.1.1/vendor/multisafepay/php-sdk/src/Util/Version.php (modified) (1 diff)
-
tags/6.1.1/vendor/multisafepay/php-sdk/src/ValueObject/Customer.php (modified) (4 diffs)
-
trunk/multisafepay.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/PaymentMethods/Base/BaseGiftCardPaymentMethod.php (modified) (1 diff)
-
trunk/vendor/composer/installed.json (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (3 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/OrderRequest.php (modified) (1 diff)
-
trunk/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest/Arguments/CustomerDetails.php (modified) (2 diffs)
-
trunk/vendor/multisafepay/php-sdk/src/Util/Version.php (modified) (1 diff)
-
trunk/vendor/multisafepay/php-sdk/src/ValueObject/Customer.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multisafepay/tags/6.1.1/multisafepay.php
r2977382 r2979525 5 5 * Plugin URI: https://docs.multisafepay.com/docs/woocommerce 6 6 * Description: MultiSafepay Payment Plugin 7 * Version: 6.1. 07 * Version: 6.1.1 8 8 * Author: MultiSafepay 9 9 * Author URI: https://www.multisafepay.com … … 27 27 * Plugin version 28 28 */ 29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.1. 0' );29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.1.1' ); 30 30 31 31 /** -
multisafepay/tags/6.1.1/readme.txt
r2977382 r2979525 5 5 Tested up to: 6.3.1 6 6 Requires PHP: 7.3 7 Stable tag: 6.1. 07 Stable tag: 6.1.1 8 8 License: MIT 9 9 … … 144 144 145 145 == 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 146 151 = Release Notes - WooCommerce 6.1.0 (Oct 11th, 2023) = 147 152 -
multisafepay/tags/6.1.1/src/PaymentMethods/Base/BaseGiftCardPaymentMethod.php
r2974626 r2979525 19 19 return false; 20 20 } 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 } 21 30 } -
multisafepay/tags/6.1.1/vendor/composer/installed.json
r2971890 r2979525 3 3 { 4 4 "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", 7 7 "source": { 8 8 "type": "git", 9 9 "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", 16 16 "shasum": "" 17 17 }, … … 38 38 "jschaedl/iban-validation": "Adds additional IBAN validation for \\MultiSafepay\\ValueObject\\IbanNumber" 39 39 }, 40 "time": "2023- 07-31T14:31:58+00:00",40 "time": "2023-10-13T14:29:27+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.11. 1"55 "source": "https://github.com/MultiSafepay/php-sdk/tree/5.11.2" 56 56 }, 57 57 "install-path": "../multisafepay/php-sdk" -
multisafepay/tags/6.1.1/vendor/composer/installed.php
r2977382 r2979525 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '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', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../multisafepay/php-sdk', … … 21 21 ), 22 22 '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', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/CHANGELOG.md
r2951435 r2979525 6 6 7 7 ## [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 8 15 9 16 ## [5.11.1] - 2023-07-31 -
multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/composer.json
r2951435 r2979525 4 4 "type": "library", 5 5 "license": "MIT", 6 "version": "5.11. 1",6 "version": "5.11.2", 7 7 "require": { 8 8 "php": "^7.2|^8.0", -
multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest.php
r2927749 r2979525 474 474 protected function validate(array $data): bool 475 475 { 476 if (!$data['plugin']) {477 throw new InvalidArgumentException('Required plugin details are missing');478 }479 480 476 if ($this->strictMode) { 481 477 (new TotalAmountValidator())->validate($data); -
multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest/Arguments/CustomerDetails.php
r2927749 r2979525 55 55 $address = $this->getAddress(); 56 56 $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, 67 67 'phone' => $this->getPhoneNumber() ? $this->getPhoneNumber()->get() : null, 68 68 'email' => $this->getEmailAddress() ? $this->getEmailAddress()->get() : null, 69 69 'ip_address' => $this->getIpAddress() ? $this->getIpAddress()->get() : null, 70 70 'locale' => $this->getLocale(), 71 'referrer' => $this->getReferrer() ,71 'referrer' => $this->getReferrer() ?: null, 72 72 'forwarded_ip' => $this->getForwardedIp() ? $this->getForwardedIp()->get() : null, 73 'user_agent' => $this->getUserAgent() ,73 'user_agent' => $this->getUserAgent() ?: null, 74 74 'reference' => $this->reference, 75 75 ]; … … 189 189 190 190 /** 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 /** 191 205 * @param string $reference 192 206 * @return $this -
multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/src/Util/Version.php
r2951435 r2979525 18 18 class Version 19 19 { 20 public const SDK_VERSION = '5.11. 1';20 public const SDK_VERSION = '5.11.2'; 21 21 22 22 /** -
multisafepay/tags/6.1.1/vendor/multisafepay/php-sdk/src/ValueObject/Customer.php
r2927749 r2979525 156 156 157 157 /** 158 * @return IpAddress 158 * @return IpAddress|null 159 159 */ 160 160 public function getIpAddress(): ?IpAddress … … 164 164 165 165 /** 166 * @return EmailAddress 166 * @return EmailAddress|null 167 167 */ 168 168 public function getEmailAddress(): ?EmailAddress … … 172 172 173 173 /** 174 * @return Address 174 * @return Address|null 175 175 */ 176 176 public function getAddress(): ?Address … … 204 204 205 205 /** 206 * @return PhoneNumber 206 * @return PhoneNumber|null 207 207 */ 208 208 public function getPhoneNumber(): ?PhoneNumber -
multisafepay/trunk/multisafepay.php
r2977382 r2979525 5 5 * Plugin URI: https://docs.multisafepay.com/docs/woocommerce 6 6 * Description: MultiSafepay Payment Plugin 7 * Version: 6.1. 07 * Version: 6.1.1 8 8 * Author: MultiSafepay 9 9 * Author URI: https://www.multisafepay.com … … 27 27 * Plugin version 28 28 */ 29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.1. 0' );29 define( 'MULTISAFEPAY_PLUGIN_VERSION', '6.1.1' ); 30 30 31 31 /** -
multisafepay/trunk/readme.txt
r2977382 r2979525 5 5 Tested up to: 6.3.1 6 6 Requires PHP: 7.3 7 Stable tag: 6.1. 07 Stable tag: 6.1.1 8 8 License: MIT 9 9 … … 144 144 145 145 == 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 146 151 = Release Notes - WooCommerce 6.1.0 (Oct 11th, 2023) = 147 152 -
multisafepay/trunk/src/PaymentMethods/Base/BaseGiftCardPaymentMethod.php
r2974626 r2979525 19 19 return false; 20 20 } 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 } 21 30 } -
multisafepay/trunk/vendor/composer/installed.json
r2971890 r2979525 3 3 { 4 4 "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", 7 7 "source": { 8 8 "type": "git", 9 9 "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", 16 16 "shasum": "" 17 17 }, … … 38 38 "jschaedl/iban-validation": "Adds additional IBAN validation for \\MultiSafepay\\ValueObject\\IbanNumber" 39 39 }, 40 "time": "2023- 07-31T14:31:58+00:00",40 "time": "2023-10-13T14:29:27+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.11. 1"55 "source": "https://github.com/MultiSafepay/php-sdk/tree/5.11.2" 56 56 }, 57 57 "install-path": "../multisafepay/php-sdk" -
multisafepay/trunk/vendor/composer/installed.php
r2977382 r2979525 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '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', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../multisafepay/php-sdk', … … 21 21 ), 22 22 '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', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
multisafepay/trunk/vendor/multisafepay/php-sdk/CHANGELOG.md
r2951435 r2979525 6 6 7 7 ## [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 8 15 9 16 ## [5.11.1] - 2023-07-31 -
multisafepay/trunk/vendor/multisafepay/php-sdk/composer.json
r2951435 r2979525 4 4 "type": "library", 5 5 "license": "MIT", 6 "version": "5.11. 1",6 "version": "5.11.2", 7 7 "require": { 8 8 "php": "^7.2|^8.0", -
multisafepay/trunk/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest.php
r2927749 r2979525 474 474 protected function validate(array $data): bool 475 475 { 476 if (!$data['plugin']) {477 throw new InvalidArgumentException('Required plugin details are missing');478 }479 480 476 if ($this->strictMode) { 481 477 (new TotalAmountValidator())->validate($data); -
multisafepay/trunk/vendor/multisafepay/php-sdk/src/Api/Transactions/OrderRequest/Arguments/CustomerDetails.php
r2927749 r2979525 55 55 $address = $this->getAddress(); 56 56 $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, 67 67 'phone' => $this->getPhoneNumber() ? $this->getPhoneNumber()->get() : null, 68 68 'email' => $this->getEmailAddress() ? $this->getEmailAddress()->get() : null, 69 69 'ip_address' => $this->getIpAddress() ? $this->getIpAddress()->get() : null, 70 70 'locale' => $this->getLocale(), 71 'referrer' => $this->getReferrer() ,71 'referrer' => $this->getReferrer() ?: null, 72 72 'forwarded_ip' => $this->getForwardedIp() ? $this->getForwardedIp()->get() : null, 73 'user_agent' => $this->getUserAgent() ,73 'user_agent' => $this->getUserAgent() ?: null, 74 74 'reference' => $this->reference, 75 75 ]; … … 189 189 190 190 /** 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 /** 191 205 * @param string $reference 192 206 * @return $this -
multisafepay/trunk/vendor/multisafepay/php-sdk/src/Util/Version.php
r2951435 r2979525 18 18 class Version 19 19 { 20 public const SDK_VERSION = '5.11. 1';20 public const SDK_VERSION = '5.11.2'; 21 21 22 22 /** -
multisafepay/trunk/vendor/multisafepay/php-sdk/src/ValueObject/Customer.php
r2927749 r2979525 156 156 157 157 /** 158 * @return IpAddress 158 * @return IpAddress|null 159 159 */ 160 160 public function getIpAddress(): ?IpAddress … … 164 164 165 165 /** 166 * @return EmailAddress 166 * @return EmailAddress|null 167 167 */ 168 168 public function getEmailAddress(): ?EmailAddress … … 172 172 173 173 /** 174 * @return Address 174 * @return Address|null 175 175 */ 176 176 public function getAddress(): ?Address … … 204 204 205 205 /** 206 * @return PhoneNumber 206 * @return PhoneNumber|null 207 207 */ 208 208 public function getPhoneNumber(): ?PhoneNumber
Note: See TracChangeset
for help on using the changeset viewer.