Author Topic: Sage pay orders failing after charge made  (Read 8571 times)

Offline sirjayjayec

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Sage pay orders failing after charge made
« 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. :)

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5810
  • Karma: +274/-2
    • View Profile
Re: Sage pay orders failing after charge made
« Reply #1 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 just after your see issue

Offline IainY

  • Newbie
  • *
  • Posts: 4
  • Karma: +2/-0
    • View Profile
Re: Sage pay orders failing after charge made
« Reply #2 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

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5810
  • Karma: +274/-2
    • View Profile
Re: Sage pay orders failing after charge made
« Reply #3 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

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Sage pay orders failing after charge made
« Reply #4 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
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline IainY

  • Newbie
  • *
  • Posts: 4
  • Karma: +2/-0
    • View Profile
Re: Sage pay orders failing after charge made
« Reply #5 on: August 05, 2014, 09:51:27 AM »
Sorry, no good. This gives exactly the same result as before.

Regards,

Iain

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Sage pay orders failing after charge made
« Reply #6 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']);
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline IainY

  • Newbie
  • *
  • Posts: 4
  • Karma: +2/-0
    • View Profile
Re: Sage pay orders failing after charge made
« Reply #7 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

Offline aphrohead

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Sage pay orders failing after charge made
« Reply #8 on: October 16, 2014, 10:36:32 AM »
Did anyone find a resolution to the above? Struggling with the same issue.

 :o

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Sage pay orders failing after charge made
« Reply #9 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?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline aphrohead

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Sage pay orders failing after charge made
« Reply #10 on: October 20, 2014, 09:01:52 AM »
Yes tried & negative result. The eWay extension I think will be used instead.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Sage pay orders failing after charge made
« Reply #11 on: October 24, 2014, 05:07:57 PM »
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

 

Powered by SMFPacks Social Login Mod