[FIX] payment_applepay: bug in check

This commit is contained in:
Abdurrahman Saber 2025-08-06 00:18:20 +03:00
parent d8d191a400
commit 39e1fb339d
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)