# Paypal button in flash

**URL:** <https://forum.kirupa.com/t/paypal-button-in-flash/313649>\
**Category:** Uncategorized\
**Created:** [September 6, 2010, 7:59am UTC](https://forum.kirupa.com/t/paypal-button-in-flash/313649 "2010-09-06T07:59:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![worthless](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@worthless](https://forum.kirupa.com/u/worthless)\
**Post date:** [September 6, 2010, 7:59am UTC](https://forum.kirupa.com/t/paypal-button-in-flash/313649/1 "2010-09-06T07:59:32Z")

</div>

Hello

Here is the code which directed the user to [www.paypal.com](http://www.paypal.com) after clicking the buy now button in a flash site

```auto

[LIST=1]
[*]ppbutton.onRelease=function(){
[*]cmd = "_xclick";
[*]business = "payments@somedomain.net";
[*]item_name = "some item nameg";
[*]item_number = "000001";
[*]no_shipping = "2";
[*]shipping = postage.text.substr(0, -3);
[*]amount = curTotal.text.substr(0, -3);
[*]Return = "http://www.somedomain.net/thankyou.html";
[*]cancel_return = "http://www.somedomain.net/cancel.html";
[*]no_note = "1";
[*]currency_code = _parent.theCur;
[*]getURL("https://www.paypal.com/cgi-bin/webscr", "_blank", "POST");
[*]}
[/LIST]

```

Now how can I fix the amount to $5.00 so that the user can no other option but to pay $5.00.

Please advise me.

worthless
