How to add paypal donate button to an application?
-
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..
-
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.
-
I probably didn't asked my question good.
In order to have a paypal donate button in my appSolution 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.
-
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 :)
-
Ask PayPal