Skip to content

Commit acd25e5

Browse files
authored
Merge pull request #31 from kodbruket/v.1.3.1
Version 1.3.1
2 parents 0f4769f + 2206daa commit acd25e5

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

Model/Api/Transaction.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,12 @@ public function updateMetadata($quote, $metadata, $merge = true)
232232

233233
$transaction = json_decode($transaction, true);
234234

235-
$existingMetaData = $transaction['metadata'];
236-
$data['metadata'] = array_merge_recursive($existingMetaData, $metadata);
235+
if (array_key_exists('metadata', $transaction)) {
236+
$existingMetaData = $transaction['metadata'];
237+
$data['metadata'] = array_merge_recursive($existingMetaData, $metadata);
238+
} else {
239+
$data['metadata'] = $metadata;
240+
}
237241
} else {
238242
$data['metadata'] = $metadata;
239243
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mondido/magento2-mondido",
33
"description": "Mondido payment module for Magento 2.",
4-
"version": "1.3.0",
4+
"version": "1.3.1",
55
"type": "magento2-module",
66
"repositories": [
77
{

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
3-
<module name="Mondido_Mondido" setup_version="1.3.0">
3+
<module name="Mondido_Mondido" setup_version="1.3.1">
44
<sequence>
55
<module name="Magento_Checkout"/>
66
<module name="Magento_Payment"/>

0 commit comments

Comments
 (0)