[英]PHP Paypal IPN Integration
我一直在使用 paypal ipn 作為我網站中的買斷選項。ipn 過程需要各種隱藏字段才能通過支付網關。一些隱藏字段,例如金額、價格、billing_email。
<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 和 quantity=100 在總金額列中顯示 $1,000。 但在我的應用程序中,我需要與原價相同,即僅 10 美元。 請根據要求提出任何想法以獲取此字段值。
請根據要求提出任何想法以獲取此字段值。
以不同方式將其傳遞給 paypal。 在 PP 購物車詳情中,append 括號中的商品數量並將數量設置為 1,即“some stuff (100), 1, $10”而不是“some stuff, 100, $10”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.