Commit 0503bb07 authored by Xiaowu Zhang's avatar Xiaowu Zhang

slapos_wechat: payment url format is changed

parent 4bffd58f
......@@ -18,7 +18,8 @@ def wrapWithShadow(payment_transaction, web_site, person_relative_url):
title='User navigation script for %s' % payment_transaction.getTitle(),
destination_section=person_relative_url,
)
if web_site:
context.REQUEST.set('base_url', '%s/wechat_payment' % web_site.absolute_url())
system_event.generateManualPaymentPage()
return system_event.contentValues(
......
......@@ -16,6 +16,11 @@ wechat_dict = {
'body': "Rapid Space Virtual Machine".encode('utf-8')
}
base_url = context.REQUEST.get('base_url', '')
if base_url:
wechat_dict['base_url'] = base_url
html_document = context.WechatEvent_callWechatServiceNavigation(state_change, wechat_dict)
wechat_event.newContent(
title='Shown Page',
......
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