PayPal donation button

BlitzMax Forums/BlitzMax Programming/PayPal donation button

MacSven(Posted 2011) [#1]
Has someone a solution to use an PayPal donate button in an application under MacOS X?


Kryzon(Posted 2011) [#2]
Sure. Have your button strike an even that calls this: OpenURL().

The url it leads to, of course, will be your pay-pal donation code.


GfK(Posted 2011) [#3]
Sure. Have your button strike an even that calls this: OpenURL().
You probably should call Driver.OpenURL(). Simply calling OpenURL() does some http prefix checks and I'm pretty sure it won't work with webpages on secure servers (which I assume a paypal payment page will be). Driver.OpenURL() will bypass that and just try to open whatever URL you feed to it.


Kryzon(Posted 2011) [#4]
I agree; I looked at the source, it is different than directly calling Driver.OpenURL(), but I don't see any particular part that would break the url you sent (if the url starts with "https", for secure pages, it bypasses the parsing anyway).

So it's worth noting that if calling OpenURL() doesn't work for someone, they might have better luck using Driver.OpenURL() directly.


GfK(Posted 2011) [#5]
I haven't looked for ages but it didn't used to work with secure servers. They may well have changed it at some point.