Onl*_*ere 1 c# wpf paypal donations
PayPal是否缺少一些简单的捐款网址?
当我生成捐赠按钮时,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>
Run Code Online (Sandbox Code Playgroud)
我可以在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);
}
}
Run Code Online (Sandbox Code Playgroud)
Process.Start将在用户默认Web浏览器中打开URL.
谢谢你的建议.
生成按钮时,应在按钮创建工具的步骤2中勾选"使用PayPal保存按钮".然后,您应该在结果中获得两个选项卡:包含HTML按钮的网站和包含可以粘贴到电子邮件中的简单链接的电子邮件.您应该能够在应用程序中使用简单的电子邮件链接.
| 归档时间: |
|
| 查看次数: |
1488 次 |
| 最近记录: |