Skip to content

Commit

Permalink
Merge pull request #13 from NicolasBarbey/main
Browse files Browse the repository at this point in the history
Main
  • Loading branch information
NicolasBarbey committed Jun 27, 2024
2 parents 5a2db1d + 6811328 commit af70d01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<descriptive locale="fr_FR">
<title>Paiement en carte bancaire avec Paybox</title>
</descriptive>
<version>2.2.3</version>
<version>2.2.4</version>
<author>
<name>Franck Allimant</name>
<email>franck@cqfdev.fr</email>
Expand Down
8 changes: 4 additions & 4 deletions Paybox.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ protected function getBilling(Order $order): array|bool|string
$billingXml = new \SimpleXMLElement('<Billing/>');
$addressXml = $billingXml->addChild('Address');

$addressXml?->addChild('FirstName', htmlentities($address->getFirstname()));
$addressXml?->addChild('LastName', htmlentities($address->getLastname()));
$addressXml?->addChild('Address1', htmlentities($address->getAddress1()));
$addressXml?->addChild('FirstName', $address->getFirstname());
$addressXml?->addChild('LastName', $address->getLastname());
$addressXml?->addChild('Address1', $address->getAddress1());
$addressXml?->addChild('ZipCode', $address->getZipcode());
$addressXml?->addChild('City', htmlentities($address->getCity()));
$addressXml?->addChild('City', $address->getCity());
$addressXml?->addChild('CountryCode', $address->getCountry()->getIsocode());

return str_replace(["\n", "\r"], '', $billingXml->asXML());
Expand Down

0 comments on commit af70d01

Please sign in to comment.