zeevx/lara-lazer
Composer 安装命令:
composer require zeevx/lara-lazer
包简介
A Laravel Package for LazerPay Finance - https://lazerpay.finance
关键字:
README 文档
README
LazerPay Laravel Package
Lara-Lazer helps you Set up, test, and manage your Lazerpay Finance integration directly in your Laravel App.
Official Documentation
https://docs.lazerpay.finance/home/
Installation
You can install the package via composer:
composer require zeevx/lara-lazer
After installation, run (to create the lara-lazer.php config file):
php artisan lazerpay:publish
Input your secrete key, public key and version number for Lazerpay:
return [ 'LAZER_PUBLIC_KEY' => '', 'LAZER_SECRET_KEY' => '', 'LAZER_VERSION' => 1 ];
Usage:
Use the helper function
lazerpay() //It works automatically
To see supported coins
- get accepted coins by doing this:
lazerpay()->getAcceptedCoins();
To Initiate transaction
- Initiate a transaction by doing this:
$params = [ 'reference' => 'random-unique-string', 'amount' => 100000, 'currency' => 'USD', 'customer_name' => 'Paul Adams', 'customer_email' => 'adamsohiani@gmail.com', 'coin' => 'USDT', 'accept_partial_payment' => false, ]; lazerpay()->initiateTransaction($params);
To Verify transaction
- verify a transaction by doing this:
lazerpay()->confirmTransaction('reference-used');
To make transfer
- to initiate transfer, do this:
$params = [ 'amount' => 1000, 'recipient' => 'recipient-address', 'coin' => 'coin', 'blockchain' => 'blockchain' ]; lazerpay()->transfer($params);
Security
If you discover any security related issues, please email adamsohiani@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-23