Post by tony44 » Mon Feb 22, 2010 8:57 pm

Hi, just tried the mod by christopherdarling and still getting the same error as before shown below. I'm using 1.4.0.

This transaction attempt has failed. Please use the Proceed button go back to the web store from which you were purchasing. The details of the failure are given below.


Status: INVALID


Status Detail: 3085 : The FailureURL format is invalid.

New member

Posts

Joined
Mon Aug 17, 2009 4:32 am

Post by christopherdarling » Tue Feb 23, 2010 2:27 am

You'll need to modify the controller file for SagePay..

Add around line 31

Code: Select all

$data['FailureURL'] = $this->url->https('payment/sagepay/failure&order_id=' . $this->session->data['order_id']);
You also then need to create the failure function. I've not done this yet, but I'm using SagePay for a clients site that will be going live in a couple of weeks so will have it done by then.. if anyone else gets around to it before me please post it.

Code: Select all

public function failure() {
    ...
}
You ALSO need to create the associated view file for it too.

Christopher Darling - Web Design Bristol


New member

Posts

Joined
Sat Jan 02, 2010 12:26 am

Post by tonkz » Mon Mar 01, 2010 6:27 am

Hi guys the following fix worked for me to get the functionality I had before (return to payment page after failure).

You need apply christopherdarling's previous fix if not done so already found here:
http://forum.opencart.com/viewtopic.php ... =15#p47304

Then find line 34 in catalog/controller/payment/sagepay.php:

Code: Select all

$this->data['FailureURL'] = $this->url->https('checkout/payment');
Change this to:

Code: Select all

$data['FailureURL'] = $this->url->https('checkout/payment/&order_id=' . $this->session->data['order_id']);
Please post results. Cheers.

Newbie

Posts

Joined
Mon Mar 01, 2010 6:16 am

Post by christopherdarling » Wed Mar 03, 2010 6:40 pm

That only works for people checkout out as a member, not guests

Christopher Darling - Web Design Bristol


New member

Posts

Joined
Sat Jan 02, 2010 12:26 am

Post by christopherdarling » Wed Mar 03, 2010 7:11 pm

Extract & upload this file to /catalog/controller/payment/ which will replace the existing sagepay.php file


Please post your results of this fix.

Attachments

Updated sagepay controller file


Christopher Darling - Web Design Bristol


New member

Posts

Joined
Sat Jan 02, 2010 12:26 am

Post by sunburn1979 » Tue Mar 09, 2010 7:55 am

Hi Cristopher,

this zip file all we need? what does it fix?
will this work for guest checkout as well as normal account checkout?
ALSO big ask, will this work for version 1.3.4?

Cheers

Geoff

New member

Posts

Joined
Thu Aug 13, 2009 4:36 pm

Post by speedingorange » Fri Mar 12, 2010 12:24 am

Just tried this fix on 1.4 worked perfectly thank you!
(zip file)

Active Member

Posts

Joined
Tue Feb 23, 2010 7:33 pm

Post by christopherdarling » Sun Mar 14, 2010 4:19 am

Should work on Versions 1.3.4+. Guest / Member is supported too.

I've developed it starting on 1.3.4 but I upgraded to 1.4.0 when I completed the fix. But I don't think there was many changes between these versions that will effect the SagePay payment module.

Christopher Darling - Web Design Bristol


New member

Posts

Joined
Sat Jan 02, 2010 12:26 am

Post by marky » Fri Apr 09, 2010 12:26 am

Hi,

Having the same Status: INVALID, Status Detail: 3087 error on the Sage Pay module. Running 1.4.4 opencart (which is awesome!) I have added Christopher Darling sagepage.php file but now it gives a different error?? :

Fatal error: Call to a member function https() on a non-object in /xxxxxxxxxx/htdocs/opencart/catalog/controller/payment/sagepay.php on line 31

