Fixed wrong HMAC signature generation

This commit is contained in:
Théo DURR
2023-01-05 22:55:14 +01:00
parent 14cd268d69
commit 3cf7be9aae
2 changed files with 2 additions and 2 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}"