PHP code example of weishaypt / laravel-enot-io

1. Go to this page and download the library: Download weishaypt/laravel-enot-io 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/ */

    

weishaypt / laravel-enot-io example snippets


Weishaypt\EnotIo\EnotIoServiceProvider::class,

'EnotIo' => Weishaypt\EnotIo\Facades\EnotIo::class,

$amount = 100; // Payment`s amount

$url = EnotIo::getPayUrl($amount, $order_id);

$redirect = EnotIo::redirectToPayUrl($amount, $order_id);

$rows = [
    'time' => Carbon::now(),
    'info' => 'Local payment'
];

$url = EnotIo::getPayUrl($amount, $order_id, $desc, $payment_methood, $rows);

$redirect = EnotIo::redirectToPayUrl($amount, $order_id, $desc, $payment_methood, $rows);
 bash
php artisan vendor:publish --provider="Weishaypt\EnotIo\EnotIoServiceProvider"
 php
EnotIo::handle(Request $request)
 php
'searchOrder' => null  // EnotIoController@searchOrder(Request $request)
 php
'paidOrder' => null  // EnotIoController@paidOrder(Request $request, $order)
 php
 Route::get('/enotio/result', 'EnotIoController@handlePayment');