eopayment: transaction_id must always be equals to refdet (#30485)
As only refdet is returned by TIPI we can't generate transaction_id that differs from it.
This commit is contained in:
parent
70c1a1b5db
commit
144f227dfc
|
@ -118,9 +118,7 @@ class Payment(PaymentCommon):
|
|||
objet = orderid + (' ' + objet) if objet else ''
|
||||
if not refdet:
|
||||
refdet = self._generate_refdet()
|
||||
transaction_id = refdet
|
||||
else:
|
||||
transaction_id = '%s_%s' % (refdet, random.randint(1, 1000000000))
|
||||
transaction_id = refdet
|
||||
# check objet or fix objet
|
||||
if objet is not None:
|
||||
try:
|
||||
|
@ -163,14 +161,9 @@ class Payment(PaymentCommon):
|
|||
raise ResponseError('missing refdet or resultrans')
|
||||
for key, value in fields.items():
|
||||
fields[key] = value[0]
|
||||
refdet = fields.get('refdet')
|
||||
if refdet is None:
|
||||
transaction_id = fields.get('refdet')
|
||||
if transaction_id is None:
|
||||
raise ResponseError('refdet is missing')
|
||||
if 'objet' in fields:
|
||||
iso_now = fields['objet']
|
||||
else:
|
||||
iso_now = isonow()
|
||||
transaction_id = '%s_%s' % (iso_now, refdet)
|
||||
|
||||
result = fields.get('resultrans')
|
||||
if result == 'P':
|
||||
|
|
Loading…
Reference in New Issue