Well I have spent a large amount of time trying to figure out how to intergate paypal with flash, to make a buy now button is simple, But try and get a cart to work… thats another matter.
I used good old LoadVars to send all the required fileds to paypal,
eg.
var lv_sender:LoadVars = new LoadVars;
var lv_reciever:LoadVars = new LoadVars;
lv_sender.company = "myCompany";
lv_sender.amount = "25.00"
lv_sender.item_name="clothing";
// you get the idea
lv_sender.sendAndLoad ("https://www.paypal.com/..." , lv_reciever, "POST");
lc_reciever.onLoad = function(){
trace ("loaded cool..");
}
so you would asume the above works…
NO NO NO.
paypal requires the target to = ‘paypal’ so you can’t run your own cart, every time you run the script it doesn’t update instead you have to run
lv_sender.send("https://www.paypal.com/..." , "paypal", "POST");
so you can’t get rid of the pop up for now, but I will keep you posted if I get any further.
Rant over and out