Paypal donation button

More
9 years 5 months ago #162 by ThibmoRozier
To help you out with the donation button:
private void btnDonate_Click(object sender, System.EventArgs e)
{
    string url = "";
 
    string business     = "my@paypalemail.com";  // your paypal email
    string description  = "Donation";            // '%20' represents a space. remember HTML!
    string country      = "AU";                  // AU, US, etc.
    string currency     = "AUD";                 // AUD, USD, etc.
 
    url += "https://www.paypal.com/cgi-bin/webscr" +
        "?cmd=" + "_donations" +
        "&business=" + business +
        "&lc=" + country +
        "&item_name=" + description +
        "&currency_code=" + currency +
        "&bn=" + "PP%2dDonationsBF";
 
    System.Diagnostics.Process.Start(url);
}

Just add a button image and you're done. :)

//Edit: Got it from http://www.gorancic.com/blog/net/c-paypal-donate-button

Please Log in or Create an account to join the conversation.

Moderators: Gamma-Man
Time to create page: 0.120 seconds
Powered by Kunena Forum
Everything's free. Please support us by considering a donation. Log in first!
Solar powered Raspberry Pi 4 server stats: CPU 30% Memory 13% Swap 18% CPU temp=56.4'C Uptime 40 Days