Skip to content

Commit

Permalink
Release 4.0.30
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrowanwallee committed Apr 5, 2022
1 parent 61f063c commit c714058
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ tail -f var/log/wallee_payment*.log

## Documentation

[Documentation](https://plugin-documentation.wallee.com/wallee-payment/shopware-6/4.0.29/docs/en/documentation.html)
[Documentation](https://plugin-documentation.wallee.com/wallee-payment/shopware-6/4.0.30/docs/en/documentation.html)

## License

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@
"wallee/sdk": "3.0.1"
},
"type": "shopware-platform-plugin",
"version": "4.0.29"
"version": "4.0.30"
}
2 changes: 1 addition & 1 deletion docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/wallee-payment/shopware-6/releases/tag/4.0.29/">
<a href="https://github.com/wallee-payment/shopware-6/releases/tag/4.0.30/">
Source
</a>
</li>
Expand Down
8 changes: 8 additions & 0 deletions src/Core/Util/Payload/TransactionPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ public function get(): TransactionCreate
'space_view_id' => $this->settings->getSpaceViewId() ?? null,
];

// we have to manually check for these additional fields as they might not be active
if (!empty($additionalAddress1 = $customer->getDefaultBillingAddress()->getAdditionalAddressLine1())) {
$transactionData['meta_data']['additionalAddress1'] = $additionalAddress1;
}
if (!empty($additionalAddress2 = $customer->getDefaultBillingAddress()->getAdditionalAddressLine2())) {
$transactionData['meta_data']['additionalAddress2'] = $additionalAddress2;
}

$transactionPayload = (new TransactionCreate())
->setAutoConfirmationEnabled(false)
->setBillingAddress($billingAddress)
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/administration/js/wallee-payment.js

Large diffs are not rendered by default.

0 comments on commit c714058

Please sign in to comment.