summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-01-22 13:41:59 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-01-22 13:41:59 (GMT)
commit79ac559a8669c47800968a31655c5efe812fc791 (patch)
treed64a02c5c9bcaa4752a7dab365457e0f38b6a923
parentae314c5643eeae0fe840b26543a77fb765f36697 (diff)
downloadeopayment-79ac559a8669c47800968a31655c5efe812fc791.zip
eopayment-79ac559a8669c47800968a31655c5efe812fc791.tar.gz
eopayment-79ac559a8669c47800968a31655c5efe812fc791.tar.bz2
sips2: extend transaction reference to 10 characters (#21331)v1.22
-rw-r--r--eopayment/sips2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/eopayment/sips2.py b/eopayment/sips2.py
index 6675781..584ec56 100644
--- a/eopayment/sips2.py
+++ b/eopayment/sips2.py
@@ -171,7 +171,7 @@ class Payment(PaymentCommon):
address=None, email=None, phone=None, orderid=None,
info1=None, info2=None, info3=None, next_url=None, **kwargs):
data = self.get_data()
- transaction_id = self.transaction_id(6, string.digits, 'sips2', data['merchantId'])
+ transaction_id = self.transaction_id(10, string.digits, 'sips2', data['merchantId'])
data['transactionReference'] = unicode(transaction_id)
data['orderId'] = orderid or unicode(uuid.uuid4()).replace('-', '')
if info1: