PHP code example of musonza / paynow-sdk-php-laravel

1. Go to this page and download the library: Download musonza/paynow-sdk-php-laravel 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/ */

    

musonza / paynow-sdk-php-laravel example snippets




return [
    'integration_id' => env('PAYNOW_INTEGRATION_ID'),
    'integration_key' => env('PAYNOW_INTEGRATION_KEY'),
    'return_url' => env('PAYNOW_RETURN_URL', 'http://example.com/gateways/paynow/update'),
    'result_url' => env('PAYNOW_RESULT_URL', 'http://example.com/return?gateway=paynow'),
];




// Returns Paynow\Payments\FluentBuilder
$payment = Paynow::createPayment('Invoice 35', '[email protected]');


composer 

php artisan vendor:publish