PHP code example of zeevx / lara-lazer

1. Go to this page and download the library: Download zeevx/lara-lazer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zeevx / lara-lazer example snippets


lazerpay() //It works automatically

lazerpay()->getAcceptedCoins();

$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);

lazerpay()->confirmTransaction('reference-used');

$params = [
        'amount' => 1000,
        'recipient' => 'recipient-address',
        'coin' => 'coin',
        'blockchain' => 'blockchain'
        ];
        
lazerpay()->transfer($params);
bash
php artisan lazerpay:publish