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

标签 c# paypal

我想在我的应用程序中添加 PayPal Donate 按钮,但我不知道如何操作。我尝试在谷歌和 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);
}

关于c# 在应用程序中添加一个 PayPal 捐赠按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18401786/

相关文章:

c# - 两个日期之间的天数

c# - Sitecore 中未发布/限制的项目显示标准值

paypal - Plunker 中上下文示例中的 paypal 后端

c# - 读取 CSV 文件并转换为转置表

c# - XAML XMLNS :Local C#

c# - 让用户指定 RazorEngine 模板有多危险?

ios - Braintree 一次性付款请求加载时间过长

php - 如何将 PayPal 订阅正确链接到我的数据库?

iphone - iPhone sdk 中的 Paypal 集成

php - 通过 PHP 处理 Paypal 付款