Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to add paypal donate button to an application?
Forum Updated to NodeBB v4.3 + New Features

How to add paypal donate button to an application?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Leon
    wrote on last edited by
    #1

    Paypal provides as with this link.

    @<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="IHIDETHISNUMBER">
    <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_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_GB/i/scr/pixel.gif" width="1" height="1">
    </form>@

    So i was thinking how to add this to a qt app? I mean i could for example add a button, make it flat, change it's icon and put a lik, but this sounds a little bit wrong?

    How to use the html that paypal provides me? tried to a label's text, doesn't work..

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      You can open the PayPal URL in an external web browser when the button is clicked following "this tutorial":http://qt-project.org/wiki/How_to_Launch_Web_Browser.

      http://anavi.org/

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Leon
        wrote on last edited by
        #3

        I probably didn't asked my question good.
        In order to have a paypal donate button in my app

        Solution 1: Download image (https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif) and put it on my resource file, add a button, make it flat, change it’s icon (to the image at the resources, do i got the copyrights?) and put a link when button clicked.

        Solution 2: i could add a button, make it flat, check for internet connection - If internet connection{ download image https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif and set it as icon} else { set text 'Donate') , and put a link when button clicked.

        So the question is mostly about what should i do with the icon.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          OK, I see. I have no idea about the copyrights but if I were you most probably I would prefer the first solution. In my opinion it is partly waste of network resources to download this ugly image each time :)

          http://anavi.org/

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            Ask PayPal

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved