gocardless/gocardless-php — pull request #10 by davedevelopment (2012-05-13 22:56:16+00:00)
Title: Correctly sort pairs

PHP's sort isn't really suitable for this, I don't really think you can guarantee what it's going to do with a multidimensional array.

I've tried to write this in a way that's compatible with 5.2, but I've pretty much forgotten the best practices etc now we've got closures in 5.3

Also, your documentation states:

> Your server should validate the HMAC digest by resigning the received parameters (more information under "Signing Requests" in the Connect Guide) and respond with status HTTP/1.1 200 OK within 5 seconds. If the API server does not get a 200 OK response within this time, it will retry up to 10 times at ever-increasing time intervals.

We've had the same webhook sent through 13,000 times in just over a day, we were returning a 500 status code as we failed to match signatures (because of the bug this PR fixes), so you might want to look in to your scheduling.