i use fancybox to open payment gateway inside my site
everything working good
but when gateway return response to my endpoint that i must redirect my client to another page
the redirect done in fancybox iframe not in active tab page
my code
JQuery
Fancybox.show([ { src: response, width : '100%', height : '100%', touch : 'false', autoScale : 'false', autoDimensions : 'false', scrolling : 'false', transitionIn : 'none', transitionOut : 'none', type : 'iframe' , iframe : { scrolling : 'no' } } ]);
endpoint php code
$order_id = $parameters['merchant_order_id']; wp_safe_redirect( '/order-status/?error=' . $order_id); exit;
all ways but no solve