# Redirect Problem with PAYPAL FLASH /PHP

**URL:** <https://forum.kirupa.com/t/redirect-problem-with-paypal-flash-php/318889>\
**Category:** programming\
**Created:** [February 2, 2011, 7:47pm UTC](https://forum.kirupa.com/t/redirect-problem-with-paypal-flash-php/318889 "2011-02-02T19:47:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hagop](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hagop](https://forum.kirupa.com/u/hagop)\
**Post date:** [February 2, 2011, 7:47pm UTC](https://forum.kirupa.com/t/redirect-problem-with-paypal-flash-php/318889/1 "2011-02-02T19:47:10Z")

</div>

Help ! help ! help !

I have a Flash web desighned in AS3 and added the PAYPAL Checkout button on my Flash Web page. I call the PAYPAL SetExpressCheckout command using

var [url:URLRequest = new URLRequest [URL="[http://localhost/expresscheckout.php"](http://localhost/expresscheckout.php](http://www.kirupa.com/forum/URLRequest)"](http://localhost/expresscheckout.php%22%5D(http://localhost/expresscheckout.php%5D(http://www.kirupa.com/forum/URLRequest)%22));  
var loader:URLLoader = new URLLoader (url);

Everything works fine, I receive the TOKEN from PAYPAL but command execution stops at  
header("Location: ".$payPalURL);

The internet browser does not redirect to PAYPAL.

Any help ?

Thanks  
Hagop
