PHP code example of rodion15 / laravel-payok-io

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

    

rodion15 / laravel-payok-io example snippets


Rodion15\PayokIo\PayokIoServiceProvider::class,

'PayokIo' => Rodion15\PayokIo\Facades\PayokIo::class,

$amount = 100; // Payment`s amount

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

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

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

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

$redirect = PayokIo::redirectToPayUrl($amount, $order_id, $desc, $payment_methood, $rows);
 bash
php artisan vendor:publish --provider="Rodion15\PayokIo\PayokIoServiceProvider"
 php
PayokIo::handle(Request $request)
 php
'searchOrder' => null  // PayokIoController@searchOrder(Request $request)
 php
'paidOrder' => null  // PayokIoController@paidOrder(Request $request, $order)
 php
 Route::get('/payokio/result', 'PayokIoController@handlePayment');