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
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