PayPalにない簡単な寄付URLはありますか?
寄付ボタンを生成すると、PayPalはWebページに貼り付けることができる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を開きます。
提案をありがとう。