How to specify return value for Paypal?

Hiya, I’m setting up a paypal payment cart and have a bit of a problem; I can’t specify a return address for a sucessful buyer to be directed to as ‘return’ is a reserved word- Is there any way i can get around this?

Here is my code:

[INDENT]myPurchaseButton.onRelease = function() {
formData = new LoadVars();
formData.cmd = “_cart”;
formData.business = "me@googlemail.com";
formData.item_name = “testing payment”;
formData.currency_code = “GBP”;
formData.no_note = “1”
formdata.return= “http://www.mydomain.com/success”; formData.amount = “0.01”;
formData[“add”] = “1”;
formData.send(“https://www.paypal.com/cgi-bin/webscr”, formData, “POST”);
};
[/INDENT]

Thanks for any help, this forum is ace

Same way you did it with add :wink:

formdata[“return”] = “http://www.mydomain.com/success”;

haha lol! thanks again :slight_smile:

No problem :block: