Skip to content
Browse files

[FIX] payment_payulatam: fix transaction reconsiliation

The reconsiliation code was looking for the aquirer_reference instead of
the reference to find out the corresponding transaction. Which leads to
not finding the corresponding transaction.

This behavior comes from the creation of the moule setting its own tests
in error in PR: #24802
  • Loading branch information...
pimodoo committed Feb 22, 2019
1 parent 1af67ff commit 76722b58073c598cd29da03d2da4d99d998399b1
Showing with 2 additions and 3 deletions.
  1. +1 −1 addons/payment_payulatam/models/
  2. +1 −2 addons/payment_payulatam/tests/
@@ -82,7 +82,7 @@ def _payulatam_form_get_tx_from_data(self, data):
if not reference or not txnid or not sign:
raise ValidationError(_('PayUlatam: received data with missing reference (%s) or transaction id (%s) or sign (%s)') % (reference, txnid, sign))

transaction =[('acquirer_reference', '=', reference)])
transaction =[('reference', '=', reference)])

if not transaction:
error_msg = (_('PayUlatam: received data for reference %s; no order found') % (reference))
@@ -121,10 +121,9 @@ def test_20_payulatam_form_management(self):
'amount': 0.01,
'reference': 'test_ref_2',
'reference': 'test_ref_10',
'partner_name': 'Norbert Buyer',
'acquirer_reference': 'test_ref_10',
'partner_id': self.buyer_id})

# validate transaction

0 comments on commit 76722b5

Please sign in to comment.
You can’t perform that action at this time.