Does not handle payments that were confirmed, but subsequently failed
Created by: artfulrobot
GoCardless sends wordy webhooks like this:
Enough time has passed since the payment was submitted for the banks to return an error, so this payment is now confirmed.
But experience now shows that it's possible for this payment still to fail, resulting in a
failed webhook coming the day after:
The customer's bank wasn't able to pay the Direct Debit. This is almost always due to insufficient funds, but is occasionally used as a catch-all for other failures.
This is a bit embarrassing really - GC tells us "all is ok" and then says "no it's not". And the first one of those messages may be linked to receipts and memberships and who knows what!
Anyway, it results in CiviCRM having status Completed where actually it has now Failed.
I suppose this extension should just update it to Failed anyway?