Paypal donation button

More
10 years 2 weeks 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.146 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 40% Memory 22% Swap 70% CPU temp=51.1'C Uptime 72 Days