Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Website sale get payment return_url like /payment/alipay/return can't redirect to /shop/payment/validate page

chen rong
on 3/31/15, 5:14 AM 598 views

So I modify like below ,is it right?

@http.route('/payment/alipay/return/', type='http', auth="none",methods=['GET'])

def alipay_return(self, **post):

      """ alipay Return """

      _logger.info('Beginning alipay Return form_feedback with post data %s', pprint.pformat(post))

      res = self.alipay_validate_data(**post)

      if res:

          return_url = '/shop/payment/validate'


          return_url = '/shop/cart'

return werkzeug.utils.redirect(return_url)

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 3/31/15, 5:14 AM
Seen: 598 times
Last updated: 3/31/15, 5:14 AM