1

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>

是否有一些简单的 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 将在用户默认 Web 浏览器中打开 url。

感谢您的建议。

4

1 回答 1

6

生成按钮时,应在按钮创建工具的第 2 步中勾选“使用 PayPal 保存按钮”。然后您应该在结果中看到两个选项卡:包含 HTML 按钮的网站和包含可以粘贴到电子邮件中的简单链接的电子邮件。您应该能够在应用程序中使用简单的电子邮件链接。

于 2012-01-02T20:06:13.620 回答