Merge pull request #3760 from expsa/dev_odex25_donation
Dev odex25 donation
This commit is contained in:
commit
e1fa9ade35
|
|
@ -52,7 +52,7 @@ class PaymentTransaction(models.Model):
|
|||
|
||||
if success_regex_1 or success_regex_2:
|
||||
date_validate = dateutil.parser.parse(data.get('timestamp')).astimezone(pytz.utc).replace(tzinfo=None)
|
||||
res.update(provider_reference=data.get('id'), date=date_validate)
|
||||
res.update(acquirer_reference=data.get('id'), date=date_validate)
|
||||
self._set_transaction_done()
|
||||
elif pending_regex_1 or pending_regex_2:
|
||||
self._set_transaction_pending()
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ class HyperPayPaymentTransaction(models.Model):
|
|||
]
|
||||
if re.match(success_pattern[0], result_code) or re.match(success_pattern[1], result_code):
|
||||
date_validate = dateutil.parser.parse(data.get('timestamp')).astimezone(pytz.utc).replace(tzinfo=None)
|
||||
res.update(provider_reference=data.get('id'), date=date_validate)
|
||||
res.update(acquirer_reference=data.get('id'), date=date_validate)
|
||||
self._set_transaction_done()
|
||||
elif re.match(pending_pattern[0], result_code) or re.match(pending_pattern[1], result_code):
|
||||
self._set_transaction_pending()
|
||||
|
|
|
|||
Loading…
Reference in New Issue