Error creating paynow object in php



require_once ‘./vendor/autoload.php’;


$paynow = new Paynow/Payments/Paynow(



    ‘’, // This is the result URL

    ‘’ // This is the return URL


when i paste this code after downloading php-sdk with comper its giving an eror “undefined Paynow” i dont know whats going on


Hi there, you are a victim of / vs \ slash war!

Simply replace Paynow/Payments/Paynow with Paynow\Payments\Paynow and all should be well.


Thanks man it worked hahaha


ko how long does paynow take to finish testing my account cant finish making payment because its still under testing apo i got to launch project ASAP