Merge pull request #4137 from expsa/dev_odex25_donation

Dev odex25 donation
This commit is contained in:
abdurrahman-saber 2025-08-06 00:20:52 +03:00 committed by GitHub
commit 19012fe59b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ class PaymentTransaction(models.Model):
@api.model
def _applepay_form_get_tx_from_data(self, data):
reference, txn_id = data.get('ndc'), data.get('tx_id')
if not reference or not txn_id:
error_msg = _('ApplePay: received data with missing reference (%s) or txn_id (%s)') % (reference, txn_id)
if not txn_id:
error_msg = _('ApplePay: received data with missing transaction id (%s)') % (txn_id)
_logger.info(error_msg)
raise ValidationError(error_msg)