Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Sage pay orders failing after charge made

Started by sirjayjayec, July 10, 2014, 02:16:57 PM

Previous topic - Next topic

sirjayjayec

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. :)

Basara

Hello.

Did you modify any core files? What is your AbanteCart version. Please post latest (not all) errors from AbanteCart error log just after your see issue

IainY

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

Basara

Hello.
Bug confirmed and reported to AbanteCart bug tracker https://github.com/abantecart/abantecart-src/issues/24

Thank everyone for report

abolabo

to solve it please replace file extensions/default_sagepay/storefront/controller/responses/extension/default_sagepay.php by attached
and let us know
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

IainY

Sorry, no good. This gives exactly the same result as before.

Regards,

Iain

abolabo

Quote from: IainY on August 05, 2014, 09:51:27 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 $data['SuccessURL'] = $this->html->getSecureURL('payment/sagepay/success', '&order_id=' . $this->session->data['order_id']);
instead
$data['SuccessURL'] = $this->html->getSecureURL('payment/sagepay/success', 'order_id=' . $this->session->data['order_id']);
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

IainY

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

aphrohead

Did anyone find a resolution to the above? Struggling with the same issue.

:o

abolabo

Quote from: aphrohead on October 16, 2014, 10:36:32 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?
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

aphrohead

Yes tried & negative result. The eWay extension I think will be used instead.

abolabo

Do you have correctly tuned ssl? i cannot replicate bug after fix
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Forum Rules Code of conduct
AbanteCart.com 2010 -