fix(unipay): transfer shows bank info page directly instead of QR code
This commit is contained in:
parent
be119368c5
commit
067510df65
@ -3,6 +3,13 @@ params_kw.amount = float(params_kw.amount)
|
||||
debug(f'recharge.dspy: {params_kw=}')
|
||||
try:
|
||||
code_url = await create_payment(request, params_kw)
|
||||
if params_kw.provider == 'transfer':
|
||||
return {
|
||||
"widgettype":"urlwidget",
|
||||
"mode":"replace",
|
||||
"target":"app.sage_main_content",
|
||||
"options":{"url": code_url}
|
||||
}
|
||||
qr_url = 'https://api.qrserver.com/v1/create-qr-code/?size=280x280&data=' + urllib.parse.quote(code_url, safe='')
|
||||
return {
|
||||
"widgettype":"NewWindow",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user