[FIX] payment_applepay, payment_hyperpay: change provider reference

This commit is contained in:
Abdurrahman Saber 2025-07-06 13:39:26 +03:00
parent 37d439e787
commit ee01e06baf
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()