I want to add PayPal Donate button to my application, but I don't know how. I tried to search in google and on PayPal site, but I didn't found a solution. Do you have any suggestions ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I found solution on that 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 +
"¤cy_code=" + currency +
"&bn=" + "PP%2dDonationsBF";
System.Diagnostics.Process.Start(url);
}
回答2:
I assume you need to open a browser, to a defined web location? And supply your PayPal recipient parameters?
Did you Google for C# "open browser window" or "open browser URL"?
回答3:
Checking this and this will help you to achieve.
回答4:
Have you checked their developer api? https://developer.paypal.com/webapps/developer/docs/
At least Android and IOs are mentioned.