# Paypal button code for Flash

**URL:** https://forum.kirupa.com/t/paypal-button-code-for-flash/307154
**Category:** flash
**Created:** [March 29, 2010, 4:28pm UTC](https://forum.kirupa.com/t/paypal-button-code-for-flash/307154 "2010-03-29T16:28:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fuggedaboutit](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@fuggedaboutit](https://forum.kirupa.com/u/fuggedaboutit)
#### Post date: [March 29, 2010, 4:28pm UTC](https://forum.kirupa.com/t/paypal-button-code-for-flash/307154/1 "2010-03-29T16:28:16Z")

</div>

…sorry for the duplicate post, thought this needs to be in a more up to date forum than ‘Flash 8 and older’

It looks like Paypal has just changed their buy now code so my sites using the old Paypal button code are no longer working…

Have been using this code

```auto
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="info@website.com";
        paypal.currency_code="GBP";
        paypal.amount="1500.00";
        paypal.handling = "0";
        //paypal.no_shipping = "0";
        paypal.item_name="Product 1";
        
        //added
        paypal.lc="GB";
        paypal.bn="PP-BuyNowBF";
        paypal.no_note="1";
        
        //send our information to PayPal, including all the optional variables we have collected from customer
         paypal.send("https://www.paypal.com/cgi-bin/webscr","_blank","POST");

}

```

but that no longer works, you just get this error from Paypal:

“You have requested an outdated version of PayPal. This error often results from the use of bookmarks.”

Does anyone have the new code to use in Flash (AS2)?
