[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 07-24-2008, 08:45 AM   #1 (permalink)
NamePros Regular
 
Join Date: Aug 2006
Posts: 287
0.15 NP$ (Donate)

jakeruston will become famous soon enoughjakeruston will become famous soon enough


Paypal IPN

Hi,

With the Paypal IPN, is it possible to send Custom Variables so that when the return page is shown, the variables are sent so they can be used?
jakeruston is offline  
Old 07-24-2008, 09:02 AM   #2 (permalink)
NPQ's PA, Slave, and On Call Coder

Technical Services


 
Eric's Avatar
 
Join Date: Mar 2005
Posts: 4,545
0.71 NP$ (Donate)

Eric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond reputeEric has a reputation beyond repute

Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet Cancer Survivorship SIDS Child Abuse
https://www.paypal.com/IntegrationCe...reference.html
__________________
Eric is offline  
Old 07-31-2008, 03:12 PM   #3 (permalink)
NamePros Member
 
Join Date: Oct 2007
Location: Los Angeles
Posts: 77
0.00 NP$ (Donate)

aras is an unknown quantity at this point


You can send on/os pairs.

on0=customername
os0=John+Doe
on1=customercity
os1=Detroit
aras is offline  
Old 07-31-2008, 03:23 PM   #4 (permalink)
Senior Member
 
nasaboy007's Avatar
 
Join Date: Jul 2005
Location: NJ
Posts: 1,112
1,454.30 NP$ (Donate)

nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of


afaik, you can only send 2 of those on/os pairs.

or maybe im confusing that with something else?
nasaboy007 is offline  
Old 07-31-2008, 08:31 PM   #5 (permalink)
NamePros Member
 
Join Date: Oct 2007
Location: Los Angeles
Posts: 77
0.00 NP$ (Donate)

aras is an unknown quantity at this point


I think so.
If thats the case you can also send char delimited data like
os0 = "name|email|address|".... and process back that when you get it.
aras is offline  
Old 07-31-2008, 08:42 PM   #6 (permalink)
Senior Member
 
nasaboy007's Avatar
 
Join Date: Jul 2005
Location: NJ
Posts: 1,112
1,454.30 NP$ (Donate)

nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of


yeah that's another option, just use some unlikely symbol between values (just avoid &, !, $, #, |, \, basically all the ones that have special meanings in programming) to be on the safe side. i like to use ~ or even a combination like ^~^ and then use php's explode("^~^", $_POST['os0']) or w/e it would be to split it into an array.
nasaboy007 is offline  
Old 08-18-2008, 08:04 AM   #7 (permalink)
First Time Poster!
 
Join Date: Aug 2008
Posts: 1
0.00 NP$ (Donate)

IGiveMoney is an unknown quantity at this point


when i do it i do something like:

$_SESSION['custom'] = $_SESSION['login'] . '|' . $_SESSION['pass1'] . '|' . $_SESSION['user_email'];

Then on the return I just blow it up!
$data = $_SESSION['custom'];
list($_SESSION['login'], $_SESSION['pass1'], $_SESSION['user_email']) = explode("|", $data);
IGiveMoney is offline  
Closed Thread


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

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


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85