payment.getOtvSaid - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.payment.getOtvSaid

API μ„€λͺ…

  • OTV κ°€μž… 정보 쑰회 API
  • OTV κ°€μž…μžμ˜ SAIDλ₯Ό μ‘°νšŒν•¨
  • κΆŒν•œμ΄ μžˆλŠ” appid 만 쑰회 κ°€λŠ₯(사업 제휴 및 μ•½κ΄€ λ™μ˜ 등이 ν•„μš”)

API ꡬ쑰

  • function getOtvSaid(options,callback)
  • options
    • null
  • result_cd
    • 200: 성곡
    • 401: κΆŒν•œ μ—†μŒ
    • 404: SAID μ‘΄μž¬ν•˜μ§€ μ•ŠμŒ(λ―Έκ°€μž…μž)
    • 500: μ‹œμŠ€ν…œ Error
  • extra
    • said: (String) OTV SAID κ°’

μ‚¬μš© μ˜ˆμ‹œ

// callback 방식
var options = {};
gigagenie.payment.getOtvSaid(options, function (result_cd, result_msg, extra) {
    if (result_cd === 200) {
        console.log("SAID: " + extra.said);
    } else {
        console.log("reqPayToken Fail");
    }
});