Download the PHP package sepayvn/laravel-sepay without Composer
On this page you can find all versions of the php package sepayvn/laravel-sepay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sepayvn/laravel-sepay
More information about sepayvn/laravel-sepay
Files in sepayvn/laravel-sepay
Package laravel-sepay
Short Description Laravel Package cho SePay - Giải pháp tự động hóa cho thanh toán chuyển khoản ngân hàng
License MIT
Homepage https://github.com/sepayvn/laravel-sepay
Informations about the package laravel-sepay
Laravel Package cho SePay - Giải pháp tự động hóa cho thanh toán chuyển khoản ngân hàng
Installation
You can install the package via composer:
Phiên bản dành cho Laravel 7, 8 và PHP 7.4 trở lên
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Optionally, you can publish the views using
Usage
Tạo SePayWebhookListener
-
Đối với Laravel 11 trở xuống (7, 8, 9, 10)
Đăng ký SePayWebhookListener vào app/Providers/EventServiceProvider.php
-
Đối với Laravel 11,
SePayWebhookListener
đặt ở trong thư mục app/Listeners thì Laravel sẽ tự động gắn vớiSePayWebhookEvent
bạn không cần phải đăng ký với Provider, tránh bị gọi 2 lần.Nếu bạn kiểm tra thấy
SePayWebhookListener
chưa lắng ngheSePayWebhookEvent
thì bạn có thể làm như sau: vào phương thứcboot
trongapp/Providers/AppServiceProvider.php
Webhook
- Truy cập SePay Webhooks
- Bấm nút
Thêm Webhook
ở góc trên bên phải -
Các cần điền thì bạn hãy điền, riêng các mục sau cần lưu ý

- thay
domain.com
thành tên miền của bạn - Kiểu chứng thực: là Api Key
- API Key: nhập vào 1 dãy bí mật ngẫu nhiên gồm chữ và số (không có dấu như hình ví dụ nhé)
- thay
-
Sửa file
.env
trong ứng dụng Laravel của bạn thành như sau
SEPAY_WEBHOOK_TOKEN
- Là API Key nhập ở bước 3.3 ở trênSEPAY_MATCH_PATTERN
- Mặc định làSE
bạn có thể sửa cho phù hợp với ứng dụng của bạn
Kiểm tra với Postman
Bấm import trên postman và dán đoạn mã dưới đây vào
Testing
Ủng hộ nhà phát triển
Bạn có thể hỗ trợ nhà phát triển gói này bằng cách sử dụng những dịch vụ sau:
- Thuê tôi 👉 Facebook | Telegram
- FlashPanel: Effortless Server Management
- FcodeShare: Get link Fshare tiết kiệm
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- SePay
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-sepay with dependencies
illuminate/contracts Version ^9.28 | ^10.0 | ^11.0 | ^12.0
spatie/laravel-package-tools Version ^1.16