configure()
Configuration method for initializing the API. Please note this method should be called only once for the page load. After calling this method, API will provide configuration values as member variables.
Default wsVersion in the absence of a user provided configuration: 73
Default userLanguage in the absence of a user provided configuration: en-US
Usage Copied to clipboard
ThreeDS.configure(threedsConfig);
Example Copied to clipboard
ThreeDS.configure({ merchantId: "TESTMERCHANT", sessionId: "SESSION0002899787259G30902270H6", containerId: "ABC", callback: function() { if (ThreeDS.isConfigured()) console.log("Done with configure"); }, configuration: { userLanguage: "en-US", wsVersion: 73 } });
Arguments Copied to clipboard
Configuration values.
Merchant Id.
Hosted Session Id created for this session.
The <div> id in your html where the API will inject a hidden iframe.
A function that will be invoked once the API has been initialized.
JSON value supporting data elements like userLanguage, REST API version (wsVersion).
A language identifier or IETF language tag to control the language of the payment page displayed to the payer. For example, 'en_US', es, 'fr-CA'. By default, the language is 'en_US'.
The Web Services API version that you submitted the request in.
Return Value Copied to clipboard
None