PHP code example of ib / ib-wallet

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

    

ib / ib-wallet example snippets


php artisan vendor:publish --provider="Ib\IbWallet\IbWalletServiceProvider"

php artisan vendor:publish

public function esewa_success(Request $request){
    // print your response
    // save your work on database or continue your work
    //dd($request->all());
     $response = IbWallet::EsewaResponse($request->all());
        // dd($response);
       print_r($response);
}

public function esewa_fail(Request $request){
    // print your response
    dd($request->all());
}