Merge pull request #4136 from expsa/ENS-3595

[FIX] payment_applepay: bug in check
This commit is contained in:
abdurrahman-saber 2025-08-06 00:19:48 +03:00 committed by GitHub
commit f03c47e0f5
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 @api.model
def _applepay_form_get_tx_from_data(self, data): def _applepay_form_get_tx_from_data(self, data):
reference, txn_id = data.get('ndc'), data.get('tx_id') reference, txn_id = data.get('ndc'), data.get('tx_id')
if not reference or not txn_id: if not txn_id:
error_msg = _('ApplePay: received data with missing reference (%s) or txn_id (%s)') % (reference, txn_id) error_msg = _('ApplePay: received data with missing transaction id (%s)') % (txn_id)
_logger.info(error_msg) _logger.info(error_msg)
raise ValidationError(error_msg) raise ValidationError(error_msg)