Csharp/C#教程:c#在应用程序中添加PayPal捐赠按钮分享


c#在应用程序中添加PayPal捐赠按钮

我想在我的应用程序中添加PayPal捐赠按钮,但我不知道如何。 我试图在谷歌和PayPal网站上搜索,但我没有找到解决方案。 你有什么建议吗 ?

我在该网站上找到了解决方案: 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); } 

我假设你需要打开一个浏览器,到一个定义的网站位置? 并提供您的PayPal收件人参数?

你是否谷歌为C#“打开浏览器窗口”或“打开浏览器URL”?

检查这一点 , 这将有助于您实现。

你检查过他们的开发者api了吗? https://developer.paypal.com/webapps/developer/docs/

至少提到了Android和IO。

上述就是C#学习教程:c#在应用程序中添加PayPal捐赠按钮分享的全部内容,如果对大家有所用处且需要了解更多关于C#学习教程,希望大家多多关注—计算机技术网(www.ctvol.com)!

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/cdevelopment/1008279.html

(0)
上一篇 2021年12月28日
下一篇 2021年12月28日

精彩推荐