PHPackages                             nhanchaukp/alepay - 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. nhanchaukp/alepay

ActiveLibrary[Payment Processing](/categories/payments)

nhanchaukp/alepay
=================

Tích hợp thanh toán Alepay cho Laravel

1.0.3(3y ago)01.3k↓90%MITBlade

Since May 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nhanchaukp/alepay)[ Packagist](https://packagist.org/packages/nhanchaukp/alepay)[ RSS](/packages/nhanchaukp-alepay/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (5)Used By (0)

Tích hợp thanh toán Alepay cho Laravel
======================================

[](#tích-hợp-thanh-toán-alepay-cho-laravel)

### Hướng dẫn cài đặt

[](#hướng-dẫn-cài-đặt)

Cài đặt package

```
composer require nhanchaukp/alepay

```

Publish file cấu hình tài khoản

```
php artisan vendor:publish --tag=alepay-config

```

Thay đổi các giá trị liên quan đến tài khoản kết nối với Alepay ở file: `config/alepay`

### Hiển thị trang demo

[](#hiển-thị-trang-demo)

Thêm vào routes web.php

```
use Nhanchaukp\Alepay\Facades\Alepay;
...

Alepay::routes();

```

Truy cập demo tại `domain.com/demo-alepay`.

### Các phương thức

[](#các-phương-thức)

Tạo yêu cầu và lấy link thanh toán

```
use Nhanchaukp\Alepay\Facades\Alepay;
...

$orderInfo = [
    'amount' => 100000,
    'orderCode' => 'FCODE123',
    'currency' => 'VND',
    'orderDescription' => 'Test thanh toán Alepay',
    'totalItem' => 1,
    'checkoutType' => 3,
    'allowDomestic' => true,

    'buyerName' => 'Nhan Chau KP',
    'buyerEmail' => 'demoalepay@gmail.com',
    'buyerPhone' => '0929389359',
    'buyerAddress' => 'Vung liem',
    'buyerCity' => 'Vinh Long',
    'buyerCountry' => 'Viet Nam',

];

$result = Alepay::requestPayment($orderInfo);

```

Lấy thông tin giao dịch

```
use Nhanchaukp\Alepay\Facades\Alepay;
...

public function alepayResult(Request $request)
{
    if ($request->errorCode == '000') {
        // success
        $info = Alepay::getTransactionInfo($request->transactionCode);
        dd($info);
    } else {
        // error
    }
}

```

Xác thực dữ liệu webhook

```
use Nhanchaukp\Alepay\Facades\Alepay;
...

public function webhook(Request $request)
{
    return response()->json([
        'raw' => $request->all(),
        'verify' => Alepay::verifyTransaction($request->all())
    ]);
}

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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 ~0 days

Total

4

Last Release

1133d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16833818?v=4)[Châu Thái Nhân](/maintainers/nhanchaukp)[@nhanchaukp](https://github.com/nhanchaukp)

---

Top Contributors

[![nhanchaukp](https://avatars.githubusercontent.com/u/16833818?v=4)](https://github.com/nhanchaukp "nhanchaukp (9 commits)")

---

Tags

laravelalepay

### Embed Badge

![Health badge](/badges/nhanchaukp-alepay/health.svg)

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

###  Alternatives

[anandsiddharth/laravel-paytm-wallet

Integrate paytm wallet easily with this package. This package uses official Paytm PHP SDK's

102447.9k7](/packages/anandsiddharth-laravel-paytm-wallet)[threesquared/laravel-paymill

Laravel wrapper for the Paymill API

121.3k](/packages/threesquared-laravel-paymill)

PHPackages © 2026

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