我正在尝试设置一个简单的应用:
我可以按“立即购买”按钮显示:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="herschelgomez@xyzzyu.com">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Hot Sauce-12oz Bottle">
<input type="hidden" name="amount" ng-value="username">
<input type="hidden" name="currency_code" value="USD">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>
但我的用户输入的数据如下:
<input type="text" name="firstname" ng-model="firstname" placeholder="Firstname"/>
如何绑定上面输入的值,以便在我的“立即购买”表单中插入隐藏的input
类型。
我试过了:
<input type="hidden" name="amount" ng-value="username">
然而,这似乎不起作用。