News:

Looking for documentation? Take a look on our wiki

Main Menu

Realex plugin for Virtuemart response URL problem

Started by matthewjpreston, April 10, 2015, 12:33:18 PM

Previous topic - Next topic

matthewjpreston

I'm using the Realex Plugin with Virtuemart 2.6.14 on our site www.lohen.co.uk.

I'm able to make a successful payment through Realex meaning all referral details and IDs, passkeys are correct.

The only problem we're having is the redirection back to our site. I've provided the response URL to Realex as http://www.lohen.co.uk/plugins/vmpayment/realex_hpp_api/realex_hpp_api/tmpl/response.php which is what they've added.

I've queried this with them why a successful transaction doesn't go back to this page. Instead, they've mentioned the following:

"Hi Matt,

The following response url is being passed through the MERCHANT_RESPONSE_URL field in the post request:

http://www.lohen.co.uk/index.php?option=com_virtuemart&format=raw&view=pluginresponse&task=pluginnotification¬ificationTask=handleRedirect&tmpl=component

Kind regards"

Following http://www.lohen.co.uk/index.php?option=com_virtuemart&format=raw&view=pluginresponse&task=pluginnotification shows you what I see on a successful transaction, however I was expecting to go through to the response URL we provided, with order details etc. Realex have told me to get in touch with the plugin developers to see if they can shed any light on the issue.

Please would you be able to let me know if there's anything I need to do to configure the correct response page?

Many thanks in advance.

alatak

Hello

QuoteThe only problem we're having is the redirection back to our site. I've provided the response URL to Realex as http://www.lohen.co.uk/plugins/vmpayment/realex_hpp_api/realex_hpp_api/tmpl/response.php which is what they've added.
it is not the correct URL.

The URL that you have to provide should be this one
http:///www.lohen.co.uk/plugins/vmpayment/realex_hpp_api/jump.php

All the other URLs are sent in the post, and should not be configurated in Realex

matthewjpreston

Hi Alatak,

I'd requested Realex if they could change the URL to what you sSPAMted (http://www.lohen.co.uk/plugins/vmpayment/realex_hpp_api/jump.php) but this made no difference to my transaction. I approached the same screen on a successful transaction as I did with the previous response URL - please see attached screenshot of what I came to.

That URL is the referring URL - it's the one I see when hitting 'pay now' in my cart and it goes out to the Realex payment gateway. What I'm not getting is a complete redirection back to our website on payment, despite the efforts of Realex changing my response URL on numerous occasions.

Please would anyone be able to help out on this matter as I'm at a complete loss.

alatak

Hello Matthew,

I have contacted you by email. I need to have access on your website to understand why you have this problem.

alatak

Hello Matthew,
we chatted via skype.
At the moment, i think that the problem is that there should be no response URL configurated in Realex
Ask Realex to remove it, and test it. 



alatak

Hello Matt,

I have been on your website today. It looks like it is  the OPC plugin that you are using which is causing problems.

alatak

Hllo
Looking further in the OPC plugin you are using:
the onAfterDispatch function:  it is the reason for the troubles
when returning from a payment (&view=pluginresponse&task=pluginresponsereceived)
it removes the buffer which contains the actual "thank your for your order , transaction number is etc..)
with this line of code
$doc->setBuffer('','component');
try to get the cart, which of course is empty
then you get a SHOPPING CART IS EMPTY message instead