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

Error after callApi (result of buildPaymentPageUrl) #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bicibg
Copy link

@bicibg bicibg commented Aug 6, 2019

The sent request does either not contain the request parameter 'id' or it is invalid (e.g. wrong format).

The call from API returns this error. Upon further inspection, I found that this is caused by the buildRequestUrl method which uses http_build_query function which by default uses '&' as a separator. Normally if posting to another php5.3 machine this will not be a problem.

But if you post to a server with a newer PHP version or tomcat java server or something else the & might not be handled properly.

To overcome this specify:

http_build_query($array, '', '&');

and NOT

http_build_query($array);

…y default uses '&' as seperator. Changed to '&' to prevent problems when used in a server with >php5.4/java/tomcat...etc
@vttn vttn assigned vttn and unassigned vttn May 19, 2020
@sbossert sbossert self-assigned this Feb 8, 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

Successfully merging this pull request may close these issues.

None yet

3 participants