JohnCooper Posted March 23, 2010 Share Posted March 23, 2010 I have a website that uses OSCommerce, I'm using the test server and payment are going thorugh ok, but I'm being returned to checkout_process instead of checkout_success. How do I configure the form to go to the right place? Quote Link to comment Share on other sites More sharing options...
Shawn_SagePay Posted March 24, 2010 Share Posted March 24, 2010 (edited) Hi John, Sorry to hear you are having difficulties integrating with Sage Pay. The page to which your customer should return for a successful order is what has been specified to Sage Pay in the SuccessURL field. In your case for some reason the checkout_process file must be being specified as your SuccessURL instead of the checkout_success file. If you can provide your account name I will be happy to check this for you. I am not sure exactly where within your OS Commerce this can be amended, whether this can be changed in the administration area or whether you will need to amend the code of the site. If it is within the code your best bet might be to do a Ctrl+F within your code files for 'SuccessURL'. You should then be able to find what this is currently specified as. Any problems please feel free to contact me on 0845 111 4455 ext. 48082 Shawn (Sage Pay) Edited March 24, 2010 by Shawn_SagePay Quote Link to comment Share on other sites More sharing options...
JohnCooper Posted March 24, 2010 Author Share Posted March 24, 2010 Hi Shawn, The merch ID is meadowhamptonli. I've looked in the Admin section on the Ecommerce administration area, and the sagepay form code,(and a sitewide search as you suggest) but I can't find any line of code that shows where the SuccessURL is being defined. any help you can give would be great. John Quote Link to comment Share on other sites More sharing options...
JohnCooper Posted March 25, 2010 Author Share Posted March 25, 2010 (edited) I've spent quite a time tryign to find where the SuccessURL is defined, and all I can find are these line of code in the sagepay_form.php file: 217 $plain .= "SuccessURL=" . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true) . "&"; 218 $plain .= "FailureURL=" . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true) . "&"; Should be changing these? Edited March 25, 2010 by JohnCooper Quote Link to comment Share on other sites More sharing options...
JohnCooper Posted March 25, 2010 Author Share Posted March 25, 2010 Ok, now I've noticed i'm not getting any order recorded. I can go through the payment process, but I get send back to the payment process and an error message: http://www.rattancanefurniture.co.uk/checkout_payment.php?error_message= but there's no error message? Quote Link to comment Share on other sites More sharing options...
JohnCooper Posted March 25, 2010 Author Share Posted March 25, 2010 Ok, now I've noticed i'm not getting any order recorded. I can go through the payment process, but I get send back to the payment process and an error message: http://www.rattancanefurniture.co.uk/checkout_payment.php?error_message= but there's no error message? HTTP Status Code: 400 HTTP Status Message: The syntax of the request was not understood by the server. Error Code : 5002 Error Description : Invalid request. Quote Link to comment Share on other sites More sharing options...
samstones Posted August 12, 2010 Share Posted August 12, 2010 Did you ever solve this problem? My site has worked fine for years, but recently has just started with this error. As I understand it, sagepay should be sending customers back to the checkout_process.php page which "processes" the order and stores it in the database, before redirecting them to the checkout_success.php page. Any help you can give would be much appreciated. Quote Link to comment Share on other sites More sharing options...
tigergirl Posted August 12, 2010 Share Posted August 12, 2010 (edited) Did you ever solve this problem? I solved this problem by ditching "Form" and using "Server". No-one could ever find a reason for the issue (may have been a slow server issue) but it has never occurred since using "Server". Edited August 12, 2010 by tigergirl Quote I'm feeling lucky today......maybe someone will answer my post! I do try and answer a simple post when I can just to give something back. ------------------------------------------------ PM me? - I'm not for hire Link to comment Share on other sites More sharing options...
samstones Posted August 12, 2010 Share Posted August 12, 2010 I solved this problem by ditching "Form" and using "Server". No-one could ever find a reason for the issue (may have been a slow server issue) but it has never occurred since using "Server". Hi, Thanks for your response. I've since realised that the problem seems to be related to having changed the URLs from the old protx ones to the new sagepay ones - switching back to the old protx urls the payment system works again. This is strange, as the old urls only seem to redirect to the new ones anyway... still looking, so any further help or suggestions are welcome! Quote Link to comment Share on other sites More sharing options...
samstones Posted August 12, 2010 Share Posted August 12, 2010 I solved this problem by ditching "Form" and using "Server". No-one could ever find a reason for the issue (may have been a slow server issue) but it has never occurred since using "Server". Ok, I think I need to give up on the VSP form method, did you use a contribution for the VSP Server? If so, which one please? Quote Link to comment Share on other sites More sharing options...
tigergirl Posted August 12, 2010 Share Posted August 12, 2010 Ok, I think I need to give up on the VSP form method, did you use a contribution for the VSP Server? If so, which one please? There is only one module for Sagepay Server http://addons.oscommerce.com/info/6984 V1.1 is the one to use. Quote I'm feeling lucky today......maybe someone will answer my post! I do try and answer a simple post when I can just to give something back. ------------------------------------------------ PM me? - I'm not for hire Link to comment Share on other sites More sharing options...
samstones Posted August 12, 2010 Share Posted August 12, 2010 There is only one module for Sagepay Server http://addons.oscommerce.com/info/6984 V1.1 is the one to use. Thank you very much for that, I've spent all day on this error and got nowhere, despite 4 calls to sagepays helpline... giving up for today but will try the server one tomorrow I think. From what I can work out, the problem on my end might even be intermittent as I've just found an order from late last night that managed to go through ok! Quote Link to comment Share on other sites More sharing options...
tigergirl Posted August 12, 2010 Share Posted August 12, 2010 Thank you very much for that, I've spent all day on this error and got nowhere, despite 4 calls to sagepays helpline... giving up for today but will try the server one tomorrow I think. From what I can work out, the problem on my end might even be intermittent as I've just found an order from late last night that managed to go through ok! Well I spent a lot more than a day on it on different forums and with sagepay techies. Mine was intermittent but one order going that way and not logged in admin was one too many as far as I was concerned as it can create a lot of issues if you ship to wrong address or don't get the comments someone has added to the order. Good luck with "Server". Quote I'm feeling lucky today......maybe someone will answer my post! I do try and answer a simple post when I can just to give something back. ------------------------------------------------ PM me? - I'm not for hire Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.