PHPackages                             carllee/line-pay-offline-v4 - 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. [API Development](/categories/api)
4. /
5. carllee/line-pay-offline-v4

ActiveLibrary[API Development](/categories/api)

carllee/line-pay-offline-v4
===========================

LINE Pay Offline V4 API SDK for PHP. Supports POS payment, capture, void, refund operations with Laravel support.

v1.2.1(5mo ago)00[1 PRs](https://github.com/CarlLee1983/line-pay-offline-v4-php/pulls)MITPHPPHP ^8.1CI passing

Since Dec 12Pushed 2mo agoCompare

[ Source](https://github.com/CarlLee1983/line-pay-offline-v4-php)[ Packagist](https://packagist.org/packages/carllee/line-pay-offline-v4)[ Docs](https://github.com/CarlLee1983/line-pay-offline-v4-php)[ RSS](/packages/carllee-line-pay-offline-v4/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (6)Used By (0)

LINE Pay Offline V4 PHP SDK
===========================

[](#line-pay-offline-v4-php-sdk)

[![CI](https://github.com/CarlLee1983/line-pay-offline-v4-php/actions/workflows/ci.yml/badge.svg)](https://github.com/CarlLee1983/line-pay-offline-v4-php/actions/workflows/ci.yml)[![PHP Version](https://camo.githubusercontent.com/2b176bc927a94669f546164bb343aa0240b1c8cdb5cb127ff8fe21e4ff293cbd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6361726c6c65652f6c696e652d7061792d6f66666c696e652d7634)](https://packagist.org/packages/carllee/line-pay-offline-v4)[![License](https://camo.githubusercontent.com/deebd504eb56dd5457041c14117c83df24ffaf921f5c985bce8588d824b936a5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4361726c4c6565313938332f6c696e652d7061792d6f66666c696e652d76342d706870)](LICENSE)

Modern, type-safe LINE Pay Offline V4 API SDK for PHP.

**🌐 Language / 語言 / 言語 / ภาษา:**[English](./README.md) | [繁體中文](./README_ZH.md) | [日本語](./README_JA.md) | [ภาษาไทย](./README_TH.md)

Features
--------

[](#features)

- ✅ **PHP 8.1+** with strict types and enums
- ✅ **Laravel Integration** - ServiceProvider, Facade, IoC support
- ✅ **POS/Kiosk Terminal Support** - For retail and food service
- ✅ **One-Time Key Payment** - Scan customer's barcode
- ✅ **Full API Coverage** - Payment, capture, void, refund
- ✅ **Type-Safe Enums** - Currency, PaymentStatus, etc.
- ✅ **PHPStan Level Max** - Strict static analysis
- ✅ **Built on Core SDK** - Shares code with Online SDK

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Composer
- ext-json
- ext-openssl

Installation
------------

[](#installation)

```
composer require carllee/line-pay-offline-v4
```

Payment Flow
------------

[](#payment-flow)

 ```
sequenceDiagram
    participant U as Customer (App)
    participant P as POS/Server
    participant L as LINE Pay API

    U->>P: Show Barcode (OneTimeKey)
    P->>L: POST /v3/payments/oneTimeKeys/pay
    alt Success
        L-->>P: 200 OK (ReturnCode 0000)
        P->>U: Payment Success
    else Timeout / Network Error
        L-->>P: Timeout / 500 Error
        Note over P,L: CRITICAL: Must Check Status
        P->>L: GET /v3/payments/orders/{orderId}
        L-->>P: Status: COMPLETE
        P->>U: Payment Success
    end
```

      Loading Quick Start
-----------

[](#quick-start)

> "✨ **Developer Experience:** This SDK uses DTOs and Enums. Your IDE will provide full autocompletion for request parameters and response fields, eliminating 'magic string' typos."

```
