Jump to content


Paypal pay now flash button


  • You cannot reply to this topic
No replies to this topic

#1 igotregistered

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 11 January 2008 - 06:17 AM

Hi, I've tried paypals developer site, but they don't seem to offer any type of clear answer more of just questions. I'm looking for a way for my button to work.

Code:

First Try

on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
getURL("https://www.paypal.com/cgi-bin/webscr—cmd=_...charset=UTF%2d8", "_blank");
}




Second Try


on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
//create the LoadVars that will hold our paypal information
var paypal = new LoadVars();

//specify the business, amount of the item, shipping, etc.
paypal.cmd="_xclick";
paypal.upload="1";
paypal.business="my@address.com";
paypal.currency_code="CAD";
paypal.amount="";
paypal.handling = "";
paypal.item_name="";
paypal.input_type="hidden";
paypal.input_button="encrypted";
paypal.input_name="encrypted";
paypal.input_value="-----BEGIN PKCS7-----My paypal URL-----END PKCS7-----";
//send information to PayPal
paypal.send("https://www.paypal.com/cgi-bin/webscr","POST";
}
[/code]

Edited by igotregistered, 11 January 2008 - 06:18 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users