zarulizham/laravel-duitnow-qr
Composer 安装命令:
composer require zarulizham/laravel-duitnow-qr
包简介
Malaysia's National QR Payment repository for Laravel
README 文档
README
Installation
You can install the package via composer:
composer require zarulizham/laravel-duitnow-qr
You can publish and run the migrations with:
php artisan vendor:publish --tag="laravel-duitnow-qr-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="laravel-duitnow-qr-config"
This is the contents of the .env file:
DUITNOW_QR_CLIENT_ID= DUITNOW_QR_CLIENT_SECRET= DUITNOW_QR_CHANNEL_TOKEN= DUITNOW_QR_PREFIX_ID= DUITNOW_QR_QR_ID=
Optionally, you can publish the views using
php artisan vendor:publish --tag="laravel-duitnow-qr-views"
You can also publish the callback controller stub to your app:
php artisan vendor:publish --tag="laravel-duitnow-qr-controllers"
Usage
$duitNowQR = new ZarulIzham\DuitNowQR();
Dashboard SPA (Transactions & Payments)
This package now provides a gated dashboard with Vue.js components and Bootstrap 5.3.
- Transactions page: list all transactions and open a transaction details page (with related payments).
- Payments page: list all payments with optional filters by
biz_idorend_id.
Default URL:
/duitnow-qr/dashboard
Set your access gate (for example in AppServiceProvider::boot):
use DuitNowQR; DuitNowQR::auth(function ($request) { return $request->user() && $request->user()->role('Programmer'); });
Dashboard and dashboard API access are denied by default. You must configure
DuitNowQR::auth(...)and returntruefor authorized users. Dashboard API endpoints still require an authenticated user.
Dashboard route settings are configurable in config/duitnowqr.php:
'dashboard' => [ 'path' => env('DUITNOW_QR_DASHBOARD_PATH', 'duitnow-qr/dashboard'), 'middleware' => ['web'], ],
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 6.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-24