- 기존 PG 사를 이용 중이신 사업자도 별도의 계약없이 부트페이를 통해 결제 연동과 통계를 무료로 이용하실 수 있습니다.
- 한줄의 소스코드로 인사이트를 얻어 매출을 극대화하세요.
- 보안상의 이유로 결제검증과 취소는 서버사이드에서 이루어집니다.
- 부트페이 서버와 통신시 Rest용 Application Id, Private Key 값을 보내주셔야 하며, 보내실 서버의 IP는 미리 등록하셔야 합니다.
<?php
spl_autoload_register();
use Bootpay\Rest\BootpayApi;
?>
<html>
<head>
<title>PHP 테스트</title>
</head>
<body>
<script type="text/javascript">
</script>
<form method="post" name="BOOTPAY_TEST" id="BOOTPAY_TEST">
<?php
$instance = BootpayApi::setConfig('rest application_id', 'pk');
$responseConfirm = BootpayApi::confirm([
'receipt_id' => 'receipt_id'
]);
echo "status: {$responseConfirm->status}, code: {$responseConfirm->code}, message: {$responseConfirm->message}";
?>
</form>
</body>
</html>