Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error "The ACS has provided an Erro message. CReq validation failure." when submitting the form. #191

Open
SM-Prasad opened this issue Oct 27, 2022 · 3 comments

Comments

@SM-Prasad
Copy link

SM-Prasad commented Oct 27, 2022

I have submitted the test data and getting error

"The ACS has provided an Erro message. CReq validation failure."

I have checked about the issue and found that it is because "{}" in vpsTxId and I have tried by removing the paranthesis and then it's working fine. But the form html is inside vendor folder which we can't modify directly. File Path => vendor\omnipay\common\src\Common\Message\AbstractResponse.php

Would anyone suggest how to fix this?

@judgej
Copy link
Member

judgej commented Oct 27, 2022

Can you provide any additional details? What is failing, and what are you doing when it fails?

@SM-Prasad
Copy link
Author

SM-Prasad commented Oct 28, 2022

I have replaced {} in hidden field value in file path vendor\omnipay\common\src\Common\Message\AbstractResponse.php that and then it's working fine.

Replaced below code

 $output = sprintf(
            $output,
            htmlentities($this->getRedirectUrl(), ENT_QUOTES, 'UTF-8', false),
           $hiddenFields
        );

With

 $output = sprintf(
            $output,
            htmlentities($this->getRedirectUrl(), ENT_QUOTES, 'UTF-8', false),
            str_replace(array("{", "}"), "", $hiddenFields)
        );

And then it's working fine. As it removes the {} which gets added to vpsTxId.

Please suggest me solution for this as I have changed in vendor folder which is not a proper way.

@judgej
Copy link
Member

judgej commented Oct 28, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants