Short answer: In TinyCommand, add the RazorPay RazorPay Payment Failed trigger to a workflow and publish. It listens through a RazorPay webhook and fires your workflow within seconds of the event, with no polling and no code. Add a filter if you only want some events to start a run.
Drop it on the canvas. Configure a couple of fields. Publish.
You don’t need to read this. TinyCommand auto-maps every field into the visual picker so downstream nodes can pull values by clicking. We show it here for power users who want to know what’s on the wire.
{"id": "pay_fail123def456","email": "customer@example.com","amount": 30000,"method": "card","status": "failed","currency": "INR","error_description": "Payment was declined by the bank"}
Every field below can be referenced by name in any action or filter that comes after this trigger.
| Field | Type | Example |
|---|---|---|
| id | string | "pay_fail123def456" |
| string | "customer@example.com" | |
| amount | number | 30000 |
| method | string | "card" |
| status | string | "failed" |
| currency | string | "INR" |
| error_description | string | "Payment was declined by the bank" |