dummy: use uuid4() instead of transaction_id() (#47584)

This commit is contained in:
Benjamin Dauvergne 2020-10-12 16:10:54 +02:00
parent ed22f7e182
commit 3256b346f2
1 changed files with 2 additions and 3 deletions

View File

@ -14,8 +14,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import string
import logging
import uuid
import warnings
from six.moves.urllib.parse import parse_qs, urlencode
@ -37,7 +37,6 @@ def N_(message):
SERVICE_URL = 'http://dummy-payment.demo.entrouvert.com/'
ALPHANUM = string.ascii_letters + string.digits
LOGGER = logging.getLogger(__name__)
@ -140,7 +139,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')
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, "