Can anyone help please? or have a working file? Unfortunately my customer only uses SagePay for payments :o( So I'm stuck!

Thanks
Marky

Newbie

Posts

Joined
Wed Apr 07, 2010 1:58 pm

Post by AllyWater » Tue Apr 13, 2010 5:44 pm

marky wrote:Hi,

Having the same Status: INVALID, Status Detail: 3087 error on the Sage Pay module. Running 1.4.4 opencart (which is awesome!) I have added Christopher Darling sagepage.php file but now it gives a different error?? :

Fatal error: Call to a member function https() on a non-object in /xxxxxxxxxx/htdocs/opencart/catalog/controller/payment/sagepay.php on line 31

Can anyone help please? or have a working file? Unfortunately my customer only uses SagePay for payments :o( So I'm stuck!

Thanks
Marky
Getting this problem also.

User avatar
Newbie

Posts

Joined
Tue Apr 13, 2010 5:43 pm

Post by simonkincaid » Wed May 26, 2010 8:53 pm

I just installed OpenCart 1.4.6 and attempted to link up SagePay but got this error about FailureURL

After a lot of Googling I decided to just try and fix the error myself. It's basically what Chris Darling has said but I'll put my solution here for others if they need it:

In catalog/controller/payment/sagepay.php

Goto line 30

First change the three instances to HTTP_SERVER

Second you will notice that the failure URL is $this->data when it should just be $data so just changed them back.

Done and it works :)

Newbie

Posts

Joined
Wed May 26, 2010 8:49 pm

Post by Bliss » Mon Jul 12, 2010 10:36 pm

Hi all,

I have just setup sagepay on an opencart 1.3.4 and I am getting the 3087 sagepay error.

After applying Christophers fix I get the 3085 error, I have tried to download the .Zip file but everytime I download and try to extract I get an error message saying the file is corrupt I have searched all over for a fix and cannot seem to find one can some one please display the remaining code for the fix.

Kind Regards

Newbie

Posts

Joined
Thu Sep 24, 2009 8:56 pm
Location - Basildon, Essex

Post by Bliss » Wed Jul 14, 2010 5:45 pm

Hi all,

Sorry to bug but has any one still got the fix used for opencart 3.1.4 and sagepay please?

Running out of time and need help, even if you havent got the fix any help on resolving this issue will be greatly appreciated.

Thanks,

Newbie

Posts

Joined
Thu Sep 24, 2009 8:56 pm
Location - Basildon, Essex

Post by Bliss » Wed Jul 14, 2010 7:12 pm

Fixed! ;D

If any one else is still using opencart 3.1.4 and comes across this problem here is the work around I used.

1. Use ChristopherDarlings Modifications.

2. Use tonkz modifications to fix Members checkout.

3.Then find line 35 in catalog/controller/payment/sagepay.php:

Change

Code: Select all

			$this->data['FailureURL'] = $this->url->https('checkout/guest_step_2');
To

Code: Select all

			$data['FailureURL'] = $this->url->https('checkout/guest_step_2');
After applying these changes you will recieve a billing postcode error, the fix for this problem can be found here:
http://forum.opencart.com/viewtopic.php?f=20&t=9341

Once again thankyou for the awsoume software and community support.

Regards,

Chris

Newbie

Posts

Joined
Thu Sep 24, 2009 8:56 pm
Location - Basildon, Essex

Post by mumford » Fri Nov 05, 2010 6:22 pm

Hi

I am having the same problem, I also cannot open the zip file for some reason, could some body please post the sagepage.php file here?

Many Thanks

David

Newbie

Posts

Joined
Mon Jun 21, 2010 10:46 pm

Post by mumford » Thu Nov 11, 2010 4:48 pm

Sorry to bump this, but I really need to get this sorted as I cannot take online payements without this :(

Thanks

Newbie

Posts

Joined
Mon Jun 21, 2010 10:46 pm
Who is online

Users browsing this forum: No registered users and 23 guests