'Payment callback: validate the order and write transaction details in chatter'

@api.multi
def _confirm_online_quote(self, transaction):

    if (transaction and (transaction.state == 'done')):
        transaction._confirm_so()
        message = (_('Order    paid    by    %s.    Transaction:    %s.    Amount:    %s.') % (transaction.partner_id.name, transaction.acquirer_reference, transaction.amount))
        self.message_post(body=message)
        return True
    return False
