Skip to content

Commit

Permalink
Hotfix buyer external reference (#86)
Browse files Browse the repository at this point in the history
* Hotfix for buyer external reference id must be a string

* version bump
  • Loading branch information
tikohov20 authored Jul 13, 2023
1 parent 30144d1 commit 2745bf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Model/Request/Transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private function getBuyerParams(Quote $quote): array
if (($billing = $quote->getBillingAddress()) !== null) {
$params = [
'is_registered' => (bool) $quote->getCustomer()->getId(),
'external_reference_id' => $quote->getCustomerId() ? $quote->getCustomerId() : null,
'external_reference_id' => $quote->getCustomerId() ? (string) $quote->getCustomerId() : null,
'email' => $billing->getEmail() ??
$quote->getShippingAddress()->getEmail() ??
$quote->getCustomerEmail() ??
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.0.2",
"version": "2.0.3",
"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.0.2">
<module name="Mondu_Mondu" setup_version="2.0.3">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Payment"/>
Expand Down

0 comments on commit 2745bf5

Please sign in to comment.