princeofpersia Posted December 28, 2010 Share Posted December 28, 2010 Hi guys, i have a ipn paypal setup where users can buy items from my custom made shop, however in original ipn code, the logged in users should have the same email with paypal to call on ipn which user has bought what, so I have decided to pass a custome variable as <input type="hidden" name="custom" value="<?php echo "$username";"> the hard part is in my ipn how im i going to recieve the username variable? what should i put in my ipn. In ipn code I have example code: $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; but now, can u help me to recieve the username so i can match my mysql query which user has bought what? thanks in advance Quote Link to comment Share on other sites More sharing options...
trq Posted December 28, 2010 Share Posted December 28, 2010 $_POST['custom'] Quote Link to comment Share on other sites More sharing options...
princeofpersia Posted December 28, 2010 Author Share Posted December 28, 2010 so i should add something like ? $username=$_POST['custom']; Quote Link to comment Share on other sites More sharing options...
trq Posted December 28, 2010 Share Posted December 28, 2010 Indeed. Quote Link to comment Share on other sites More sharing options...
princeofpersia Posted December 28, 2010 Author Share Posted December 28, 2010 thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.