Odoo Help

0

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

By
chen rong
on 3/31/15, 5:14 AM 806 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'

      else:

          return_url = '/shop/cart'

return werkzeug.utils.redirect(return_url)

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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