From b4d8d1a186206f05c3e29eee639f52efa1cfed5a Mon Sep 17 00:00:00 2001 From: Julien Constant Date: Thu, 5 Jan 2023 23:46:43 +0100 Subject: [PATCH] Fixed wrong HMAC signature generation --- counter/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/counter/models.py b/counter/models.py index cfbc437e..ea8c2338 100644 --- a/counter/models.py +++ b/counter/models.py @@ -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 '\n' + xml + return '' + xml def __str__(self): return f"{self.first_name} {self.last_name}"