c# add a PayPal donate button in application

2020-06-18 03:07发布

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 ?

标签: c# paypal
4条回答
你好瞎i
2楼-- · 2020-06-18 03:47

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 +
        "&currency_code=" + currency +
        "&bn=" + "PP%2dDonationsBF";

    System.Diagnostics.Process.Start(url);
}
查看更多
仙女界的扛把子
3楼-- · 2020-06-18 03:48

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

At least Android and IOs are mentioned.

查看更多
家丑人穷心不美
4楼-- · 2020-06-18 03:51

Checking this and this will help you to achieve.

查看更多
等我变得足够好
5楼-- · 2020-06-18 03:52

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"?

查看更多
登录 后发表回答