Fix 3DSv2 implementation (#542)

* Fixed wrong HMAC signature generation

* Fix xml du panier

Co-authored-by: Julien Constant <julienconstant190@gmail.com>
This commit is contained in:
Théo DURR
2023-01-06 20:02:45 +01:00
committed by GitHub
parent 7079761ffe
commit fe8b8f46aa
2 changed files with 7 additions and 4 deletions

View File

@ -181,7 +181,7 @@ class BillingInfo(models.Model):
if self.address_2:
data["Address"]["Address2"] = self.address_2
xml = dict2xml(data, wrap="Billing", newlines=False)
return '<?xml version="1.0" encoding="UTF-8" ?>\n' + xml
return '<?xml version="1.0" encoding="UTF-8" ?>' + xml
def __str__(self):
return f"{self.first_name} {self.last_name}"