From 70203e7c37b086759b10d70fc652c65f4a7d9cc0 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 12 Oct 2020 16:10:54 +0200 Subject: [PATCH] dummy: use uuid4() instead of transaction_id() (#47584) --- eopayment/dummy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eopayment/dummy.py b/eopayment/dummy.py index 7e207bb..1fc049b 100644 --- a/eopayment/dummy.py +++ b/eopayment/dummy.py @@ -14,8 +14,9 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -import string import logging +import string +import uuid import warnings from six.moves.urllib.parse import parse_qs, urlencode @@ -149,7 +150,7 @@ class Payment(PaymentCommon): '%s amount %s name %s address %s email %s phone %s' ' next_url %s info1 %s info2 %s info3 %s kwargs: %s', __name__, amount, name, address, email, phone, info1, info2, info3, next_url, kwargs) - transaction_id = self.transaction_id(30, ALPHANUM, 'dummy', self.siret) + transaction_id = str(uuid.uuid4().hex) normal_return_url = self.normal_return_url if next_url and not normal_return_url: warnings.warn("passing next_url to request() is deprecated, " -- 2.28.0