🥏2. Request verification
Call the mobile identity verification window.
The mobile identity verification window can be invoked in the following two modes:
Popup (Default)
Opens the identity verification popup window. When verification is complete, post-processing is performed through the
callbackfunction specified as the second argument ofIMP.certification.
Redirection (applicable in mobile environment only)
Redirects to the identity verification page by setting
param.popuptofalse (default)in a mobile environment. When verification is complete, the page is redirected back to the URL specified byparam.m_redirect_url.To use the popup (default) mode, set
param.popuptotrue.In environments where popups are blocked, such as WebView, it is recommended to set
popuptofalse.
Redirection mode
Redirection is supported in i'mport JavaScript SDK 1.1.7 or later versions.
The following example calls the mobile identity verification window.
  // Call IMP.certification(param, callback)
  IMP.certification({ // param
    merchant_uid: "ORD20180131-0000011", // Order ID
    m_redirect_url : "{Redirect URL}", // Required when popup:false in mobile, Example: https://www.myservice.com/payments/complete/mobile
    popup : false // Always set to true in PC
  }, function (rsp) { // callback
    if (rsp.success) {
      ...,
      // When verification is successful,
      ...
    } else {
      ...,
      // When verification fails,
      ...
    }
  });Check the parameters list for requesting the mobile identity verification window.
  // Call IMP.certification(param, callback)
  IMP.certification({ // param
    merchant_uid: "ORD20180131-0000011", // Order ID
    m_redirect_url : "{Redirect URL}", // Required when popup:false in mobile, Example: https://www.myservice.com/payments/complete/mobile
    popup : false // Always set to true in PC
  }, rsp => { // callback
    if (rsp.success) {
      ...,
      // When verification is successful,
      ...
    } else {
      ...,
      // When verification fails,
      ...
    }
  });Last updated
