In my case i wanted ogone to do a direct server-to-server request, to update my database, while the rsquest in the browser redirects the user to a given acceptUrl.

The ogone module refered to the redirect page set in the direct server-to-server request.

After studying the diagram found in the ogone documentation (https://secure.ogone.com/ncol/Ogone_e-Com-ADV_EN.pdf) on page 35
i found out that in case of a server-to-server request, if a html response is presented, this response is sent to the client.

On line 299 of ogone.module there is a drupal_goto($update['redirect'])
in my case $update['redirect'] is empty, so a html response with the homepage html is given.

I think you need to check if the $update['redirect'] array is set before drupal goto.

So

drupal_goto($update['redirect']);

should be

if (isset($update['redirect'])) {
   drupal_goto($update['redirect']);
}

if $update['redirect'] does not excist, no html response will be given, and the given acceptUrl will be used

Comments

Tom Van Schoor’s picture

Hi svdhout,

I will check it out later today. Thanks for the report!

Tom Van Schoor’s picture

Hi svdhout,

Was the installation guide clear enough? Did you have trouble finding what you need to do?
If so, any suggestions are welcome.

Cheers.

Tom Van Schoor’s picture

I think you are correct. If no response is given, the ogone system should use your acceptURL and if no acceptURL exists it should show a default text.

Did you test your solution on your production site?

Xano’s picture

Status: Active » Closed (won't fix)

Won't-fixing this, as version 6.x-1.x is no longer maintained.