영카드 주문완료시 네이트온웹훅

영카드 주문완료시 네이트온웹훅

QA

영카드 주문완료시 네이트온웹훅

본문

안녕하세요. 매번 감사히 도움 많이 받고있습니다.

 

늘 감사드립니다.

 

영카드 주문완료시 네이트온웹훅을 받을려고하는데요.

 

/shop/orderformupdate.php

 

여기에 아래 소스를 넣으면 될까요?

 


function nateon_teamroom($msg) {
 
    $webhook = '웹훅주소';
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $webhook); // Webhook URL
    curl_setopt($ch, CURLOPT_HEADER, false);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
    curl_setopt($ch, CURLOPT_POSTFIELDS, 'content='.urlencode($msg)); // 메시지
    $return = curl_exec($ch);
    curl_close($ch);
}
    nateon_teamroom("쇼핑몰에서 주문되었습니다.");
    $msg = "주문이들어왓습니다.";
    alert($msg, G5_SHOP_URL);

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
전체 13
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT