-
Notifications
You must be signed in to change notification settings - Fork 25
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
http_build_query and invalid basket #51
Comments
Could you please supply the json encode code your are testing with also, so
I can compare the two when debugging?
|
I have the same problem. Using
Those |
Please supply exact code used, so I can debug it? |
Something like this:
|
Could you please try to add this method https://github.com/QuickPay/quickpay-php-client/pull/54/files#diff-1a98bf2e113e437e34e01b15690a1005R103 to the Request.php and change the http_build_query() used in execute() to that method to see whether it fixes the problem? |
or this alternative:
|
I tried your alternative, and it seems to work. I used it to the execute function line 163. |
Which one did you try?
|
I used this one
I was wondering if all those pattern modifiers are necessary? The caseless ( |
Will there be released a new version with the error fixed? |
Ah. Yeah. I have to look into this. Sorry about the delay.
|
Looks good to me. |
Parameters for http_build_query() was not moved.
Using the code provided here https://kopy.io/p43cq#387KIDk5r4HH51 I'm trying to create a payment with the basket information supplied, however this results in {"message":"Validation error","errors":{"basket":["is invalid"]},"error_code":null} despite the supplying all the information needed according to the documentation.
I think the culprit may be http_build_query but I'm not sure what workaround would be needed, if I use the same data and perform a json_encoded request without using the php-client things are working as expected.
The text was updated successfully, but these errors were encountered: