定制 zarulizham/laravel-duitnow-qr 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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_id or end_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 return true for 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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固