PHP code example of sowrensen / laravel-shurjopay

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

    

sowrensen / laravel-shurjopay example snippets


use Sowren\ShurjoPay\ShurjoPayService;

$client = new ShurjoPayService(500, route('home'));

$client = new ShurjoPayService(
            500, 
            route('home'),
            'serverUrl', 
            'merchantUsername',
            'merchantPassword',
            'merchantKeyPrefix'
        );

$txnId = $client->generateTxnId(); // Pass any string to set your own unique id
$client->makePayment();

php artisan vendor:publish --tag=ls-config