Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
 
Fixed gateway notify URL
Posted: 27 May 2012 08:39 AM   [ Ignore ]
Wallflower
Rank
Total Posts:  7
Joined  2012-04-19

Hi, is there a way to get a fixed return URL from get_notify_url()?

Profile
 
 
Posted: 30 May 2012 02:29 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10218
Joined  2008-09-29

No. It will always return an ACT + randomized encrypted string URL. To get a fixed return URL, either manually set a URL, or use the extload functionality.

instead of get_notify_url, use:

$this->response_script(ucfirst(get_class($this))), 

 

That will output a URL that does not contain any query string variables. It’ll look something more like: yourdomain.com/extload.php/yourgateway

Open up extload.php in the themes/third_party/cartthrob/lib folder and take a look at the first few lines in there. You’ll need to configure your system path and themes path if they have changed from the default.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 31 May 2012 12:28 AM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  7
Joined  2012-04-19

Thanks Chris! It works like a charm smile

Profile
 
 
Posted: 31 May 2012 12:37 AM   [ Ignore ]   [ # 3 ]
Wallflower
Rank
Total Posts:  7
Joined  2012-04-19

Quick note, in case anyone else having the same problem in the future.

The response function in the payment gateway class should be named extload() in order for the extload.php file to call it.

Profile