#417 Posted in ‘Route 66’

Latest post by Roger Abt on Thursday, 09 May 2019 13:04 EEST

Roger Abt
 Hi
I wrote a VM-Paymentplugin for credit-cards. On checking out in the shop, the shop redirects to the payment-provider and back to the shop, with response-parameters for further processing/finalise the order in my payment method.

On a clients site we have an issue: since there is your route66-suite installed, after the return from the payment interface, the payment call is triggered twice since the redirection in your system-plugin in the 'onAfterDispatch'-Method. That is the first part of the issue.

The second part is, on this second call/redirection, all parameters with a boolean result of NULL are stripped out on line 57 by
$vars = array_filter($vars);

A important returned parameter of the payment interface is the parameter 'NCERROR=0'. If payment was successful, the value of this parameter is 0. And the SHA1-Sign in the response include these var too.

So, since in this second call this parameter is missing, my code can not verify the response itself cause the included invalid SHA1-Sign and is forced to guess if there is an error or not.

In your opinion what could be a workaround for that behaviour?

Cheers
Roger

Lefteris Kavadas
Hi,

There is an option in Route 66 which allows you to disable redirects. You can also leave redirects enabled and exclude specific components.

Give it a try and let me know.

Regards

Roger Abt
Hi

Thank you for the reply.

As both options seems to work, I've choosen the latter one (exclusion of com_virtuemart).

Regards
Roger

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review