| Prop | Description |
|---|---|
| `transakConfig` | Supports `widgetUrl` and `referrer` as mandatory parameters |
| `onTransakEvent` | Callback function to listen to widget events |
| Event Name | Description |
|---|---|
| `TRANSAK_WIDGET_INITIALISED` | Widget initialised with query params |
| `TRANSAK_ORDER_CREATED` | Order created by user |
| `TRANSAK_ORDER_SUCCESSFUL` | Order is successful |
| `TRANSAK_ORDER_CANCELLED` | Order is cancelled |
| `TRANSAK_ORDER_FAILED` | Order is failed |
| `TRANSAK_WALLET_REDIRECTION` | Widget is about to redirect to passed URL |
| `TRANSAK_WIDGET_CLOSE` | Widget is about to close |