from odoo.http import Controller, request, route from odoo.addons.payment.logging import get_payment_logger _logger = get_payment_logger(__name__) class InteracController(Controller): _process_url = '/payment/interac/process' @route(_process_url, type='http', auth='public', methods=['POST'], csrf=False) def interac_process_transaction(self, **post): _logger.info("Handling Interac processing with reference %s", post.get('reference')) request.env['payment.transaction'].sudo()._process('interac', post) return request.redirect('/payment/status')