Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #80 from heidelpay/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
bnoobbnoob authored Sep 20, 2018
2 parents b088c78 + cf71900 commit 74861a3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

This project does not follow a versioning standard. Versions are crafted after the dates; for example, the version 17.7.25 was released on July, 25th in 2017

## 18.9.20

### Fixed
- An issue which resulted in an error on checkout with secured payment methods with magento security patch SUPEE-10888 (Magento Version 2.2.6).
- An issue concerning the versions of the dependencies.

## 18.8.9

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function isAvailable(\Magento\Quote\Api\Data\CartInterface $quote = null)
{
// in B2C payment methods, we don't want companies to be involved.
// so, if the address contains a company, return false.
if ($quote !== null && $quote->getBillingAddress()->getCompany() !== null) {
if ($quote !== null && !empty($quote->getBillingAddress()->getCompany())) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion PaymentMethods/HeidelpayInvoiceSecuredPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function isAvailable(\Magento\Quote\Api\Data\CartInterface $quote = null)
{
// in B2C payment methods, we don't want companies to be involved.
// so, if the address contains a company, return false.
if ($quote !== null && $quote->getBillingAddress()->getCompany() !== null) {
if ($quote !== null && !empty($quote->getBillingAddress()->getCompany())) {
return false;
}

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"magento/module-payment": "^100.0.0 | ^101.0.0",
"magento/module-backend": "^100.0.0 | ^101.0.0",
"magento/framework": "^100.0.0 | ^101.0.0",
"heidelpay/php-message-code-mapper": "~1.0.0",
"heidelpay/php-basket-api": "~1.0.1",
"heidelpay/php-payment-api": "~1.4.0"
"heidelpay/php-message-code-mapper": "~1.0",
"heidelpay/php-basket-api": "~1.0",
"heidelpay/php-payment-api": "~1.4"
},
"require-dev": {
"magento/marketplace-eqp": "~1.0.5",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Heidelpay_Gateway" schema_version="18.8.9" setup_version="18.8.9">
<module name="Heidelpay_Gateway" schema_version="18.9.20" setup_version="18.9.20">
<sequence>
<module name="Magento_Sales" />
<module name="Magento_Payment" />
Expand Down

0 comments on commit 74861a3

Please sign in to comment.