在貝寶notify_url頁,當我使用CMD值_cart.How我能得到的交易細節notify_url頁如何獲得notify_url頁的交易細節,貝寶
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="POST" name="_xclick" id="paypal_form">
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="cmd" value="_xclick" />
<!-- The business email address, where you want to receive the payment -->
<!--<input type="hidden" name="business" value="[email protected]" />-->
<input type="hidden" name="business" value="[email protected]" />
<!-- The customer email address -->
<input type="hidden" name="item_name_1" value="<?php echo ucfirst($couponname); ?>" />
<input type="hidden" name="amount_1" value="<?php echo $total_payable_amount; ?>" />
<!--<input type="hidden" name="currency_code" value="AUD" />-->
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="amount" value="25.58" />
<!-- Where you want to return after PayPal Payment -->
<input type="hidden" name="return" value="http://yes-i-deal.com.au/test/paypal_ipn.php" />
<!-- A back-end notification send to the specific page after successful payment -->
<!--<input type="hidden" name="notify_url" value="http://yes-i-deal.com.au/test/paypal.php" />-->
<input type="hidden" name="notify_url" value="http://yes-i-deal.com.au/test/paypal_ipn.php" />
<!-- Where you want to return after cancel the PayPal Payment -->
<input type="hidden" name="cancel_return" value="http://yes-i-deal.com.au/" />
<input type="hidden" name="custom" value="<?php echo $coupon_id."_".$userid;?>" />
<input type="image" name="submit" src="http://yes-i-deal.com.au/themes/green/images/Buy-Now-Button.png" />
</form>
在我沒有得到任何值,我notify_url頁我得到的價值爲
session_start();
require("ipn_cls1.php");
$paypal_info = $_POST;
print_r($paypal_info);
$paypal_ipn = new paypal_ipn($paypal_info);
$payment_status = trim($paypal_info['payment_status']); // Si Completed : tout est OK echo
$payment_amount = trim($paypal_info['mc_gross']);
你能證明你的notify_url網頁代碼..? notify_url頁面獲取POST數據來自PayPal,所以檢查POST數據.. – 2013-02-19 03:51:27
當我使用CMD值_xclick我收到的細節,但使用時_cart沒有得到。我的notify_url頁面我獲得值爲session_start(); require(「ipn_cls1.php」); $ paypal_info = $ _POST; print_r($ paypal_info); $ paypal_ipn = new paypal_ipn($ paypal_info); /////////////////////////0 echo「status」。$ payment_status = trim($ paypal_info ['payment_status']); //硅已完成:吹捧EST行 回聲 「STATUS1」 $支付金額=修剪($ paypal_info [ 'mc_gross']); – sreelatha 2013-02-19 03:58:22