Paynow cant execute results URL page , after payment is done

Its showing no error message . Im using php api .

$results_url = domain . “/paynow/application.php?terminal=paynow”;

even if I put error message in that page , paynow cant execute and lm looking at the error log , there is nothing meaning paynow is not executing that page at all.

I have ssl in place and my results url page looks good. What can I be missing.

RESULTS PAGE

require_once(’…/Libraries/paynow_library/vendor/autoload.php’);
$results_url = domain . “/paynow/application.php?terminal=paynow”;

$return_url = domain . “/web/confirm-account.php”;

file_put_contents(“dddd.txt”, $results_url);

$paynow = new Paynow\Payments\Paynow(

paynow_id,

paynow_key,

$return_url,

$results_url

);

$results = $paynow->processStatusUpdate();

$reference = $results->reference();

$paynowReference = $results->paynowReference();

$amount = $results->amount();

$status = $results->status();

$payment_method_id = 3;

file_put_contents(“xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.txt”, “EWUDUNEWJNJENWJCNEJNCJENJCNJERN”);

Good day Peter,

From the code you sent to support kindly note that its $response->success(); and kindly echo $response->data(); and send the error from paynow.

I still have the same issue , also $response->success; is returning 1 , and $response->data() is returning an array , meaning its still OK to say
$response = $paynow->send($payment);
if(!$response->success)
print “Cant connect to paynow”;
else
{
$link = $response->redirectUrl();
window.location.href=’$link’;
}

we are indeed redirected to that link , which is paynow , I can successfully make a test payment , but PAYNOW in the background is failing to EXECUTE my $results URL page.

I can deliberately make errors on that page and expect an error in the logs , but there is nothing , Paynow cant execute my $results page . Thus the issue .

Good day Peter

Make sure your result url is live and accessible not a localhost url, for refference kindly share your result url.

The URL is LIVE , and this exact code was working before , we have another system that is live https://tendertube.co.zw , and its doing the same thing. I also updated the paynow library via a download and composer and still same error .

$results_url = “https://elearning.startrack.co.zw/paynow/application.php?terminal=paynow

Hi Peter can you send latest transaction paynow refference. If you don’t have kindly create one and send the paynow refference.

latest transaction paynow refference

2402085742

All of a sudden Im seeing the error log, meaning you manually pushed things from your end. The error log was talking about an error in the paynow library, Unfortunately I thought its now working and I deleted the error log and I restored an old library that l knew worked before.

Now Im testing nothing happened. results url did not execute again. No error message and I have put file_put_contents() , so a file can be created to showcase that code executed , but nothing from my end.

RESULT URL STILL NOT EXECUTING

latest transaction paynow refference
2402085742

$results_url = “https://elearning.startrack.co.zw/paynow/application.php?terminal=paynow

Please note that your result url returns a 500 error showing this. <script> createCookie(‘color’,‘rgba(0, 255, 0,1)’,30); </script><script> createCookie(‘button_color’,‘rgba(39, 131, 34,1)’,30); </script> kindly make sure your result url. You can test it via postman

How do I go about testing via paynow , I cant find any documentaton with the paynow post url and body via POSTMAN

Test your result url just try to post any dummy data to you result url on postman. Your return url is return a 500 error

Hello there peter,are you having the same issue with your paynow intergration sdk,