Skip to content

부트페이 결제연동 후 - 검증과 취소요청 모듈입니다. 서버사이드용 php 버전입니다. 부트페이는 PG사 중개서비스로 결제연동, 강력한 관리자, 편리한 API, 데이터분석 서비스를 제공합니다.

License

Notifications You must be signed in to change notification settings

bootpay/server_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PG Analytics - 결제데이터 분석서비스

  • 기존 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>

더 자세한 정보는 Docs를 참조해주세요. 

About

부트페이 결제연동 후 - 검증과 취소요청 모듈입니다. 서버사이드용 php 버전입니다. 부트페이는 PG사 중개서비스로 결제연동, 강력한 관리자, 편리한 API, 데이터분석 서비스를 제공합니다.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages