C # add PayPal donation button in app

I want to add the Donate PayPal button to my application, but I don’t know how to do it. I tried to search on google and on PayPal, but I did not find a solution. Do you have any suggestions?

+4
source share
4 answers

I found a solution on this site: http://www.gorancic.com/blog/net/c-paypal-donate-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); } 
+10
source

I assume you need to open a browser to identify the website? And specify the PayPal recipient settings?

Did you have Google for C # "open browser window" or "open browser URL"?

+1
source

Check this out and it will help you achieve.

+1
source

Have you checked your api developer? https://developer.paypal.com/webapps/developer/docs/

At least Android and OS are mentioned.

0
source

Source: https://habr.com/ru/post/1498583/


All Articles