public function test_verifyDeactivation()
 {
     // deactivation && verify --> get null
     ClientAPI::activate('payment', $this->paymentApiKey, site_url(), '', FALSE);
     $oir = ClientAPI::verify('payment', $this->paymentApiKey, site_url());
     $this->assertNull($oir);
 }
 private function verify()
 {
     if (!wskl_is_option_enabled('enable_sym_pg')) {
         return TRUE;
     }
     if (!is_null($this->verified) && is_bool($this->verified)) {
         return $this->verified;
     }
     $info = new WSKL_Auth_Info('payment');
     $key_type = $info->get_key_type();
     $key_value = $info->get_key_value();
     $site_url = site_url();
     // verification null 은 인증 실패. false 는 인증 서버 다운 등의 이유로 인증 시도가 이뤄지지 못함.
     $verification = ClientAPI::verify($key_type, $key_value, $site_url);
     if ($verification instanceof OrderItemRelation) {
         $info->set_oir($verification);
         $info->save();
         $this->verified = TRUE;
     } else {
         if ($verification === NULL) {
             // 인증 실패
             $this->verified = FALSE;
         } else {
             if ($verification === FALSE) {
                 // 인증 불가 (서버의 이상)
                 $this->verified = $info->is_verified();
             }
         }
     }
     return $this->verified;
 }
 public function test_verifyWrongAddress()
 {
     $oir = ClientAPI::verify('payment', $this->paymentApiKey, site_url());
     $this->assertFalse($oir);
 }