This question has been flagged
3097 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)

Avatar
Discard