AbanteCart Community

Shopping Cart Operations => Support => Extension Support => Topic started by: sirjayjayec on July 10, 2014, 02:16:57 PM

Title: Sage pay orders failing after charge made
Post by: sirjayjayec on July 10, 2014, 02:16:57 PM
Hello, ive been setting up a abantecart install and have come up to an issue and after looking over the specific code relating to the issue, have realised i need some help.
So here's what happens a customer creates an order and gets sent through to sage pay all good up till this point, then after sage pay redirects back to the site via
/index.php?rt=payment/sagepay/successorder_id=34&crypt=Y.... but displays "The page you requested cannot be found!" it doesn't add the order to the dashboard but charges the customer and the customers email receives a confirmation email from sage, but not from my site install. obviously the site isn't usable in this state, so help would be appreciated.

However I have to admit im rather impressed with abantecart other than that, this is the only real issue i've encountered so you get my recommendation. :)
Title: Re: Sage pay orders failing after charge made
Post by: Basara on July 11, 2014, 01:43:55 AM
Hello.

Did you modify any core files? What is your AbanteCart version. Please post latest (not all) errors from AbanteCart error log (http://forum.abantecart.com/index.php/topic,834.msg3085.html#msg3085) just after your see issue
Title: Re: Sage pay orders failing after charge made
Post by: IainY on July 23, 2014, 10:56:25 AM
I have exactly the same problem as the previous poster reported.

My AbanteCart version is 1.1.9.
I have not modified any of the core files.
There are no error messages after I see the issue.

Regards,

Iain
Title: Re: Sage pay orders failing after charge made
Post by: Basara on July 28, 2014, 02:34:51 AM
Hello.
Bug confirmed and reported to AbanteCart bug tracker https://github.com/abantecart/abantecart-src/issues/24

Thank everyone for report
Title: Re: Sage pay orders failing after charge made
Post by: abolabo on July 30, 2014, 08:33:59 AM
to solve it please replace file extensions/default_sagepay/storefront/controller/responses/extension/default_sagepay.php by attached
and let us know
Title: Re: Sage pay orders failing after charge made
Post by: IainY on August 05, 2014, 09:51:27 AM
Sorry, no good. This gives exactly the same result as before.

Regards,

Iain
Title: Re: Sage pay orders failing after charge made
Post by: abolabo on August 18, 2014, 02:33:01 AM
Sorry, no good. This gives exactly the same result as before.

Regards,

Iain

are you sure?
please check line 52 of file.
you will see
Code: [Select]
$data['SuccessURL'] = $this->html->getSecureURL('payment/sagepay/success', '&order_id=' . $this->session->data['order_id']);instead
Code: [Select]
$data['SuccessURL'] = $this->html->getSecureURL('payment/sagepay/success', 'order_id=' . $this->session->data['order_id']);
Title: Re: Sage pay orders failing after charge made
Post by: IainY on August 18, 2014, 11:52:58 AM
Yes, I'm sure.

The original file had 'order_id=' in line 52, while the changed file has '&order_id='.
Using the changed file, on "successful" completion of the payment in Sage Pay the user is returned to the original site with the message "The page you requested cannot be found" and the order is not included in the user's history. This is exactly what happened before, so the change does not seem to have had any effect.

Please advise.

Regards,

Iain Young
Title: Re: Sage pay orders failing after charge made
Post by: aphrohead on October 16, 2014, 10:36:32 AM
Did anyone find a resolution to the above? Struggling with the same issue.

 :o
Title: Re: Sage pay orders failing after charge made
Post by: abolabo on October 17, 2014, 06:58:49 AM
Did anyone find a resolution to the above? Struggling with the same issue.

 :o

did you applied fix that i posted above? did you have the same negative result?
Title: Re: Sage pay orders failing after charge made
Post by: aphrohead on October 20, 2014, 09:01:52 AM
Yes tried & negative result. The eWay extension I think will be used instead.
Title: Re: Sage pay orders failing after charge made
Post by: abolabo on October 24, 2014, 05:07:57 PM
Do you have correctly tuned ssl? i cannot replicate bug after fix