From 39e1fb339d8fd6913885174cc7de7c8dca07c5be Mon Sep 17 00:00:00 2001 From: Abdurrahman Saber Date: Wed, 6 Aug 2025 00:18:20 +0300 Subject: [PATCH] [FIX] payment_applepay: bug in check --- .../payment_applepay/models/payment_transaction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odex25_donation/payment_applepay/models/payment_transaction.py b/odex25_donation/payment_applepay/models/payment_transaction.py index 0ba170d22..53b1d910f 100644 --- a/odex25_donation/payment_applepay/models/payment_transaction.py +++ b/odex25_donation/payment_applepay/models/payment_transaction.py @@ -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)