1
PayPalに欠けているシンプルな寄付URLはありますか?WPFアプリケーション内から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>
私のWPFアプリケーションにはいくつかの簡単なURLがありますか?
私は寄付絵の画像を配置することだ:
そして、その画像のクリックで
:Process.Startがユーザーに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);
}
}
デフォルトのWebブラウザ。
ありがとうございます。
これは非常にうまくいくと思います。マシュー助けてくれてありがとう。 :) –
注:これはあなたの国で正式に寄付が許可されている場合(PayPalの場合は尋ねるだけ)、PayPalプレミアまたはビジネスアカウントが必要です。個人アカウントをお持ちの場合は、[メール]タブは表示されません。 – Robert
常に動作する代替リンク:https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=your-paypal-email-here&amount=leave -empty-or-set-donation-amount&item_name =寄付名 - ここにあるか放置されているか – Robert