In paypal notify_url page I am not getting any values when I use cmd value as _cart.How can I get the transaction details in notify_url page
<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="yesidealpayment@gmail.com" />--><input type="hidden" name="business" value="arun_1260247381_per@galtechsupport.us" /><!-- 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>
In my notify_url page I am getting values as
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']);