[FIX] payment_applepay: bug in check
This commit is contained in:
parent
d8d191a400
commit
39e1fb339d
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue