thephpleague / omnipay-mollie

Mollie driver for the Omnipay PHP payment processing library
MIT License
62 stars 38 forks source link

[4.x] Check if body is not null (eg. GET request) #87

Closed barryvdh closed 2 years ago

barryvdh commented 2 years ago

Prevent 400 Bad Request when completing the payment. Mollie response: Your client has issued a malformed or illegal request. which results in a JSON parse error: Omnipay\Common\Exception\RuntimeException: Unable to parse response body into JSON: 4 in ...

Response from Mollie (translated)

The V1 API has not changed, but the loadbalancer now rejects GET requests with a body. Make sure your client sends GET requests without body.

This affects 4.x branch, which isn't the current branch, but still problematic for older projects.