myomyintaung512/laravel-dinger-prebuilt
Composer 安装命令:
composer require myomyintaung512/laravel-dinger-prebuilt
包简介
Laravel package for Dinger Prebuilt Form payment integration
README 文档
README
A Laravel package for integrating Dinger payment gateway into your Laravel applications.
Installation
You can install the package via composer:
composer require myomyintaung512/laravel-dinger-prebuilt
Configuration
First publish the configuration file:
php artisan vendor:publish --provider="myomyintaung512\LaravelDingerPrebuilt\DingerServiceProvider"
Add the following configuration to your .env file:
DINGER_CLIENT_ID=your_client_id DINGER_MERCHANT_KEY=your_merchant_key DINGER_PUBLIC_KEY=your_public_key DINGER_PROJECT_NAME=your_project_name DINGER_MERCHANT_NAME=your_merchant_name DINGER_HASH_KEY=your_hash_key DINGER_BASE_URL=https://prebuilt.dinger.asia
Basic Usage
You can use the Dinger instance in two ways:
Using Dependency Injection
use myomyintaung512\LaravelDingerPrebuiltForm\DingerPrebuilt; class PaymentController extends Controller { public function checkout(DingerPrebuilt $dinger) { $items = [ [ 'name' => 'Product 1', 'amount' => 1000, 'quantity' => 1 ] ]; $paymentUrl = $dinger->createPayment( $items, 'Customer Name', 1000, 'ORDER_123' ); return redirect($paymentUrl); } }
use myomyintaung512\LaravelDinger\Dinger; $dinger = new Dinger([ 'api_key' => env('DINGER_API_KEY'), 'merchant_name' => env('DINGER_MERCHANT_NAME'), 'merchant_id' => env('DINGER_MERCHANT_ID'), 'production' => env('DINGER_PRODUCTION', false), ]); $payment = $dinger->createPayment([ 'amount' => 1000, 'order_id' => 'ORDER_123', 'description' => 'Product purchase', 'customer_name' => 'Mg Mg', 'customer_phone' => '09123456789', 'customer_email' => 'mgmg@example.com', 'redirect_url' => 'https://your-website.com/payment/callback' ]);
Environment
- Production URL: https://form.dinger.asia
- Staging URL: https://prebuilt.dinger.asia
License
The MIT License (MIT). Please see License File for more information.
myomyintaung512/laravel-dinger-prebuilt 适用场景与选型建议
myomyintaung512/laravel-dinger-prebuilt 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 68 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 02 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 myomyintaung512/laravel-dinger-prebuilt 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 myomyintaung512/laravel-dinger-prebuilt 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 68
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-02-11