Javascript SDK

Learn how to call a payment window using the i'mport SDK.

You can use the iโ€™mport JavaScript SDK to open the payment or identity verification window from your website or app. For version history and notable changes in each version, refer to the Release Notes.

Loading SDK Library

To use the iโ€™mport JavaScript SDK, you must first load the library on the page as shown below. It is recommended to load it from the CDN ({SDK-latest-version}.js). When the library is loaded, you can call IMP functions by accessing the IMP global object as a property of the window object.

<!-- jQuery --> <script type="text/javascript" src="" ></script> <!-- iamport.payment.js --> <script type="text/javascript" src="{SDK-latest-version}.js" ></script>

You must install jQuery 1.0 or later version.

If you cannot use CDN, use the following:{SDK-latest-version}.js