0
我一直在嘗試用一個簡單的調用腳本通過post方法,但在成功的貝寶沒有返回任何數據像tx,amt,貨幣等東西。通過我可以確認付款並運行更新查詢更新發票狀態付款請.. ..!貝寶沒有返回任何成功的數據?
這是我成功的頁面代碼:
<?php
$item_no = $_GET['item_number'];
$item_transaction = $_GET['tx']; // Paypal transaction ID
$item_price = $_GET['amt']; // Paypal received amount
$item_currency = $_GET['cc']; // Paypal received currency type
$price = '10.00';
$currency='USD';
//Rechecking the product price and currency details
if($item_price==$price && $item_currency==$currency)
{
echo "<h1>Welcome, Guest</h1>";
echo "<h1>Payment Successful</h1>";
}
else
{
echo "<h1>Payment Failed</h1>";
}
?>
,所以如果你的人可以在我的代碼看看,請..!