popup: true
when calling IMP.request_pay(param, callback)
. The callback
function is called after the payment process is completed. Previous versions only support the page redirection mode. IMP.request_pay({
pg: "paypal",
popup: true,
// ... Other parameters omitted ...
}, function(rsp) {
if ( rsp.success ) {
// Payment successful
} else {
// Payment failed or terminated
}
});
m_redirect_url
when calling IMP.certification(param)
. Previous versions only support the callback mode.
For more information about using the redirection mode, refer to the Mobile Identity Verification page. // popup : true
IMP.certification({
merchant_uid : "Transaction ID",
popup: true
}, function(rsp) {
if ( rsp.success ) {
// Verification successful
} else {
//Verification failed or terminated (popup closed or Cancel button clicked)
}
});
IMP.certification(param)
is invoked. This fix implements the same behavior for when the X button is clicked.