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