PayPalの標準のSUBSCRIBEボタンを使用しています。HTMLは、以下のコードスニペットのようになります。問題は、FORMパラメーターa1 / p1 / t1、a3 / p3 / t3、src / sra、およびPayPalSUBSCRIBEボタンの他の高度なHTML変数をオーバーライドできないように見えることです。つまり、PayPalのWebサイトの標準ボタン構成で構成した値に設定されたままになります。
質問:ウェブサイトの高度なPayPalサブスクリプションパラメーターをプログラムで上書きするにはどうすればよいですか?これも可能ですか?ありがとう。
<form accept-charset="UTF-8" action="https://www.paypal.com/cgi-bin/webscr" class="signup_company" id="signup_company" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="MY_PAYPAL_BUTTON_ID" />
<input type="hidden" name="currency_code" value="USD" />
<!-- First two months of subscription are free. -->
<input type="hidden" name="a1" value="0" />
<input type="hidden" name="p1" value="2" />
<input type="hidden" name="t1" value="M" />
<!-- Recurring subscription payments. -->
<input type="hidden" name="a3" value="29.95" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="M" />
<input type="hidden" name="src" value="1" />
<input type="hidden" name="sra" value="1" />
<!-- Pass-through variable sent to paypal; it is set in javascript before the submit. -->
<input type="hidden" name="custom" value="Evergreen::::foo@baz.com::::4" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_SM.gif"
border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"
onclick="$(#signup_company).submit();" />
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>