Search for:
Jump to: 
Your Ad Here
Post new topic Reply to topic
Author Message
 Post subject: passing variables in return and cancel return in paypal
PostPosted: Wed Jun 18, 2008 11:04 am 
Offline

Joined: Thu Aug 23, 2007 11:30 am
Posts: 20
Hi,

I am integrated paypal in my website . I integrated it successfully, But I need the userid of the user whose payment has done and returned to my website (It may be cancel return or return). To get the userid I need to pass the userid to paypal site. Is it possible to pass any variables and How can I get the those values back?


- Thank You


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 18, 2008 11:15 am 
Offline

Joined: Fri Jul 13, 2007 5:30 am
Posts: 87
Location: Hyderabad
Hi,


Yes, it is possible to pass the variables to paypal and get back the values from paypal. I will give one sample below. Check it out and try .

<input type="hidden" name="return" value="http://www.yourdomain.com/success.php?uid=<?=$uid?>">
<input type="hidden" name="cancel_return" value="http://www.yourdomain.com/failure.php?uid=<?=$uid?>">

In the above sample $uid is the userid. Now when the page redirects from the paypal, I mean in the success.php or failure.php you can get the variable as follows
$userid = $_GET['uid'];

- Thanl You

_________________
veerla


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic    [ 2 posts ] 

1, 2, 3, 4, 5 ... 414
Recent topics  Replies   Views   Last post 
No new posts Add Slide Notes & Images as Logos in MS PowerPoint

by aspose » Tue May 21, 2013 4:03 am in Miscellaneous

0

14

Tue May 21, 2013 4:03 am

aspose View the latest post

No new posts Jquery ajax Pagination using php

by rajkumar » Tue Apr 19, 2011 11:14 am in Coding Repository

8

17615

Mon May 20, 2013 2:46 am

gfsdfg View the latest post

No new posts Ecommerce website development and website Design

by iweballey » Fri May 17, 2013 7:15 am in PHP-Code Help

0

298

Fri May 17, 2013 7:15 am

iweballey View the latest post

No new posts How to upgrade and migrate Joomal site

by mallikharjuna rao » Mon Jan 21, 2013 1:40 pm in Joomla

1

356

Thu May 16, 2013 9:53 am

sunitha12 View the latest post

No new posts Benefits of PHP

by hirephpexpert » Fri Sep 07, 2012 4:41 am in CakePHP

6

1598

Wed May 15, 2013 6:25 am

PrettyPrincesG View the latest post


Your Ad Here
cron