2013-08-23 48 views

回答

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

    System.Diagnostics.Process.Start(url); 
} 
+0

我在哪裏可以找到此網址所需的值?我的意思是,我可以猜出我的國家字符串,但其他的呢?在此先感謝 –

+1

@BtcSources和未來讀者只需FYI即可:如果您需要預設金額(例如'...&lc = US&amount = 1.99&currency_code = USD ...),您也可以添加'「&amount =」+ amount'。 ..') – derekantrican

1

我認爲你需要打開一個瀏覽器,定義一個網站位置?並提供您的PayPal收件人蔘數?

您是否對Google C#「打開瀏覽器窗口」或「打開瀏覽器URL」?

相關問題