| Feature | Approach |
|---|---|
| How to redirect users back to your app after a transaction | [Deeplink](#deeplinking) |
| How to get order data (e.g. status, order ID, amount) | [Deeplink](#deeplinking), [Events](#events) |
| Listen to WebView events (order created, widget close, etc.) | [Events](#events) |
| Event Name | Description |
|---|---|
| `TRANSAK_WIDGET_INITIALISED` | Widget initialised with query params |
| `TRANSAK_WIDGET_OPEN` | Widget fully loaded |
| `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_WIDGET_CLOSE` | Widget is about to close |