Hi everyone.
All very simple.
In HTML I use this and it's working. I see paypal page with correct 
information.

<form method="post" action= "https://www.sandbox.paypal.com/cgi-
bin/webscr"> 
<input type="hidden" name="cmd" value="_xclick"> 
<input type="hidden" name="business" value="[EMAIL PROTECTED]"> 
<input type="hidden" name="item_name" value="Shopping cart"> 
<input type="hidden" name="item_number" value="22"> 
<input type="hidden" name="amount" value="42.00"> 
<input type="hidden" name="no_shipping" value="0"> 
<input type="hidden" name="rm" value="1"> 
<input type="submit" value="Checkout">  
</FORM> 

In Flex I use this:

var url : String = "https://www.sandbox.paypal.com/cgi-bin/webscr";;
var variables : URLVariables = new URLVariables();
variables.cmd = "_xclick";
variables.business = "[EMAIL PROTECTED]";
variables.item_name = "Shopping cart";
variables.item_number = "22";
variables.amount = "15.00";
variables.no_shipping   = "0";
variables.rm = "1";
var request:URLRequest = new URLRequest(url);
request.method = URLRequestMethod.POST;
request.data = variables;
try
{
   navigateToURL(request);
}
catch (e:Error)
{
}

And I see paypal page with "We are sorry, we are experiencing 
temporary difficulties. Please try again later. ..."
Anybody know how it fix?

Reply via email to