Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVDโs backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
cordova-plugin-iamport-kcp
Advanced tools
์์ํฌํธ KCP๊ฒฐ์ ๋ฐ ํด๋ํฐ ๋ณธ์ธ์ธ์ฆ์ cordova ํ๊ฒฝ์์ ์ฐ๋ํ๊ธฐ ์ํ ํ๋ฌ๊ทธ์ธ์ ๋๋ค.
๊ฒฐ์ ํ
์คํธ๊น์ง ์ํํ๊ธฐ ์ํด์๋ ์์ํฌํธ ๊ด๋ฆฌ์ ํ์ด์ง ์์ ๊ณ์ ์์ฑ์ด ํ์ํฉ๋๋ค.
๊ณ์ ์์ฑ ํ ์์คํ
์ค์ > ๋ด์ ๋ณด์์ ๋ฐ๊ธ๋ ๊ฐ๋งน์ ์๋ณ์ฝ๋
ํ์ธ์ด ํ์ํฉ๋๋ค.
์ด ํ๋ฌ๊ทธ์ธ์ ์์ํฌํธ ์ฐ๋์ ๋ง๊ฒ ์ปค์คํฐ๋ง์ด์ฆ๋ inappbrowser(fork ๋ฒ์ ) ํ๋ฌ๊ทธ์ธ์ ์์กดํฉ๋๋ค.
์๋ ๋ช
๋ น์ด์ ๊ธฐ์ฌ๋ cordovakcp
๋ ์ค์ ์ฌ์ฉ์ ์ํ๋ scheme ๊ฐ์ผ๋ก ๋์ฒดํ์ฌ ์ค์นํ๋ฉด ๋ฉ๋๋ค.(๊ฐ๋ฐ ์ค์ธ ์ฑ์ ๋ํํ ์ ์๋ ๋ฌธ์์ด๋ก ๋ค๋ฅธ์ฑ๊ณผ ๊ฒน์น์ง ์๊ฒ ๊ณ ์ ํ ๊ฐ์ ์ฌ์ฉํด์ฃผ์ธ์)
cordova plugin add cordova-plugin-iamport-kcp --variable URL_SCHEME=cordovakcp --save
ํ๋ฌ๊ทธ์ธ ์ค์น๊ฐ ๋๋ฉด javascript module์ด ์๋ ๋ณต์ฌ/๋ฑ๋ก๋ฉ๋๋ค.(cordova-iamport.js)
๊ฒฐ์ ๊ฐ ํ์ํ ์๊ฐ์ ๋ค์๊ณผ ๊ฐ์ด javascript ํธ์ถ์ ํตํด inappbrowser
๋ฅผ ํตํด ๊ฒฐ์ ํ๋ก์ธ์ค๋ฅผ ์์ํ ์ ์์ต๋๋ค.
CordovaIamport.payment(user_code, param, callback)
ํด๋ํฐ ๋ณธ์ธ์ธ์ฆ์ ๋ค์์ javascript ํธ์ถ์ ํตํด ๊ฐ๋ฅํฉ๋๋ค.
CordovaIamport.certification(user_code, param, callback)
cordova ํน์ฑ์ inappbrowser
๋ฅผ ํตํด ๊ฒฐ์ ํ๋ก์ธ์ค๊ฐ ์งํ๋๋ฏ๋ก ๋ชจ๋ฐ์ผ ๋ธ๋ผ์ฐ์ ์ฐ๋๊ณผ๋ ๋ค์ ์ฐจ์ด๊ฐ ์์ต๋๋ค.
m_redirect_url
์์ฑ์ overwriteํ์ฌ inappbrowser
๊ฒฐ์ ๋ฅผ ๊ตฌํํ๊ณ ์๊ธฐ ๋๋ฌธ์ ๋ค์๊ณผ ๊ฐ์ ์ฐจ์ด์ ์ด ์์ต๋๋ค.
(์ฐธ์กฐ : cordova-iamport.js)
CordovaIamport.payment('imp33886024', {
pay_method : 'card',
merchant_uid : 'merchant_' + new Date().getTime(),
name : '์ฃผ๋ฌธ๋ช
:๊ฒฐ์ ํ
์คํธ',
amount : 1400,
buyer_email : 'iamport@siot.do',
buyer_name : '๊ตฌ๋งค์์ด๋ฆ',
buyer_tel : '010-1234-5678',
buyer_addr : '์์ธํน๋ณ์ ๊ฐ๋จ๊ตฌ ์ผ์ฑ๋',
buyer_postcode : '123-456'
}, function(rsp) {
if ( rsp.success ) {
var msg = '๊ฒฐ์ ๊ฐ ์๋ฃ๋์์ต๋๋ค.';
msg += '๊ณ ์ ID : ' + rsp.imp_uid;
msg += '์์ ๊ฑฐ๋ID : ' + rsp.merchant_uid;
} else {
var msg = '๊ฒฐ์ ์ ์คํจํ์์ต๋๋ค.';
msg += '์๋ฌ๋ด์ฉ : ' + rsp.error_msg;
}
alert(msg);
});
CordovaIamport.payment('๊ฐ๋งน์ ์๋ณ์ฝ๋', {
name : 'ํ๊ธธ๋'
}, function(rsp) {
if ( rsp.success ) {
var msg = '๋ณธ์ธ์ธ์ฆ์ด ์๋ฃ๋์์ต๋๋ค.';
msg += '๊ณ ์ ID : ' + rsp.imp_uid;
} else {
var msg = '๋ณธ์ธ์ธ์ฆ์ ์คํจํ์์ต๋๋ค.';
msg += '์๋ฌ๋ด์ฉ : ' + rsp.error_msg;
}
alert(msg);
});
FAQs
Cordova Plugin for KCP Payment via Iamport
We found that cordova-plugin-iamport-kcp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVDโs backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.