{"action":"created","issue":{"url":"https://api.github.com/repos/bjrambo/nurigo/issues/34","repository_url":"https://api.github.com/repos/bjrambo/nurigo","labels_url":"https://api.github.com/repos/bjrambo/nurigo/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/bjrambo/nurigo/issues/34/comments","events_url":"https://api.github.com/repos/bjrambo/nurigo/issues/34/events","html_url":"https://github.com/bjrambo/nurigo/issues/34","id":145585185,"number":34,"title":"inipaymobile ISP결제시 orderstate가 입금완료로 계속 돌아가는 현상","user":{"login":"garnecia","id":12852912,"avatar_url":"https://avatars.githubusercontent.com/u/12852912?v=3","gravatar_id":"","url":"https://api.github.com/users/garnecia","html_url":"https://github.com/garnecia","followers_url":"https://api.github.com/users/garnecia/followers","following_url":"https://api.github.com/users/garnecia/following{/other_user}","gists_url":"https://api.github.com/users/garnecia/gists{/gist_id}","starred_url":"https://api.github.com/users/garnecia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garnecia/subscriptions","organizations_url":"https://api.github.com/users/garnecia/orgs","repos_url":"https://api.github.com/users/garnecia/repos","events_url":"https://api.github.com/users/garnecia/events{/privacy}","received_events_url":"https://api.github.com/users/garnecia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-04T05:02:34Z","updated_at":"2016-04-13T08:12:50Z","closed_at":null,"body":"inipaymobilecontroller.php 에서 \r\n\r\n\r\n232번줄에 보면\r\n\r\n//위에서 상점 데이터베이스에 등록 성공유무에 따라서 성공시에는 \"OK\"를 이니시스로\r\n\t\t//리턴하셔야합니다. 아래 조건에 데이터베이스 성공시 받는 FLAG 변수를 넣으세요\r\n\t\t//(주의) OK를 리턴하지 않으시면 이니시스 지불 서버는 \"OK\"를 수신할때까지 계속 재전송을 시도합니다\r\n\t\t//기타 다른 형태의 PRINT( echo )는 하지 않으시기 바랍니다\r\n\r\n이렇게 되어있습니다.\r\n\r\n\r\nprocessnotiurl() 함수를 보면\r\n\r\ntype이 VBANK는 echo OK를 해주는데\r\n\r\nISP는 안해줘서, inicis에서 계속 해당URL을 호출하는 현상이 있습니다.\r\n\r\n그러면 배송중으로 상태를 변경해도 계속 입금완료로 돌아가 버립니다.\r\n\r\n그래서 ISP의 경우도 eho OK를 해줘야 해당현상이 안생거더군요.\r\n\r\n 확인부탁드립니다.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bjrambo/nurigo/issues/comments/209295817","html_url":"https://github.com/bjrambo/nurigo/issues/34#issuecomment-209295817","issue_url":"https://api.github.com/repos/bjrambo/nurigo/issues/34","id":209295817,"user":{"login":"bjrambo","id":4381756,"avatar_url":"https://avatars.githubusercontent.com/u/4381756?v=3","gravatar_id":"","url":"https://api.github.com/users/bjrambo","html_url":"https://github.com/bjrambo","followers_url":"https://api.github.com/users/bjrambo/followers","following_url":"https://api.github.com/users/bjrambo/following{/other_user}","gists_url":"https://api.github.com/users/bjrambo/gists{/gist_id}","starred_url":"https://api.github.com/users/bjrambo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjrambo/subscriptions","organizations_url":"https://api.github.com/users/bjrambo/orgs","repos_url":"https://api.github.com/users/bjrambo/repos","events_url":"https://api.github.com/users/bjrambo/events{/privacy}","received_events_url":"https://api.github.com/users/bjrambo/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T08:12:50Z","updated_at":"2016-04-13T08:12:50Z","body":"ISP가 결제 완료되고 Echo으로 OK을 호출한뒤,\r\n리디렉트 링크가 있을경우 리디렉트 링크를 따르도록 일딴 변경해봤어요,\r\n\r\n```php\r\n\t\tif(in_array($P_TYPE, array('ISP', 'BANK')))\r\n\t\t{\r\n\r\n\t\t\tif($P_STATUS == '00')\r\n\t\t\t{\r\n\t\t\t\t$args->add('state', '2'); // completed (success)\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$args->add('state', '3'); // failed\r\n\t\t\t}\r\n\t\t\t$args->add('transaction_srl', Context::get('transaction_srl'));\r\n\t\t\t$args->add('payment_method', $this->getPaymethod($P_TYPE));\r\n\t\t\t$args->add('payment_amount', $P_AMT);\r\n\t\t\t$args->add('result_code', $P_STATUS);\r\n\t\t\t$args->add('result_message', $P_RMESG1);\r\n\t\t\t$args->add('vact_num', $P_VACT_NUM);\r\n\t\t\t$args->add('vact_bankname', $this->getBankName($P_VACT_BANK_CODE));\r\n\t\t\t$args->add('vact_bankcode', $P_VACT_BANK_CODE);\r\n\t\t\t$args->add('vact_name', $P_VACT_NAME);\r\n\t\t\t$args->add('vact_inputname', '');\r\n\t\t\t$args->add('vact_regnum', '');\r\n\t\t\t$args->add('vact_date', $P_VACT_DATE); // 입금마감 일자\r\n\t\t\t$args->add('vact_time', $P_VACT_TIME); // 입금마감 시간\r\n\t\t\t$args->add('pg_tid', $P_TID);\r\n\t\t\tdebugPrint($args);\r\n\r\n\t\t\t// afterPayment will call an after trigger\r\n\t\t\t$output = $oEpayController->afterPayment($args);\r\n\t\t\tif(!$output->toBool())\r\n\t\t\t{\r\n\t\t\t\techo \"FAIL\";\r\n\t\t\t\treturn $output;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\techo 'OK';\r\n\t\t\t}\r\n\t\t\t$return_url = $output->get('return_url');\r\n\t\t\tif($return_url)\r\n\t\t\t{\r\n\t\t\t\t$this->setRedirectUrl($return_url);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if($P_TYPE == 'VBANK')\r\n\t\t{\r\n\t\t\t// 가상계좌 입금통보는 P_STATUS가 02\r\n\t\t\tif($P_STATUS == '02')\r\n\t\t\t{\r\n\t\t\t\t$args->add('state', '2'); // completed (success)\r\n\t\t\t\t$args->add('result_message', 'success');\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$args->add('state', '3'); // failed\r\n\t\t\t\t$args->add('result_message', 'failure');\r\n\t\t\t}\r\n\t\t\t$args->add('transaction_srl', Context::get('transaction_srl'));\r\n\t\t\t$args->add('payment_method', $this->getPaymethod($P_TYPE));\r\n\t\t\t$args->add('payment_amount', $P_AMT);\r\n\t\t\t$args->add('result_code', $P_STATUS);\r\n\t\t\t$args->add('pg_tid', $P_TID);\r\n\r\n\t\t\t// afterPayment will call an after trigger\r\n\t\t\t$output = $oEpayController->afterPayment($args);\r\n\t\t\tif(!$output->toBool())\r\n\t\t\t{\r\n\t\t\t\techo \"FAIL\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\techo \"OK\";\r\n\t\t\t}\r\n\t\t\texit(0);\r\n\t\t}\r\n```"}}