Lara-Lazer helps you Set up, test, and manage your Lazerpay Finance integration directly in your Laravel App.
https://docs.lazerpay.finance/home/
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
];
lazerpay() //It works automatically
- get accepted coins by doing this:
lazerpay()->getAcceptedCoins();
- Initiate a transaction by doing this:
$params = [
'reference' => 'random-unique-string',
'amount' => 100000,
'currency' => 'USD',
'customer_name' => 'Paul Adams',
'customer_email' => '[email protected]',
'coin' => 'USDT',
'accept_partial_payment' => false,
];
lazerpay()->initiateTransaction($params);
- verify a transaction by doing this:
lazerpay()->confirmTransaction('reference-used');
- to initiate transfer, do this:
$params = [
'amount' => 1000,
'recipient' => 'recipient-address',
'coin' => 'coin',
'blockchain' => 'blockchain'
];
lazerpay()->transfer($params);
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.