PHPackages                             rober-song/laravel-line-pay - 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. rober-song/laravel-line-pay

ActiveLibrary[Payment Processing](/categories/payments)

rober-song/laravel-line-pay
===========================

LINE Pay for Laravel

v0.0.13(9mo ago)216MITPHPPHP ^8.2CI passing

Since Feb 9Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/rober-song/laravel-line-pay)[ Packagist](https://packagist.org/packages/rober-song/laravel-line-pay)[ RSS](/packages/rober-song-laravel-line-pay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (9)Used By (0)

LINE Pay for Laravel
--------------------

[](#line-pay-for-laravel)

[![Tests](https://github.com/rober-song/laravel-line-pay/actions/workflows/run-tests.yml/badge.svg)](https://github.com/rober-song/laravel-line-pay/actions)

### 申請sandbox帳號

[](#申請sandbox帳號)

[LINE Pay Sandbox](https://developers-pay.line.me/sandbox)

### 套件安裝

[](#套件安裝)

引入 package 到 composer.json

```
composer require rober-song/laravel-line-pay
```

### Laravel

[](#laravel)

發布設定檔案

```
php artisan vendor:publish --provider="Rober\LinePay\LinePayProvider"
```

### 設定檔案

[](#設定檔案)

設定檔案在 config/line\_pay.php

### 簡介

[](#簡介)

- 透過 facade `LinePay` 來使用

```
use Rober\LinePay\LinePay;

$response = LinePay::request([
    'amount' => 100,
    'currency' => 'TWD',
    'orderId' => 'order-123'
    ]);

return $response->getInfo();
```

### Testing

[](#testing)

```
