PHP code example of ashikkaiser / laravel-webmoney-merchant

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

    

ashikkaiser / laravel-webmoney-merchant example snippets


'providers' => [

    ActionM\WebMoneyMerchant\WebMoneyMerchantServiceProvider::class,
    
]

    'WebMoneyMerchant' => ActionM\WebMoneyMerchant\Facades\WebMoneyMerchant::class,
 bash
php artisan vendor:publish --provider="ActionM\WebMoneyMerchant\WebMoneyMerchantServiceProvider" 
 bash
php artisan vendor:publish --provider="ActionM\WebMoneyMerchant\WebMoneyMerchantServiceProvider" --tag=config 
 bash
php artisan vendor:publish --provider="ActionM\WebMoneyMerchant\WebMoneyMerchantServiceProvider" --tag=views 
 php
WebMoneyMerchant::generatePaymentForm($payment_amount, $payment_no, $item_name);
 php
WebMoneyMerchant::payOrderFromGate(Request $request)
 php
 'searchOrderFilter' => null  // ExampleController:searchOrderFilter($request)
 php
 'paidOrderFilter' => null  // ExampleController::paidOrderFilter($request,$order)
 php
Route::post('/webmoney/result', 'ExampleController@payOrderFromGate');
Route::get('/webmoney/result',  'ExampleController@payOrderFromGateOK');