The Payment Failed notification is triggered when a PaymentSession
is not authorized by the Payer's account.
The JSON below shows an example of a failed
notification payload:
json
{ "amount": 1, "created_at": "2019-10-31 16:45:34 UTC", "currency": "GBP", "end_to_end_id": null, "error_url": "https://example.com/error", "id": "a6941fd1-f5cb-4948-814d-df03540149fb", "line_items": [ { "amount": 1, "currency": "GBP", "description": null, "name": "Candle", "quantity": 1 } ], "live": true, "payee": { "account_number": "12345678", "name": "Gerard Wiley", "sort_code": "123456" }, "reference": "Illuminate", "state": "failed", "success_url": "https://example.com/success", "url": "https://banked.me/pay/a6941fd1-f5cb-4948-814d-df03540149fb", "email_receipt": true, "webhook_event": "payment_failed", "webook_type": "payment_session" }