SearchSearch   ProfileProfile   Log inLog in   RegisterRegister 

Success Return Path after payment

 
Post new topic   Reply to topic    FirstSpot Forum Index -> Pre-sales Support Forum
View previous topic :: View next topic  
Author Message
ryanslimmon



Joined: 24 Jun 2009
Posts: 23
Location: Calgary, AB

PostPosted: Wed May 05, 2010 6:02 pm    
Post subject: Success Return Path after payment

Is there a way that I can redirect the user to the page they originaly requested after they make their payment. In the interface (Credit Card Page) there is an option for "Success Return Path" and "Failure Return Path".

Forcing the user to a certain page on failure makes sense to me. However, if they are successful, i'd like them to keep going to the website where they want to go.

Is there a variable that I can use here?

Thanks,
Back to top
dominic
Forum facilitator


Joined: 23 Oct 2007
Posts: 103

PostPosted: Thu May 06, 2010 4:11 am    
Post subject:

Here's a work-around for v6.
1) Look for the following line in FirstSpot\local\paypal_submit.php
Code:
$return=$settingobj->getKey( "ppal_return", "paypal");

2) Replace the line above with the following and save the file
Code:
$return=$_SESSION['sess_desturl'];


Note that this will override the attribute "Success return path" under Credit Cards tab in Configuration Manager.
Back to top
ryanslimmon



Joined: 24 Jun 2009
Posts: 23
Location: Calgary, AB

PostPosted: Fri May 07, 2010 2:54 pm    
Post subject:

I think that'll work for me. The only disconnect in the process is after the user comes back from the paypal site they need to re-login, but upon login they are redirected to the original requested site.

Thanks Dominic!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    FirstSpot Forum Index -> Pre-sales Support Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group