3ds bug fix

master
yixian 4 years ago
parent 634f7261ca
commit 40c158de6e

@ -97,6 +97,8 @@ info:
servers:
- url: https://mpay.royalpay.com.au/api/v1.0
description: production
- url: https://au.rpaygroup.com/api/v1.0
description: proxy
- url: https://sandbox.royalpay.com.au/api/v1.0
description: sandbox
tags:
@ -610,7 +612,7 @@ paths:
summary: 卡支付下单
x-sort-order: 0
description: |
商户可在页面引入https://channel.rpayplus.com/channel/v1/view/card_input_frame.js
商户可在页面引入https://channel-gateway.royalpay.com.au/channel/v1/view/card_input_frame.js
并通过回调取得key_id和secret信息并将其作为卡信息提交给royalpay直接完成下单支付。
js引用案例

@ -14,7 +14,7 @@ $(function () {
if (res.sdk_params) {
let threeDsParams = JSON.parse(res.sdk_params);
let form = $('<form></form>').attr('action', threeDsParams.acs_url).attr('method', 'post').css('display', 'none');
$('<input>').attr('name', 'paReq').val(threeDsParams.pa_req).attr('type', 'hidden').appendTo(form);
$('<input>').attr('name', 'PaReq').val(threeDsParams.pa_req).attr('type', 'hidden').appendTo(form);
$('<input>').attr('name', 'TermURL').val(threeDsParams.term_url).attr('type', 'hidden').appendTo(form);
$('body').append(form);
form.submit();

Loading…
Cancel
Save