PHPackages                             jinseokoh/bootpay - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. jinseokoh/bootpay

ActiveLibrary[Payment Processing](/categories/payments)

jinseokoh/bootpay
=================

Unofficial BootPay package for Laravel

1.2.0(4y ago)41.1k2MITPHPPHP &gt;=7.2.5CI failing

Since Apr 2Pushed 4y ago2 watchersCompare

[ Source](https://github.com/jinseokoh/bootpay)[ Packagist](https://packagist.org/packages/jinseokoh/bootpay)[ RSS](/packages/jinseokoh-bootpay/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Unofficial BootPay package for Laravel
======================================

[](#unofficial-bootpay-package-for-laravel)

[![Total Downloads](https://camo.githubusercontent.com/384a2d57ce896b3e041ad120dc8c1889bcf2aa79872c3cd69bdf2dd5f967614f/68747470733a2f2f706f7365722e707567782e6f72672f6a696e73656f6b6f682f626f6f747061792f646f776e6c6f616473)](https://packagist.org/packages/jinseokoh/bootpay)[![License](https://camo.githubusercontent.com/55912dbd5917851cfc4d82c54ca69fa09bee218a1dfc4e7b8836222345012434/68747470733a2f2f706f7365722e707567782e6f72672f6a696e73656f6b6f682f626f6f747061792f6c6963656e7365)](https://packagist.org/packages/jinseokoh/bootpay)

Laravel 프로젝트에서 사용할 수 있는 [BootPay](https://www.bootpay.co.kr/) 용 PHP Laravel 패키지이다.

BootPay 에서 공식적으로 제공하는 PHP 용 [GitHub](https://github.com/bootpay/server_php) 리포가 있긴 하지만, 아쉽게도 PHP 디펜던시 관리자인 [Composer](https://getcomposer.org/)를 통하여 코드를 쉽게 추가할 수 없기에 BootPay 를 사용하려는 모던 PHP 개발자들을 위하여, 패키지화 하였다.

부트페이 결제는 JS Client SDK 로 수행하였고, 검증 및 취소만 이 패키지를 통해서 사용하였다. 이 패키지에서 제공하는 코드는 BootPay 공식코드와 다를 바가 없기때문에 모든 호출이 정상수행 되지 않을가 생각하지만, 검증 및 취소를 제외한 정기구독 등의 부가기능들은 사용한 바가 없으므로 혹시 문제가 발견된다면 이슈로 남겨주면 감사하겠다.

인스톨
---

[](#인스톨)

이 패키지를 인스톨하기 위해서는 터미널에서 아래의 명령을 실행한다.

```
composer require jinseokoh/bootpay

```

사용법
---

[](#사용법)

Laravel 5.5 부터 제공하는 Package Auto-Discovery 기능으로, 이 패키지를 인스톨함과 동시에 ServiceProvider 와 Facade 등록이 자동으로 된다. 새로운 Laravel 8/9 버젼의 지원은 1.2.0 버젼부터 가능하다.

### 설정

[](#설정)

Laravel 프로젝트 `.env` 파일에 BootPay 에 연관된 아래의 3개 Key/Value 값을 추가해야만 한다. BootPay 관리자 페이지에 가면, REST API 용 Application Id 와 Private Key 를 부여받을 수 있다.

```
BOOTPAY_URI=https://api.bootpay.co.kr
BOOTPAY_REST_APP_ID=000000000000000000000000
BOOTPAY_PRIVATE_KEY=0000000000000000000000000000000000000000000=

```

### 예제

[](#예제)

BootPay 메뉴얼을 보면, API 호출에 필요한 AccessToken 은 30분간만 유효하다는 내용이 있다. 이 패키지의 핸들러 내부에는 AccessToken 을 25분 동안만 캐쉬 레이어에 저장시켜 사용하다가 해당시간이 초과되면 새로운 AccessToken 을 재요청하여 사용하는 로직이 들어 있다. 따라서, 이 패키지 사용자는 AccessToken 관리에 필요한 로직을 추가할 필요가 없고, 단지 verify() 또는 cancel() 등의 원하는 API 호출만 수행하면 된다.

일반적인 WebApp 플로우는 BootPay JS 코드로 결제수행 후 `OrderId` 와 `ReceiptId` 를 인자값으로 Laravel API 을 호출하여, 실제요금과 같은지 확인하는 과정을 거치게 된다. 이때 사용하는 API 가 verify() 이며 Controller 에서, `JinseokOh\BootPay\BootPayHanlder` 클래스를 DI 를 이용해 주입하거나, BootPay facade 를 이용하여 생성 후, 아래의 샘플처럼 사용한다.

#### verify() 호출 샘플코드

[](#verify-호출-샘플코드)

```
    public function verify(
        OrderVerifyRequest $request,
        BootPayHandler $bootPayHandler,
        OrderHandler $orderHandler
    ): JsonResponse {
        $orderId = $request->getOrderId();
        $receiptId = $request->getReceiptId();
        $order = $orderHandler->findById($orderId);

        try {
            $response = $bootPayHandler->verify($receiptId);
        } catch (\Throwable $e) {
            \Log::critical("[LOG] {$e->getMessage()}");
            throw $e;
        }
        :
        // 추가로직
        :
    }
```

특정 결제에 대하여 취소를 하는 경우, 아래의 cancel() API 룰 호출한다.

#### cancel() 호출 샘플코드

[](#cancel-호출-샘플코드)

```
    public function cancel(
        OrderCancelRequest $request,
        BootPayHandler $bootPayHandler,
        OrderHandler $orderHandler
    ): JsonResponse {
        $orderId = $request->getOrderId();
        $receiptId = $request->getReceiptId();
        $order = $orderHandler->findById($orderId);

        try {
            $response = $bootPayHandler->cancel($receiptId);
        } catch (\Throwable $e) {
            \Log::critical("[LOG] {$e->getMessage()}");
            throw $e;
        }
        :
        // 추가로직
        :
    }
```

License
-------

[](#license)

The MIT Licence (MIT).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~699 days

Total

2

Last Release

1535d ago

PHP version history (2 changes)v1.0.2PHP ^7.1.3

1.2.0PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/511f8a0073acc74d3165801638cfadf7b7a22686ae63d578d33112f4ffe8e19a?d=identicon)[jinseokoh](/maintainers/jinseokoh)

---

Top Contributors

[![jinseokoh](https://avatars.githubusercontent.com/u/1305356?v=4)](https://github.com/jinseokoh "jinseokoh (3 commits)")

---

Tags

laravelBootPay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jinseokoh-bootpay/health.svg)

```
[![Health](https://phpackages.com/badges/jinseokoh-bootpay/health.svg)](https://phpackages.com/packages/jinseokoh-bootpay)
```

###  Alternatives

[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[luigel/laravel-paymongo

A laravel wrapper for Paymongo API

7956.2k1](/packages/luigel-laravel-paymongo)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
