Commit 4fe39328 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_wechat_secure_payment: possible to define custom base_url

fix also can't get parameter thought request for current url format
parent 5d2a6b37
......@@ -248,10 +248,10 @@ class WechatService(XMLObject):
'In Navigate', error=False)
portal = self.getPortalObject()
base_url = portal.absolute_url()
base_url = wechat_dict.pop('base_url', '%s/#wechat_payment' % portal.absolute_url())
return self.REQUEST.RESPONSE.redirect(
"%s/#wechat_payment?trade_no=%s&price=%s&payment_url=%s" % (
"%s?trade_no=%s&price=%s&payment_url=%s" % (
base_url,
wechat_dict['out_trade_no'],
wechat_dict['total_fee'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment