Hello List !!
I try to make a cart in a full flash site, and since 1 week, try to work
with paypal, but no success...
my code :
[code]
url = "https://www.sandbox.paypal.com/cgi-bin/webscr"
var lv:LoadVars = new LoadVars();
lv["add"] = "1";
lv["cmd"] = "_cart";
lv["business"] = "test@test.com";
lv["item_name"] = "test 123";
lv["item_number"] = "idtest2";
lv["amount"] = "0.20";
lv["return"] = "http://www.mytest.com/returnPP.php?action=success";
lv["cancel_return"] = "http://www.mytest.com/returnPP.php?action=cancel";
lv["notify_url"] = "http://www.mytest.com/returnPP.php?action=ipn";
lv["no_note"] = "1";
lv["currency_code"] = "EUR";
lv["bn"] = "PP-ShopCartBF";
lv.sendAndLoad( url, lv, "POST" );
lv['owner'] = this;
lv.onLoad = function( success:Boolean )
{
trace( "success : " + success );
}
[/code]
If I try this code into the Flash IDE (mx 2004), loadVars return
success, but doesn't update the paypal cart...
If I try this code into a browser, but with local path (ie
c:\web\www\test\test.html) the loadVars return success and update my
cart, yeah !!
After that, I want to try on real scheme, with correct url (ie
127.0.0.1/test/test.html), but in this case, loadVars return failed and
it's not possible to relaunch the test (I have two buttons, first to add
an item, second to display paypal site cart).
It's a security problem ? Is there any possibility to call correctly the
paypal site with sendAndLoad and url path ??
Thanks a lot for any answer.
Thierry
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders