📚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 (https://cdn.iamport.kr/js/iamport.payment-{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.

HTML
<!-- jQuery -->
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.min.js" ></script>
<!-- iamport.payment.js -->
<script type="text/javascript" src="https://cdn.iamport.kr/js/iamport.payment-{SDK-latest-version}.js"></script>

You must install jQuery 1.0 or later version.

If you cannot use CDN, use the following: https://service.iamport.kr/js/iamport.payment-{SDK-latest-version}.js

Last updated