Community mailing list archives
Re: Payment notification URL for Odoo integration with third party webapplication.by
RemoteWave, Hugo Razera
you should take a look at the decorator @openerp.http.route and controllers: https://www.odoo.com/documentation/9.0/reference/http.html
def _poll(self, dbname, channels, last, options):
channels.append((request.db, 'pos.multi_session', request.uid))
return super(Controller, self)._poll(dbname, channels, last, options)
@openerp.http.route('/pos_multi_session/update', type="json", auth="public")
def multi_session_update(self, multi_session_id, message):
res = request.env["pos.multi_session"].browse(int(multi_session_id)).broadcast(message)
this code will create a web method of type json on the url: http://[yourodooaddress]//pos_multi_session/update. then you can code all your specific requirements.
El 18 feb 2016, a las 4:12 a.m., firstname.lastname@example.org escribió:Hello community, I am working on a project where i am supposed to integrate odoo with web application which manages online payment.Now in integration there is option where if customer directly pay at bank than bank sends response to client with the payment details.and to receive that response we have to provide a "Payment Notification Listener URL" to web application.They will link this URL with our profile ,and whenever any payment is made at bank branch directly instead of web,they will send payment notification.Now problem is i don't know how i can get this URL for odoo. I have very limited knowledge on web framework of odoo,so i would really love if anyone can help me on this. Thank you. Bhavik Vyas Team leader BrowseInfo.