Skip to content

Commit

Permalink
Release 4.0.32
Browse files Browse the repository at this point in the history
  • Loading branch information
sauliususoniswallee committed Apr 29, 2022
1 parent ddfe2de commit c540cc5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 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.31/docs/en/documentation.html)
[Documentation](https://plugin-documentation.wallee.com/wallee-payment/shopware-6/4.0.32/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.31"
"version": "4.0.32"
}
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.31/">
<a href="https://github.com/wallee-payment/shopware-6/releases/tag/4.0.32/">
Source
</a>
</li>
Expand Down
12 changes: 10 additions & 2 deletions src/Core/Util/Payload/TransactionPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,12 @@ protected function getAddressPayload(CustomerEntity $customer, CustomerAddressEn

$organization_name = !empty($organization_name) ? $this->fixLength($organization_name, 100) : null;

// salesTaxNumber
$salesTaxNumber = null;
$vatIds = $customer->getVatIds();
if (!empty($vatIds)) {
$salesTaxNumber = $vatIds[0];
}
// Salutation
$salutation = null;
if (!(
Expand Down Expand Up @@ -536,7 +542,8 @@ protected function getAddressPayload(CustomerEntity $customer, CustomerAddressEn
'family_name' => $family_name,
'given_name' => $given_name,
'organization_name' => $organization_name,
'phone_number' => $customerAddressEntity->getPhoneNumber() ? $this->fixLength($customerAddressEntity->getPhoneNumber(), 100) : null,
'sales_tax_number' => $salesTaxNumber,
'phone_number' => $customerAddressEntity->getPhoneNumber() ? $this->fixLength($customerAddressEntity->getPhoneNumber(), 100) : null,
'postcode' => $customerAddressEntity->getZipcode() ? $this->fixLength($customerAddressEntity->getZipcode(), 40) : null,
'postal_state' => $customerAddressEntity->getCountryState() ? $customerAddressEntity->getCountryState()->getShortCode() : null,
'salutation' => $salutation,
Expand All @@ -551,7 +558,8 @@ protected function getAddressPayload(CustomerEntity $customer, CustomerAddressEn
->setFamilyName($addressData['family_name'])
->setGivenName($addressData['given_name'])
->setOrganizationName($addressData['organization_name'])
->setPhoneNumber($addressData['phone_number'])
->setSalesTaxNumber($addressData['sales_tax_number'])
->setPhoneNumber($addressData['phone_number'])
->setPostCode($addressData['postcode'])
->setPostalState($addressData['postal_state'])
->setSalutation($addressData['salutation'])
Expand Down
3 changes: 2 additions & 1 deletion src/Resources/public/administration/js/wallee-payment.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit c540cc5

Please sign in to comment.