Projet

Général

Profil

0001-dummy-use-uuid4-instead-of-transaction_id-47584.patch

Benjamin Dauvergne, 12 octobre 2020 16:11

Télécharger (1,32 ko)

Voir les différences:

Subject: [PATCH] dummy: use uuid4() instead of transaction_id() (#47584)

 eopayment/dummy.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
eopayment/dummy.py
14 14
# You should have received a copy of the GNU Affero General Public License
15 15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 16

  
17
import string
18 17
import logging
18
import string
19
import uuid
19 20
import warnings
20 21

  
21 22
from six.moves.urllib.parse import parse_qs, urlencode
......
149 150
            '%s amount %s name %s address %s email %s phone %s'
150 151
            ' next_url %s info1 %s info2 %s info3 %s kwargs: %s',
151 152
            __name__, amount, name, address, email, phone, info1, info2, info3, next_url, kwargs)
152
        transaction_id = self.transaction_id(30, ALPHANUM, 'dummy', self.siret)
153
        transaction_id = str(uuid.uuid4().hex)
153 154
        normal_return_url = self.normal_return_url
154 155
        if next_url and not normal_return_url:
155 156
            warnings.warn("passing next_url to request() is deprecated, "
156
-