데이터 받는 형식
$postData = file_get_contents('php://input');
$json = json_decode($postData);
참고링크
github.com/tosspayments/php-sample/blob/main/virtual_account_callback.php
'개발 > php' 카테고리의 다른 글
php 배열 값 더하기 (0) | 2021.04.29 |
---|---|
php arr 다중배열 속성값으로 정렬 array_multisort (0) | 2021.04.27 |
php key value array push (0) | 2021.04.01 |
php curl header 사용 예시 비즈엠 내 잔액 확인 api (0) | 2021.03.29 |
php file('abc.txt'); text파일을 라인별 배열로 읽어오는 기능 예제 (0) | 2021.02.23 |
댓글