我想向我的應用程序添加PayPal捐贈按鈕,但我不知道如何。我試圖在谷歌和PayPal網站上搜索,但我沒有找到解決方案。你有什麼建議嗎 ?c#在應用程序中添加一個PayPal捐贈按鈕
4
A
回答
10
我發現在該網站上的解決方案:http://www.gorancic.com/blog/net/c-paypal-donate-button:
private void btnDonate_Click(object sender, System.EventArgs e)
{
string url = "";
string business = "[email protected]"; // 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);
}
1
我認爲你需要打開一個瀏覽器,定義一個網站位置?並提供您的PayPal收件人蔘數?
您是否對Google C#「打開瀏覽器窗口」或「打開瀏覽器URL」?
0
你檢查了他們的開發者api嗎? https://developer.paypal.com/webapps/developer/docs/
至少提及Android和IO。
1
相關問題
- 1. 多個paypal捐贈按鈕
- 2. joomla 1.6 paypal捐贈按鈕
- 3. 用PayPal捐贈按鈕選擇金額
- 4. 從PayPal捐贈按鈕獲取捐贈價值?
- 5. webform with built in paypal捐贈按鈕
- 6. PayPal捐贈/捐贈API的InContext
- 7. 如何添加一個簡單的paypal捐贈按鈕到Plone 4網站?
- 8. 如何在Android應用程序中集成paypal捐贈?
- 9. 如何在android中顯示用paypal按鈕捐贈?
- 10. PayPal捐贈按鈕最低捐款金額
- 11. 捐贈按鈕/在免費的應用程序鏈接
- 12. 捐贈設置在Android應用程序菜單按鈕
- 13. PayPal捐贈按鈕 - 我如何刪除'經常性捐贈(每月)'選項?
- 14. 貝寶捐贈按鈕
- 15. 貝寶捐贈按鈕?
- 16. 捐贈按鈕選項
- 17. 「點擊捐贈」按鈕
- 18. 我可以在Google Play的Android應用中使用PayPal捐贈按鈕嗎?
- 19. 使用鈦的PayPal應用程序內捐贈
- 20. 如何集成PayPal捐贈按鈕在Phonegap,JQuery Mobile與Dreamweaver
- 21. 如何在Sharepoint網頁上嵌入PayPal捐贈按鈕
- 22. PayPal在付款後捐贈按鈕重定向
- 23. 如何在PayPal捐贈中添加特定金額
- 24. paypal捐款按鈕集成在asp.net c#
- 25. 貝寶捐贈按鈕不起作用
- 26. 使用PayPal,有沒有一種方法可以顯示使用api捐贈給特定捐贈按鈕的捐贈額?
- 27. 如何在我的Windows應用程序的「關於」框中放置PayPal捐贈按鈕?
- 28. 是否可以在移動應用程序(iOS,BB,Android)中添加捐贈按鈕?
- 29. 如何添加「捐贈」按鈕與貝寶
- 30. 貝寶捐贈按鈕多種貨幣
我在哪裏可以找到此網址所需的值?我的意思是,我可以猜出我的國家字符串,但其他的呢?在此先感謝 –
@BtcSources和未來讀者只需FYI即可:如果您需要預設金額(例如'...&lc = US&amount = 1.99&currency_code = USD ...),您也可以添加'「&amount =」+ amount'。 ..') – derekantrican