Return URL
dutchwave opened this issue · 3 comments
After visiting the bank returning to the webshop it shows up an error.
It gives me this link https://domain.nl/ls_ideal_handle_response/0c6bec4d71eef9dc36d598c930d044c4
Error: Unable to securely verify returned status request
line 266 highlighted: throw new Phpr_ApplicationException($ex->getMessage());
Call Stack Code Document Line
10 IdealPaymentGateway_iDEAL_Payment->process_return(array(1) [0 => '0c6bec4d71eef9dc36d598c930d044c4']) /controllers/application.php 173
9 Application->find_access_point(()) /controllers/application.php 66
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/ls_ideal_handle_response/0c6bec4d71eef9dc36d598c930d044c4') /phproad/system/phproad.php 31
2 include('/usr/home/domain/domains/domain.nl/public_html/phproad/system/phproad.php') /boot.php 114
1 require_once('/usr/home/domain/domains/domain.nl/public_html/boot.php') /index.php 3
Should I create a page or something called ls_ideal_handle_response ? And what would I need to add to this page?
Or is this an error that should not happen? Please help.
Pretty sure the certificates are setup good.
Hi @dutchwave I'll take a look at this - I'm the original developer but for some reason never got notified about the issue.
Thanks for your response.
I've hardcoded the return url. So replaced "/ls_ideal_handle_response/" by the url of the thank you for your order /receipt page. This way payments do come in and the customer gets a thank you message. The problem that does occur is that he always get this notification, also when the payments fails or when aborted.
I ofcourse added this to the page:
Order niet gevonden.
Deze order is nog niet betaald.
<h1>Bedankt voor uw bestelling</h1>
So now it always jumps to this notification: .
Because of this the status wont be updated in the backend either.
After some review, the internal logic for this is correct, but how it's presented is confusing. The merchant URL shouldn't be changed from the one set via the module - otherwise the transaction's return status cannot be properly handled. I've changed the logic in an updated version of this so that you will be properly redirected to the page you select as the 'Cancelled' page in the backend, rather than receiving an error notification.