(self, provider, data)
return tx
Find the transaction based on the feedback data.

        :param str provider: The provider of the acquirer that handled the transaction
        :param dict data: The feedback data sent by the acquirer
        :return: The transaction if found
        :rtype: recordset of `payment.transaction`
Find the transaction based on the feedback data.
Find the transaction based on the feedback data .
def _get_tx_from_feedback_data(self, provider, data):
        """ Find the transaction based on the feedback data.

        :param str provider: The provider of the acquirer that handled the transaction
        :param dict data: The feedback data sent by the acquirer
        :return: The transaction if found
        :rtype: recordset of `payment.transaction`
        """
        tx = super()._get_tx_from_feedback_data(provider, data)
        if provider != 'authorize':
            return tx

        reference = data.get('reference')
        tx = self.search([('reference', '=', reference), ('provider', '=', 'authorize')])
        if not tx:
            raise ValidationError(
                "Authorize.Net: " + _("No transaction found matching reference %s.", reference)
            )
        return tx
def _get_tx_from_feedback_data ( self , provider , data ) : tx = super ( ) . _get_tx_from_feedback_data ( provider , data ) if provider != 'authorize' : return tx reference = data . get ( 'reference' ) tx = self . search ( [ ( 'reference' , '=' , reference ) , ( 'provider' , '=' , 'authorize' ) ] ) if not tx : raise ValidationError ( "Authorize.Net: " + _ ( "No transaction found matching reference %s." , reference ) ) return tx