Integrating Paynow


am getting this error please help

Fatal error : Call to undefined method Paynow\Core\InitResponse::redirect() in C:\xampp\htdocs\waterBilling\payment.php on line 211


Hi @ferowise. The redirect method has been removed as of the latest version of the SDK, it seems like the docs site needs to be updated to reflect that change. You now need to manually redirect the user:

$link = $response->redirectUrl(); 

header('Location: {$link}');


Just opened a PR the documentation site’s repo to resolve that. The docs should be updated soon to reflect the changes to the SDK