[英]How to link to my PayPal donate page from within a WPF application?
PayPal是否缺少一些簡單的捐贈URL?
當我生成捐贈按鈕時,PayPal返回一些HTML,可以將其粘貼到我的網頁中。 不幸的是,此鏈接生成了一些會話密鑰,但沒有生成。
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----Masdfasdfasdfasdfasdfasdfsadfasdfasdfasdfasdf=-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
我可以在WPF應用程序中放入一些簡單的URL嗎?
我要放置捐贈圖片的圖片:
然后單擊該圖片:
private void donation_MouseDown(object sender, MouseButtonEventArgs e)
{
try
{
Process.Start("http://donation page here.com/");
}
catch (Exception)
{
MessageBox.Show("Something went wrong! Rest assured the cleanup monkeys have been sent!", "Woops!", MessageBoxButton.OK, MessageBoxImage.Error);
}
}
其中Process.Start將在用戶默認的Web瀏覽器中打開URL。
感謝您的建議。
生成按鈕時,應在按鈕創建工具的第2步中選中“使用PayPal保存按鈕”。 然后,您應該在結果中獲得兩個選項卡:包含HTML按鈕的網站和包含可粘貼到電子郵件中的簡單鏈接的電子郵件。 您應該可以在應用程序中使用簡單的電子郵件鏈接。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.