gearosv2/paynow
最新稳定版本:v1.0.1.6
Composer 安装命令:
composer require gearosv2/paynow
包简介
Easily generate a SG PayNow compliant QR code
关键字:
README 文档
README
Singapore Paynow QR Code generator for PHP.
Usage Instructions
1. Install via composer
$ composer require gearosv2/paynow
2. Publish the assets
$ php artisan vendor:publish --provider="gearosv2\Paynow\PaynowServiceProvider" --tag=public --force
3. Add the using
use gearosv2\Paynow\Facades\Paynow;
4. Create PayNow QR Code
As encoded base64image
Dynamic
Paynow::generateDynamic( 100.00, false, "O123456", (new DateTime())->modify("+ 1 hour"), "Clothing Company Pte Ltd", "SG", "Singapore", "2020111104G", null, true );
As paynow string
Paynow::generateDynamic( 100.00, false, "O123456", (new DateTime())->modify("+ 1 hour"), "Clothing Company Pte Ltd", "SG", "Singapore", "2020111104G", null, false );
Static
Paynow::generateStatic( "Clothing Company Pte Ltd", "SG", "Singapore", "2020111104G", null, true );
As paynow string
Paynow::generateStatic( "Clothing Company Pte Ltd", "SG", "Singapore", "2020111104G", null, false );
Potential usecases:
Dynamically generating payment QR codes on e-commerce or donation pages that allow tracking of payments via reference codes.
Can be used in conjunction with Bank APIs to detect resolved payments. It can be used in open source invoicing system Invoice Ninja.
Credits
Original code referenced from: https://github.com/ThunderQuoteTeam/PaynowQR
PHP library and composer from Chris West https://github.com/chriswest101/paynow
See also:
Developed by Chris West (https://www.christophermwest.co.uk/)
Was looking around for various ways to implement dynamic SGQR codes for payment over PHP within the Lavarel system that is being used to developer Invoice Ninja. I found Chris's work and worked on it to get it working.
Feel free to report any issues and feature requests!
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-11