Bruce Gust
asked on
Sending variables to Paypal using Flash CS4
I've got to convert a button that I've built into one whose script accommodates the posting of variables to Paypal. I've done this before, but I'm stuck.
Here's my code:
on (release) {
getURL("https://www.paypal.com/cgi-bin/webscr", "_blank", "POST");
}
Here's my code:
on (release) {
getURL("https://www.paypal.com/cgi-bin/webscr", "_blank", "POST");
}
ASKER
Hey, friend!
I'm missing it somehow. I took your code as it was documented above (and you probably just meant it as a starting point), but I got this error:
Wrong number of parameters: getURL requires between 1 and 3
What am I missing?
I'm missing it somehow. I took your code as it was documented above (and you probably just meant it as a starting point), but I got this error:
Wrong number of parameters: getURL requires between 1 and 3
What am I missing?
ASKER
Basically, what's happening is when I try to introduce the variables, I'm getting hung up.
How do I declare a variable? I'm used to ASII, ASIII is throwing me, I guess...
How do I declare a variable? I'm used to ASII, ASIII is throwing me, I guess...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
PayPal has documented a long list of webscr CGI parameters which you are probably already familiar with.
If you're submitting an order by redirecting to PayPal, for example, the request would look like this:
getURL("https://www.paypal.com/cgi-bin/webscr", "_blank", "POST",
"cmd=_xclick&cn=MyCompany&
PayPal should pop up in a new window with prepopulated fields based on your CGI parms.