myomyintaung512 / php-dinger-prebuilt
A PHP package for Dinger Payment Integration
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/myomyintaung512/php-dinger-prebuilt
Requires
- php: >=7.2
- phpseclib/phpseclib: ~2.0
This package is not auto-updated.
Last update: 2025-12-23 12:14:49 UTC
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