Paypal donation button

More
10 years 1 month 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.150 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 36% Memory 15% Swap 17% CPU temp=52.1'C Uptime 9 Days