NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page How to do a customer variable in PAYPAL IPN?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 06-16-2004, 11:34 PM THREAD STARTER               #1 (permalink)
DSL
Senior Member
Join Date: Jun 2003
Posts: 2,115
DSL is a jewel in the roughDSL is a jewel in the roughDSL is a jewel in the rough
 



How to do a customer variable in PAYPAL IPN?


Hi guys I have tried
$userid=$_POST['os0'];

and such but it doesnt work. How do I define a custom variable? Much thanks.
DSL is offline  
Old 06-16-2004, 11:48 PM   #2 (permalink)
Senior Member
 
csmaster2005's Avatar
Join Date: Mar 2004
Location: U.S.A.
Posts: 1,985
csmaster2005 is just really nicecsmaster2005 is just really nicecsmaster2005 is just really nicecsmaster2005 is just really nicecsmaster2005 is just really nicecsmaster2005 is just really nicecsmaster2005 is just really nicecsmaster2005 is just really nice
 



Paypal's IPN returns these fields:

# $_POST[payer_email] Payer's email address #
# $_POST[txn_gross] Total amount of the payment #
# $_POST[txn_id] PayPal Transaction ID number #
# $_POST[item_name] Item name/description that you #
# $_POST[payment_status] Status of the payment #
# $_POST[first_name] Payer's first name #
# $_POST[last_name] Payer's last name #
# $_POST[address_street] Payer's street address #
????: NamePros.com http://www.namepros.com/programming/34430-how-do-customer-variable-paypal-ipn.html
# $_POST[address_city] Payer's city #
# $_POST[address_state] Payer's state #
# $_POST[address_zip] Payer's ZIP code #
csmaster2005 is offline  
Old 06-16-2004, 11:58 PM THREAD STARTER               #3 (permalink)
DSL
Senior Member
Join Date: Jun 2003
Posts: 2,115
DSL is a jewel in the roughDSL is a jewel in the roughDSL is a jewel in the rough
 



Yes how do I return a CUSTOM one?
DSL is offline  
Old 06-19-2004, 02:51 AM   #4 (permalink)
New Member
Join Date: Mar 2004
Posts: 18
listenmirndt is an unknown quantity at this point
 



The custom that your looking for is (drumroll) "custom"



your paypal button form field should look like :

<input type=hidden name=custom value=YOURVARIABLE>

and your IPN script should include somthing like :

$custom = $_POST['custom'];

Cheers
-LM
__________________
Mirndtsoft PHP Scripts | Featuring Automation for Paypal - Digital Goods, Ebay, Memberships, & Web Hostingwww.mirndtsoft.com
listenmirndt is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:22 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger