Sorry . . . new here. Here's my code:
# Check if we just returned inside the iframe. If so, store payflow response and redirect parent window with javascript.
if (defined($_POST
= array_merge($_GET, $_POST);
print "Content-type:text/html\n\n";
print '<script type="text/javascript">window.top.location.href = "' . script_url() . '";</script>';
exit(0);
}