Jump to content

custom variables


princeofpersia

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/222771-custom-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.