C#: PayPal Donate Button
Sunday, December 14th, 2008If you have a PayPal account and would like to add a donate button to your application you can use the following code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 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 + "¤cy_code=" + currency + "&bn=" + "PP%2dDonationsBF"; System.Diagnostics.Process.Start(url); } |