PHP code example of dnsoftware / laravel-unitpay

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

    

dnsoftware / laravel-unitpay example snippets


'providers' => [

    ActionM\UnitPay\UnitPayServiceProvider::class,
    
]

    'UnitPay' => ActionM\UnitPay\Facades\UnitPay::class,
 bash
php artisan vendor:publish --provider="ActionM\UnitPay\UnitPayServiceProvider" 
 bash
php artisan vendor:publish --provider="ActionM\UnitPay\UnitPayServiceProvider" --tag=config 
 bash
php artisan vendor:publish --provider="ActionM\UnitPay\UnitPayServiceProvider" --tag=views 
 php
UnitPay::payOrderFromGate(Request $request)
 php
 'searchOrderFilter' => null  // ExampleController:searchOrderFilter($request)
 php
 'paidOrderFilter' => null  // ExampleController::paidOrderFilter($request,$order)
 php
 Route::get('/unitpay/result', 'ExampleController@payOrderFromGate');