Skip to content

Commit 213fbb5

Browse files
PT-1622: Plugin does not sent all the buyer data for logged in buyers. (#73)
1 parent eb229f6 commit 213fbb5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mondu/shopware6-payment",
33
"description": "Mondu payment for Shopware 6",
4-
"version": "1.3.0",
4+
"version": "1.4.0",
55
"type": "shopware-platform-plugin",
66
"license": "proprietary",
77
"authors": [

src/Components/PaymentMethod/PaymentHandler/MonduHandler.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ protected function getOrderData(AsyncPaymentTransactionStruct $transaction, Sale
138138
'phone' => $order->getBillingAddress()->getPhoneNumber(),
139139
'address_line1' => $order->getBillingAddress()->getStreet(),
140140
'zip_code' => $order->getBillingAddress()->getZipCode(),
141-
'is_registered' => !$order->getOrderCustomer()->getCustomer()->getGuest()
141+
'is_registered' => !$order->getOrderCustomer()->getCustomer()->getGuest(),
142+
'external_reference_id' => $order->getOrderCustomer()->getCustomer()->getCustomerNumber(),
143+
'account_created_at' => $order->getOrderCustomer()->getCustomer()->getCreatedAt(),
144+
'account_updated_at' => $order->getOrderCustomer()->getCustomer()->getUpdatedAt(),
145+
142146
],
143147
'billing_address' => [
144148
'address_line1' => $order->getBillingAddress()->getStreet(),

0 commit comments

Comments
 (0)