Initialization Methods
Initialization involves running the UI SDK on your site. The user interface's aesthetics and functionality are dynamically determined by the sdkConfiguration
configuration object's contents, as detailed in Configure Solution Behavior.
Simple
Choose this option if you use public exchange rates. This approach is best for general use cases.
Pass the sdkConfiguration
object with your Client ID and other configuration parameters to the SDK. The SDK will authenticate and generate the user experience automatically. If you use quote currencies different from your base currency, DT One’s exchange rates (powered by XE) will be applied.
Advanced
Choose this option if you use custom exchange rates. Only available with Integration Mode: UI-SDK
(see Choose an Integration Mode).
Initialize the SDK via a server-side API call using your API Key and Secret. This allows more control over currency conversion and session management.
DTOneSDK(sdkConfig).catch((error) => console.log(error));
Updated 2 months ago