PHP code example of ksolutionspro / payum-paynow

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

    

ksolutionspro / payum-paynow example snippets


// logic to fetch the payment by 'paymentId' from notification body

$gateway = $payum->getGateway('paynow');
$gateway->execute(new Notify($payment));