课程内容

3D Secure 2 implementation using the Pop-Up Method

Merchants can initiate 3D secure  with the applicable set of parameters to the 3DS 2 endpoint -  threedsecure/EnrollmentInitial  by rendering a pop-up modal. 

Before initiating 3DS 2 requests, merchants must ensure the following

Mandatory Requirements

 jQuery & Bootstrap libraries are required.

Step1:  Initialize the popup   

Include the following javascript code on your webpage that you want to initiate 3DS from:

$(document).ready(function () { 

    tdsboxInitialise('[portal domain]',  

    tdsboxComplete); 

}); 

 Step2:  Load the popup and show the modal dialog  

function loadModal() { 

    var jsonObject = { 

            ApplicationID : $("#ApplicationID").val(), 

            MerchantReference : $("#MerchantReference").val(), 

            Amount : $("#Amount").val(), 

            Currency : $("#Currency").val(), 

            PAN : $("#PAN").val(), 

            ExpiryDate : $("#ExpiryDate").val() 

        }; 

    var data = JSON.stringify(jsonObject);             

    tdsboxSubmit(data);             

Step 3:  Gets the response back after 3DS 2 Completes

function tdsboxComplete(data) {

alert(data);

 



视图
330 总浏览
1 成员的观点
836 公众浏览
操作
0 喜爱
0 不喜欢
0 注释
分享到社交网络
分享链接
通过邮件分享

登录 分享这个 webpage 通过电子邮件。