myomyintaung512/php-dinger-prebuilt
最新稳定版本:1.0.0
Composer 安装命令:
composer require myomyintaung512/php-dinger-prebuilt
包简介
A PHP package for Dinger Payment Integration
README 文档
README
A PHP package for integrating Dinger Payment Gateway.
Installation
composer require myomyintaung512/php-dinger-prebuilt
Usage
use myomyintaung512\DingerPrebuilt\DingerPrebuilt; // Initialize with custom config (optional) $config = [ 'clientId' => 'your-client-id', 'merchantKey' => 'your-merchant-key', 'publicKey' => 'your-public-key', 'projectName' => 'your-project-name', 'merchantName' => 'your-merchant-name', 'hashKey' => 'your-hash-key', 'baseUrl' => 'https://prebuilt.dinger.asia' // optional ]; $dinger = new DingerPrebuilt($config); // Prepare items $items = [ [ 'name' => 'Product 1', 'amount' => '1000', 'quantity' => '1' ] ]; // Generate payment URL $paymentUrl = $dinger->createPayment( $items, 'Customer Name', '1000', 'ORDER123' ); // Redirect to payment URL header("Location: " . $paymentUrl);
License
MIT
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-17