0 Replies Latest reply on Aug 17, 2010 7:10 AM by Draco_kirojin

    Trying to add a paypal button in actionscript 2.0?


      So the company I work for wants to add a paypal button to the website (not a buynow or a shopping cart). We received the html code but the flash doesn't accept it. So I've been creating an actionscript for it without luck.


      I've tried:


      on(release){getURL("https://www.paypal/cart/add=1&business= EMAIL HERE");


      business="EMAIL HERE";

      value="ACCOUNT CODE"


      I received no errors and it goes to paypal but doesn't link the customer with the account.


      So I tried this:


      on (release) {getURL(form action)=("https://www.paypal.com/cgi-bin/webscr",method="post");}
      on (release) {var link:String=("https://www.paypal.com/cgi-bin/webscr");}
      on (release) {var cmd:String="_x-sclick";}
      var encrypted:String="<form action= {getURL(form action)=("https://www.paypal.com/cgi-bin/webscr",method="post");}
      input type="hidden" name="cmd" value="_s-xclick
      input type="hidden" name="hosted_button_id" value="CZ6JUTK9ND9QU"
      input type="image" src=("https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!");
      img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"
      var paypal:LoadVars=new LoadVars();
      function sumbit (){
      paypal.send (link,"_blank","POST")



      But receive 1 error and it doesn't do much of anything.


      I need help