{
"type": "payment_received",
"data": {
"payment_hash": [payment hash]
}
}
## Webhook integration for receiving payments while the app isn't running
You can use this webhook to allow mobile users to receive Lightning payments even if they aren't running the app at the time of the payment. This process involves using a Notification Delivery Service (NDS) acting as an intermediary. When a payment is made to a user, the LSP sends a notification to the NDS configured with a specific webhook URL. The NDS then processes this information and dispatches a push notification to the intended mobile device, ensuring the user receives timely updates about incoming payments. This architecture necessitates vendors setting up and maintaining their own NDS, tailored to handle and forward these notifications efficiently.
### Step 1: Run your own NDS
You will need to run your own NDS because the NDS is configured to send push notifications to your app users, therefore configured with the required keys and certificates.
You can use our [reference NDS implementation](https://github.com/breez/notify).
Our NDS implementation expects URLs in the following format: