Skip to content

Commit

Permalink
Fixed CompletePurchaseRequest to follow Omnipay API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Aug 7, 2020
1 parent 04c3d89 commit c32a67a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Message/CompletePurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public function getData()
*/
public function sendData($data)
{
$httpResponse = $this->httpClient->request('POST', $this->getEndpoint(), [], $data);
$httpResponse = $this->httpClient->request('POST', $this->getEndpoint(), [
'Content-Type' => 'application/x-www-form-urlencoded'
], http_build_query($data));
$data['_result'] = $httpResponse->getBody()->getContents();

return $this->response = new CompletePurchaseResponse($this, $data);
Expand Down

0 comments on commit c32a67a

Please sign in to comment.