This event will be triggered when a payment is failed.
POST {event_url}
Parameter | Description |
---|---|
trigger_at | Trigger time from Swipe |
event | Event Name |
data | Payload (might be differ by event) |
Parameter | Description |
---|---|
attempt_id | ID that represent user transaction attempt |
charge_amount | Charged amount for the successful payment |
payment_id | ID that represent user payment |
payment_time | Date time when the payment was made, in format d-m-Y h:i:s a TimeZone. Example, 02-12-2021 12:08:50 pm |
payment_amount | Payer's paid amount in positive integer |
payment_status | Payment current status |
payment_link_id | ID that represent user payment link |
payment_link_reference | Payment link reference (for client reference) |
payment_link_reference_2 | Payment link reference 2 (for client reference) |
payment_reference_model | Product model link to payment link |
payment_reference_id | Product id link to payment link |
payment_message | Message that related with user current transaction status |
payment_currency | payment currency |
payment_method | Payment method use by payer |
payment_provider | Payment provider use by business |
{
"trigger_at": "23-03-2022 01:24:33 pm",
"event": "payment.failed",
"data": {
"payment_link_id": "623aae624135e095ff5d211c",
"attempt_id": "SG95e2ca6c-3670-4264-92bb-e18267b162ac",
"payment_id": 2203231321530324,
"payment_status": 0,
"payment_message": "Insufficient Funds",
"payment_time": "23-03-2022 01:21:53 pm",
"payment_amount": 3200,
"charge_amount": 150,
"payment_currency": "MYR",
"payment_link_reference": null,
"payment_link_reference_2": null,
"payment_method": "Online Banking B2C",
"payment_provider": "Swipe Go",
"hash": "ae529608058deca34a6e376e7b4e046cce2a468b16c92ffa5e677093f9dde882"
}
}