6

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

4

4 回答 4

10

我在那个网站上找到了解决方案: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);
}
于 2013-08-23T11:38:08.177 回答
1

检查这一点将帮助您实现。

于 2013-08-23T11:38:46.647 回答
1

我假设您需要打开浏览器到定义的 Web 位置?并提供您的 PayPal 收件人参数?

您是否在 Google 上搜索过 C#“打开浏览器窗口”或“打开浏览器 URL”?

于 2013-08-23T11:34:32.810 回答
0

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

至少提到了 Android 和 IO。

于 2013-08-23T11:35:22.007 回答