0
我一直在使用IPN在我site.The IPN过程买断选项,贝宝需要各种隐藏字段通过隐藏字段这样的量,价,billing_email的支付gateway.Some。PHP贝宝IPN的集成
<div class="payorder_det">
<div class="payorder_qtydet">
<div class="payorder_qtyno">
<label>Please choose your Card Quantity:</label>
</div>
<div class="payorder_qtyinfo">
<input type="radio" name="quantity" value="100" onclick="changeamount(this)" checked>100
<input type="radio" name="quantity" value="250" onclick="changeamount(this)"> 250
<input type="radio" name="quantity" value="1000" onclick="changeamount(this)">1000
</div>
<div class="payorder_qtyinfo">
<label><b>Price:</b> </label>
$<input id="amount" name="amount" value="20"
style="width:50px;border:none" readonly="true"></input>
</div>
</div>
<div class="payorder_qtydet">
<input type="submit" value="" name="paypal" class="paypalbtn">
</div>
</div>
当前过程通过计算Total = Quantity * Price来正确工作。所以在PayPal中显示EX:itemprice:10美元,数量= 100,总金额栏显示1000美元。但在我的申请中,我需要的总价与原价相同,即只有10美元。请根据要求提出任何想法以获取此字段值。
我没有在购物车中,它只是一些放射性按钮及其相应的值。请提出任何其他方法。 – 2011-05-25 12:18:31
这也是一样的:你在表单中的某个点传递一个数量,这个数据在PP上被不同地应用/解释。您需要阅读PP文档并相应地修改您的代码。 – 2011-05-25 12:21:35