Paypal button in flex

You know how you get that code from paypal for a button; lets
say a donate button. How would you include the same button and
functionality in a flex program?

Here is a quick example.
Change parameters as you like.
private function donate():void {
var url:String = "https://www.paypal.com/cgi-bin/webscr";
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.cmd = "_donations";
variables.business = "YOUR PAYPAL EMAIL";
variables.item_name = "YOUR APP NAME";
variables.no_shipping = "0";
variables.no_note = "1";
variables.tax = "0";
variables.currency_code = "EUR USD OR ...";
variables.tax = "0";
variables.lc = "US UK IT ...";
variables.bn = "PP-DonationsBF";
request.data = variables;
request.method = URLRequestMethod.POST;
navigateToURL(request);
<mx:Button label="Donate" click="donate()"/>

Similar Messages

  • How do I add a PayPal button to a page in my site?

    My client has a PayPal account and they would like me to add a button that enables visitors to click the button and submit donations.
    Is this something that is supported by Muse?

    Yes - you can add a PayPal button using arbitrary HTML.
    Create the donation page in Muse. If desired, you can also create a second confirmation page, that thanks the visitor for their donation after it is submitted.
    Publish both pages.
    Log into your PayPal account on their website. Use their system to generate the donation payment button.
    Copy the source code for the button.
    Return to Muse and go to Object > Insert HTML..., paste the code in the HTML Code area and Click OK.
    Position the HTML block where you want the button to appear on the page.
    Publish the page again and click the button to test that the button works as expected. It should jump from the Muse donation page to the PayPal page where the visitor can enter their donation into your client's account.
    You can style the PayPal page to look more like your site's design, which creates a more seamless appearance. If desired, you can also configure the PayPal payment page to redirect to the confirmation/thank you page you created in step 1 after processing the transaction.

  • IWeb not publishing PayPal button widget

    As per Burns Media (see below). I have taken the proper steps to insert a PayPal button. However the button does not show up on the published site. I've done this in the past and it did work but not now. I have the latest update to iWeb and running OSX 6.4.2 Is there a problem with these updates or am I just missing something?
    Thanks for your help!
    Jerry
    Burns Media Posted this: You can certainly use PayPal on your iWeb site, and it's fairly easy. You would indeed use the HTML Widget - first, log in to your PayPal account (or create one if you don't have one) and follow the steps to create a new button (Buy Now, Pay Now, Gift Certificate, etc.) When you've finished making the button, the last step gives you some HTML code to copy and paste into the HTML Widget. Copy the code from the PayPal site, in iWeb drag the HTML Snippet to your page and in the box that pops up paste the code. Hit Apply and you're done! When you publish the site, visitors can click your "Buy Now" box and be taken to PayPal to buy.

    I think this is very similar to the instructions you posted, but here is a visual demonstration showing how to add PayPal to an iWeb site
    http://www.ragesw.com/blog/2010/09/22/e-commerce-iweb-paypal/

  • PayPal button not visible in Firefox, but IS visible in Internet Explorer. WHY??

    Hi!
    I was trying to make an online purchase & the yellow PayPal selection button wasn't visible. I called the company to make sure they accepted PayPal, (they do), & they opened their browser & made a test purchase so they could tell me where the PayPal button was. On their browser the PayPal button was there...on mine it wasn't. I closed out Firefox & restarted it, but the PayPal option button never appeared. I decided to try to make the purchase using IE & the PayPal button was right where the company told me it would be!!! Do I have to change one of my settings somehow?? I avoid IE like the plague...I even deleted the Desktop shortcut for it on my laptop...I had to do a search so I could use it to test this issue. I really don't want to have to use IE for anything!!! Help will be greatly appreciated!!
    Thanks very much :)
    Nuts4Mutts
    "Dogs may not be our whole life but they make our lives whole"
    by Roger Caras

    hello Nuts4Mutts, please try to go through the steps covered in [[Websites look wrong or appear differently than they should]] - they should contain the most common solutions for such an issue...

  • Dynamic Paypal button for PDF fill-in form

    Hi there,
    I need help with adding a Paypal button to a PDF fill-in form. The Paypal button should feed through the Invoice Number field (a text field) and the invoice total amount (also a text field) to Paypal and add this to the Paypal cart (not ‘buy now’, but ‘add to cart’ so that more transactions can be added after that)
    I found this thread in the Adobe LiveCycle forum that does the same thing: http://forums.adobe.com/thread/339584;jsessionid=54D973B79E04C5B30F8B4BA56D95CE39.node0?ts tart=0
    I’ve tried to add this Javascript action to the button in Acrobat but it doesn’t work.
    Does anyone know what the correct Javascript should be to make this work in a PDF form?
    Help is very much appreciated
    Thanks

    Since nobody else has answered, I will say that you might try the Acrobat Scripting Forum http://forums.adobe.com/community/acrobat/acrobat_scripting

  • How do you make a gradient background on a button in flex 4

    Hey everyone, this is driving me crazy. Below is my css for a button in file.  I want a gradient background on a button in flex 4. I can not for the life of me figure out how to do this. There is no longer the backgroundColors option. chromeColor is only a single color and all the examples I see on the web using fill, and linearGradient throw up errors so I assume these were only in the beta? This is very frustrating to not be able to do a simple thing in flex 4 that worked in flex 3. Any ideas? Thanks.
    Button {
    cornerRadius: 3;
    highlightAlphas: 0.36, 0;
    fillAlphas: 1, 1, 1, 1;
    paddingLeft: 5;
    paddingRight: 5;
    backgroundColors: #ff6600, #ff9900, #ffffff, #eeeeee;
    color: #ffffff;
    disabledColor: black;
    textRollOverColor: #000000;
    textSelectedColor: #000000;
    borderColor: #ff6600;
    fontWeight: normal;

    This may not be what you're looking for, but since you are stuck, I'll elaborate on what FTQuest was saying. It will only take a few minutes to do this.
    In FB4:
    1. right-click the button, choose "Create Skin", give it a package (directory) and name (filename), host component "spark.components.Button" and "Create as copy of" "spark.skins.spark.ButtonSkin".
    This creates junk.mxml for you, the skin file.
    2. In the source of junk.mxml, change layer 1 (shadow) and layer 2 (fill) colors as I did here in this code. Note that where you see {color#}, this is data-binding to a variable I've made in a color.as file that I've included in the skin file. In fact, that is ALL that I changed in the skin file it generated for me.
    snippet from colors.as:
    public   var color1:int = new int(0xA1D190);
    snippet from junk.mxml:
    <![CDATA[
    include "Colors.as";
    layer changes in junk.mxml:
    <!-- layer 1: shadow -->
    <!--- @private -->
    <s:Rect id="shadow" left="-1" right="-1" top="-1" bottom="-1" radiusX="2">
    <s:fill>
    <s:LinearGradient rotation="90">
    <s:GradientEntry color="0x000000" color.down="
    {color5}"alpha="
    0.01"alpha.down="
    0" />
    <s:GradientEntry color="0x000000" color.down="
    {color6}" alpha="
    0.07"alpha.down="
    0.5" />
    </s:LinearGradient>
    </s:fill>
    </s:Rect>
    <!-- layer 2: fill -->
    <!--- @private -->
    <s:Rect id="fill" left="1" right="1" top="1" bottom="1" radiusX="2">
    <s:fill>
    <s:LinearGradient rotation="90">
    <s:GradientEntry color="{color2}" color.over="
    {color3}" color.down="
    {color4}" alpha="
    0.85" />
    <s:GradientEntry color="{color4}" color.over="
    {color5}" color.down="
    {color6}" alpha="
    0.85" />
    </s:LinearGradient>
    </s:fill>
    </s:Rect>
    You can (and maybe should) hardcode colors in here to do your gradients. After this, your button will need to use the skin, like:
    <s:Button ... skinClass="Skins.junk">
    ... where "Skins" is the name of the package/directory I told it to create the skin in.
    This may not be ideal for you, but it's working for me. Regarding having variables for color values, I posted a thread this morning asking if this is the best way to do things or not, so I don't know if it's the way to go.
    Hope this helps ... 

  • Gallery with Paypal buttons and drop-downs on the index page?

    I'm looking for a LR gallery where I can have thumbnails with Paypal buttons and drop-downs on the index page.
    I would prefer to keep my galleries interface streamlined and don't want to clutter it up with dropdowns and cart. I would like to have 1 page for ordering that has all my images as thumbnails with drop downs for price and size, rather than right-clicking on and image which opens in another page like the LRG Gallery with Paypal.
    I don't have a lot of experience messing with code, and none with .js. I did make a drop down in Paypal and have the code, but I think things would be pretty unwield it I designed a page as a table like I would in MS Word.
    I'm familiar with LRG Complete gallery, but don't see that it has the ability to not require a right click to order.
    I don't have a lot of experience messing with code, and none with .js. I did make a drop down in Paypal and have the code, but I think things would be pretty unwield it I designed a page as a table like I would in MS Word.
    Any thoughts, ideas, or help?
    Thanks,
    Reid

    Maybe some could try this out, and has experienced the same problem.
    It is on the site http://www.fonetix.biz
    and then push the German flag in the top Right corner, and further click on the Button "Contact info". It will give the eroor.

  • 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");
    cmd="_cart";
    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"
    /form
    var paypal:LoadVars=new LoadVars();
    function sumbit (){
    paypal.cmd=cmd;
    paypal.encrypted=encrypted;
    paypal.send (link,"_blank","POST")
    But receive 1 error and it doesn't do much of anything.
    I need help

    Zoom Search Engine software
    http://www.wrensoft.com/zoom/index.html
    Free Find
    http://www.freefind.com/
    Google Site Search -
    http://www.google.com/sitesearch/
    Web Assist DW Tools for Google (free)
    http://www.webassist.com/free-downloads/dreamweaver-extensions/dreamweaver-tools-for-googl e/
    Nancy O.

  • PayPal buttons inside table scramble Design View in DW CS5.5

    I developed my web site using Dreamweaver 8:
    http://www.harmonize.com/hatleymusic/classic.html
    As  you see, I have PayPal buttons inside table cells.  I did this using  Design View, putting the insertion point in the table cell, going to  code view, and pasting the PayPal button code at the insertion point.   This all worked fine.
    I just upgraded to DW CS5.5. and now  when I try to use the same procedure, the Design View image gets  scrambled  after I paste the button code in code view.  The table format  is no longer in place, and I can no longer see where the cells of the  table are.  However, when I go to Live View, everything looks fine  including the table and the buttons.
    Can anyone tell me  how to overcome this problem?  As it stands, I cannot use DW to work on  my web site, which is a major problem for me.
    Thanks.

    How do I get someone to respond to my question here?
    Let me try again.
    With DW CS5.5 when I try to insert a PayPal button into a table (which I always did with DW8) the table in Design View gets scrambled, making it unusable.  Please would one of you out there who is much more knowledgeable about DW than me try it and see if there is a solution?  If you create a new HTML page in Design view, create a table in it, place the insertion point inside one of the table cells, go to the code view and locate the insertion point there, then paste the PayPal button code at that point. Here's the code:
    <form target="paypal" 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="XSXQ9CUMUVLQC">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    Now go back to Design view and see how it looks.  If it acts the way it does for me, the table is no longer visible, but if you go to Live View everything looks fine with the table and the button inside it.  Of course, I can't design in Live View.
    PLEASE can someone out there help me.
    Many thanks.

  • HTML Snippet customized paypal buttons not showing correctly when published

    Hi, My customized paypal buttons that i but on my iweb site using html snippets are not displaying correctly. They work in Opera but not in firefox or safari. Please take a look and tell me what you think might be wrong. (all the links are working it's just not showing the graphics correctly (apart from in Opera)
    http://www.alisonbrent.com/ShopTableLamps.html
    Also I've just noticed that when i return to my iweb application (after closing in down) the Html snippets aren't there anymore just an outline, just like they appear in safari?
    Many thanks,
    Ali
    P.S

    Bonjour
    You inserted an image inside the ShopTable_Lampsfiles folder but it's is deleted every time you publish your page
    1) Create an new folder named Paypal in your root folder:
    FTP: With a FTP software (like Cyberduck) create a new folder in your server root folder
    MobileMe: just make an new folder inside the Folder Sites (iDisk > Web > Sites)
    Name this Folder "paypal"
    2) insert your image "addtocartbutton.png" inside this paypal folder
    Get the new URL of your image , something like
    http://www.alisonbrent.com/paypal/addtocartbutton.png
    3) Paste this URL in your codes, replace
    src="http://www.alisonbrent.com/ShopTable_Lampsfiles/addtocartbutton.png"
    by
    src="http://the/new/URL/of/addtocartbutton.png"

  • Paypal button in iWeb site

    any idea how to introduce a PayPal payment button into an iWeb site. Paypal give a section of HTML but i don't know how to apply it to the site i am creating for commercial use.

    Here's how I got a paypal button on my site at:
    http://www.rowan-cottage.co.uk/Site/ShopBlog/ShopBlog.html
    Go to Paypal and create your button. You'll get to a page with all the HTML needed. Copy this HTML.
    Open a text box on your page the size of the button eg, 62 px by 31 px.
    Type in the box some recognisable, unique text, eg, PaypalHTML, and change the font size of it so that's it fits in the tiny text box. You can horizontally centre the text or position it left or right, but don't vertically align it otherwise the text box changes into a png. You want it to remain a text box.
    Publish.
    Open the page in your text/HTML editor.
    Find and replace the text 'PaypalHTML' with the actual Paypal HTML.
    That's it. That way there's no alignment problems and it goes where you want it to.
    You use the same principle with banners served by other parties, scripts etc. See my links page for more examples:
    http://www.rowan-cottage.co.uk/Site/Links.html
    I hope that helps.
    Michael
    http://www.rowan-cottage.co.uk

  • Paypal button not working correctly in Firefox but does with IE

    On the Donate page of www.jnh-goneriding.org are several Paypal buttons with drop down options. When you choose anything other than the first line and click on Buy Now - when it goes to the next screen it only shows the first line - not the line you picked in the drop down.
    This works correctly in Internet Explorer.

    Firefox will show the link if nothing is blocking it...
    In case an ad blocker, script blocker, or another extension is involved, could you test the page in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    Not all add-ons are disabled: Flash and other plugins still run
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?

  • Paypal button for jquery mobile app in DW CS5.5

    Using the jquery mobile app framework in DW CS5.5 and need help in using Paypal mobile.
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <input type="hidden" name="cmd" value="_xclick" />
      <input type="hidden" name="bn" value="webassist.dreamweaver.4_5_0" />
      <input type="hidden" name="business" value="[email protected]" />
      <input type="hidden" name="item_name" value="Odor Cat" />
      <input type="hidden" name="amount" value="19.50" />
      <input type="hidden" name="currency_code" value="USD" />
      <input type="hidden" name="shipping" value="5.50" />
      <input type="hidden" name="return" value="http://www.mysite.com/checkout_success.php" />
      <input type="hidden" name="cancel_return" value="http://www.mysite.com/checkout_failure.php" />
      <input type="hidden" name="undefined_quantity" value="1" />
      <input type="hidden" name="receiver_email" value="@hotmail.com" />
      <input type="hidden" name="mrb" value="R-3WH47588B4505740X" />
      <input type="hidden" name="pal" value="ANNSXSLJLYR2A" />
      <input type="hidden" name="no_shipping" value="0" />
      <input type="hidden" name="no_note" value="0" />
      <input type="submit" name="submit1" id="submit1" value="Pay with PayPal">
               </form>
    This form button will take the user to paypal for payment, but is not for mobile app.
    thanks for your help,
    -Jim Balthrop

    How do I get someone to respond to my question here?
    Let me try again.
    With DW CS5.5 when I try to insert a PayPal button into a table (which I always did with DW8) the table in Design View gets scrambled, making it unusable.  Please would one of you out there who is much more knowledgeable about DW than me try it and see if there is a solution?  If you create a new HTML page in Design view, create a table in it, place the insertion point inside one of the table cells, go to the code view and locate the insertion point there, then paste the PayPal button code at that point. Here's the code:
    <form target="paypal" 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="XSXQ9CUMUVLQC">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    Now go back to Design view and see how it looks.  If it acts the way it does for me, the table is no longer visible, but if you go to Live View everything looks fine with the table and the button inside it.  Of course, I can't design in Live View.
    PLEASE can someone out there help me.
    Many thanks.

  • PayPal Button in Livescycle Fill-in form

    I have created a form in Livecycle Designer that calculates the total amount due after you have made your selections. I need to have that total amount on a PayPal Button. PayPal has their "Buy it Now" button in HTML. Is it possible to do this? Is anyone willing to help me out on this?
    I had no problem designing the form, but I am not good at XML and JavaScript.
    Thanks

    Hi Howard,
    I'm trying to use the code you provide here but I'm stuck on this part:
    // Append the item and amount parts of the url
    url = url + "&item_name=" + name;
    url = url + "&amount=" + cost;
    Here's what I've come up with:
    ----- form1.#subform[0].Header.Button1::initialize: - (JavaScript, both) ---------------------------
    // Get the item name and cost from a field on the page
    var name = form1.page1.TextField1.rawValue;
    var cost = form1.page1.numTotalMaterial.rawValue;
    // Construct the paypal url. Change the email address and currency code as appropriate
    var url = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=[email protected]&cur rency_co//www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=[email protected]&currency_co de=USD"
    // Append the item and amount parts of the url
    url = url + "&item_name=" + name;
    url = url + "&amount=" + cost;
    // Launch the web page. true means "open in a new browser window"
    app.launchURL(url, true);
    What do I have to change in the code lines?
    Thanks for your help
    Tamatoa

  • PayPal buttons for iWEB 1.1.2

    Hi,
    I am new to iWEB, and I made this really cute website with some of my art, but I have run into a problem with getting it to show PayPal buttons. I have read posts for other versions, and I cannot find any kind of HTML editor, or HTML Widget to use in this version I have. I have tried just pasting in the code right into the page, but when I publish the site, I see the code, not the PayPal button.
    HELP!!!!! I need to get this finished up and please do not tell me that I need to buy another version! This is Apple software we are talking about! Where's the HTML editor??????!!!
    HELP!!!!!!!!!!!!!! I am DESPERATE!!!!! What to do?!
    thanks in advance

    Mari ~ Welcome to the discussions. This old thread may help:
    http://discussions.apple.com/thread.jspa?messageID=11228196

Maybe you are looking for

  • Ran update to 10.4.11 and now it wont boot

    Last night, I tried to update to ver. 10.4.11, and now it will not boot. The reason I ran the update is because I downloaded an application called Sandvox, got a message that it could not install on my current OS and I needed to update to Leopard or

  • How to get the CSS to show up in the inspector for a Drupal7 Zen subtheme.

    Has anyone used this on a Zen theme for Drupal? Maybe it's getting confused by the php generated array of stylesheets?

  • SQL Error 4506 in Configuration Manager dataldr.log

    Hello, I noticed that every minute my Config Manager dataldr.log will display the following Hardware Inventory error related to the SMS_Inventory_Data_Loader component:  *** [42S21][4506][Microsoft][SQL Server Native Client 11.0][SQL Server]Column na

  • ...Because the original file could not be found

    Several of my songs can not be played or downloaded yet still show up in itunes with an exclamation sign next to them. I get a message that says 'the song xxx could not be used because the original file could not be found. Would you like to locate it

  • How to import .iaf files into Outlook 2011 for mac?

    I exported emails from Outlook Express (PC) to .iaf files years ago and now need to access them on a mac. I have downloaded Office for mac 2011 but can't work out how to import them into Outlook 2011. Can it be done? Any suggestions would be hugely h