如何在paypal表单中添加金额

时间:2018-05-15 12:07:26

标签: html forms paypal

我想从我的网站插入var permute = (nums) => { results = []; var backtrack = (nums, result) => { if (nums.length === result.length) { results.push(result); } else { for (var i = 0; i < nums.length; i++) { if (result.indexOf(nums[i]) > -1) { continue; } result.push(nums[i]); backtrack(nums, result); result.pop(); } } } backtrack(nums, []); return results; }; console.log(permute([1, 2, 3]));Amount,然后点击PayPal form按钮。

Submititem_name都是PayPal网站上的显示,但quantity是空的?我需要在Price per item

中添加Price per item任何金额

HTML表格

amount field

Paypal截图

enter image description here

我有尝试金额而非金额_1 PayPal显示错误消息

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

<input type="hidden" value="_xclick" name="cmd">
<input type="hidden" value="1" name="upload">
<input type="hidden" value="xxx@gmail.com" name="business">
<input type="hidden" value="T-SHIRT" name="item_name">
<input type="hidden" value="6.99" name="amount_1">
<input type="hidden" value="1" name="quantity">
<input type="hidden" value="" name="custom">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" value="http://localhost/paypalform/my_ipn.php" name="notify_url">
<input type="hidden" 
value="http://localhost/paypalform/checkout_complete.php" 
name="return">
<input type="hidden" value="2" name="rm">
<input type="hidden" value="Return to The Store" name="cbt">
<input type="hidden" 
value="http://localhost/paypalform/paypal_cancel.php" 
name="cancel_return">
<input type="hidden" value="GB" name="lc">
<input type="hidden" value="EUR" name="currency_code">
<input type="image" name="submit" 
src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif">

</form>

1 个答案:

答案 0 :(得分:1)

尝试使用amount代替amount_1

<input type="hidden" value="6.99" name="amount">