Closed sheriffmarley closed 5 years ago
The third parameter is where you add the http request headers. Check out this example:
https://github.com/thephpleague/omnipay-sagepay/blob/master/src/Message/AbstractRequest.php#L200
The older Guzzle client just happened to do that for you behind the scenes, i.e. both the header and the http_build_query()
. The new client does not; it's a bit more low-level. It means you need to understand more about the http messages, and less about the features and configuration of the client.
Thanks worked! :)
How are you supposed to do a request like:
in omnipay?
I took a look in mostly every package for omnipay^3 but i just came up with this line of code.
it's not send as application/x-www-form-urlencoded .
I tried to pass it in the header parameter, but yeah that is obvious that it won't work.
So how can you send a post request with
form_params