# FLASH PAYPAL PHP Redirect Problem

**URL:** <https://forum.kirupa.com/t/flash-paypal-php-redirect-problem/318890>\
**Category:** flash\
**Created:** [February 2, 2011, 7:49pm UTC](https://forum.kirupa.com/t/flash-paypal-php-redirect-problem/318890 "2011-02-02T19:49:44Z")\
**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:49pm UTC](https://forum.kirupa.com/t/flash-paypal-php-redirect-problem/318890/1 "2011-02-02T19:49:44Z")

</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 [[COLOR=#0000ff]url:URLRequest[/COLOR] = new URLRequest [URL=“[http://localhost/expresscheckout.php](http://localhost/expresscheckout.php)”][COLOR=#0000ff](http://localhost/expresscheckout.php%5B/COLOR%5D%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
