PayPal 中是否缺少一些简单的捐赠 URL?
当我生成我的捐赠按钮时,PayPal 返回一些我可以粘贴到我的网页中的 HTML。不幸的是,此链接会生成一些 session key 和诸如此类的东西。
<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>
是否可以将一些简单的 URL 放入我的 WPF 应用程序中?
我正在放置捐赠图片的图片:
点击那张图片:
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 将在用户默认的网络浏览器中打开 url。
感谢您的建议。
最佳答案
当您生成按钮时,您应该在按钮创建工具的第 2 步中勾选“使用 PayPal 保存按钮”。然后您应该在结果中得到两个选项卡:包含 HTML 按钮的 Website 和包含可以粘贴到电子邮件中的简单链接的 Email。您应该能够在您的应用程序中使用简单的电子邮件链接。
关于c# - 如何从 WPF 应用程序中链接到我的 PayPal 捐赠页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8704763/