Skip to content

Commit

Permalink
PT-1774: Magento2-Shirtracer-LIVE - Error in CreateOrder observer. (#111
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ivan-pugach-mondu authored Aug 7, 2024
1 parent 2e71eb1 commit 1a1d129
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Helpers/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ public function logTransaction($order, $response, $addons = null, $paymentMethod
'is_confirmed' => 1,
'invoice_iban' => $response['merchant']['viban'] ?? null,
'external_data' => json_encode([
'merchant_company_name' => $response['merchant']['company_name'] ?: null,
'buyer_country_code' => $response['content_configuration']['buyer_country_code'] ?: null,
'bank_account' => $response['bank_account'] ?: null
'merchant_company_name' => isset($response['merchant']['company_name']) ? $response['merchant']['company_name'] : null,
'buyer_country_code' => isset($response['content_configuration']['buyer_country_code']) ? $response['content_configuration']['buyer_country_code'] : null,
'bank_account' => isset($response['bank_account']) ? $response['bank_account'] : null
])
];
$monduLogger->addData($logData);
Expand Down
2 changes: 1 addition & 1 deletion Plugin/AddTemplateVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function beforeSetVars(
'countryId' => $externalData['buyer_country_code'] ?: $billingAddress->getCountryId(),
'merchant_company_name' => $externalData['merchant_company_name'],
'bank_account' => $externalData['bank_account'],
'invoiceId' => $vars['invoice']->getIncrementId(),
'invoiceId' => isset($vars['invoice']) && $vars['invoice']->getIncrementId() ? $vars['invoice']->getIncrementId() : '',
'iban' => $monduLog['invoice_iban'],
'paymentMethod' => $vars['order']->getPayment()->getMethodInstance()->getTitle(),
'netTerms' => isset($monduLog['authorized_net_term']) ? $monduLog['authorized_net_term'] : ''
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mondu_gmbh/magento2-payment",
"description": "Mondu payment method for magento 2",
"type": "magento2-module",
"version": "2.3.7",
"version": "2.3.8",
"license": [
"MIT"
],
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Mondu_Mondu" setup_version="2.3.7">
<module name="Mondu_Mondu" setup_version="2.3.8">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Payment"/>
Expand Down

0 comments on commit 1a1d129

Please sign in to comment.