I have coded it, but it doesn't redirect to the received page, my gateway supports one return URL, and as soon as the client pays, it shows a blank page. and the transaction is added. I have tried $this->redirect invalidate, but it doesn't work at all. now help, please. how do I redirect the client back to the client's page?
$redirectUrl = "https://domain.com/client/payments/success";
$this->redirect($redirectUrl); // Use Blesta's redirect method
also checked that, but doesn't work
sucess()
public function success(array $get, array $post)
{
$validatedData = $this->validate($post);
if ($validatedData) {
$redirectUrl = "https://domain.com/client/payments/success";
$this->redirect($redirectUrl); // Use Blesta's redirect method
exit;
return $validatedData; // Return the already validated data
}
echo "Validation failed."; // Handle failure case
return null;