课程内容

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);

 



额定值
0 0

目前没有任何评论。

成为第一个发表评论的人。