22 lines
662 B
Python
22 lines
662 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
import logging
|
|
import pprint
|
|
|
|
import werkzeug
|
|
|
|
from odoo import http
|
|
from odoo.http import request
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
|
|
class PayuLatamController(http.Controller):
|
|
_return_url = '/payment/payulatam/return'
|
|
|
|
@http.route(_return_url, type='http', auth='public', methods=['GET'])
|
|
def payulatam_return(self, **data):
|
|
_logger.info("entering _handle_feedback_data with data:\n%s", pprint.pformat(data))
|
|
request.env['payment.transaction'].sudo()._handle_feedback_data('payulatam', data)
|
|
return werkzeug.utils.redirect('/payment/status')
|