Skip to content

Commit

Permalink
Merge pull request #66 from mollie/release/1.12.1
Browse files Browse the repository at this point in the history
Release/1.12.1
  • Loading branch information
Marvin-Magmodules authored Jul 28, 2023
2 parents 7264fb2 + 99e3a4e commit e4d579e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function execute(Observer $observer)
private function getPayment(OrderInterface $order)
{
$transactionId = $order->getPayment()->getAdditionalInformation()['mollie_id'];
if (preg_match('/^ord_\w+$/', $transactionId)) {
if (substr($transactionId, 0, 4) == 'ord_') {
$order = $this->mollieApi->orders->get($transactionId, ['embed' => 'payments']);

return $order->payments()->offsetGet(0);
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "mollie/magento2-subscriptions",
"description": "Mollie subscriptions extension for Magento 2",
"type": "magento2-module",
"version": "1.12.0",
"version": "1.12.1",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"magento/framework": ">=102.0.0",
"mollie/magento2": ">=2.27.0",
"mollie/magento2": ">=2.29.1",
"beberlei/assert": "*",
"ext-json": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<default>
<mollie_subscriptions>
<general>
<version>v1.12.0</version>
<version>v1.12.1</version>
<enable>0</enable>
<debug>1</debug>
</general>
Expand Down

0 comments on commit e4d579e

Please sign in to comment.