-
+```
{
"callback": "https://app.domain.com/lnurlpay/invoice",
"maxSendable": 10000,
@@ -46,20 +54,22 @@ The user node receives the push notification, parses the payload and then uses t
"metadata": "[[\"text/plain\",\"Pay to Breez\"]]",
"tag": "payRequest"
}
-
-
+```
-The service receives the response from the mobile and forward the response to the external wallet.
+The service receives the response from the app and forwards it to the sender.
-### step 4: External wallet fetches the invoice
+### Step 4: Fetching a bolt11 invoice
-The external wallet uses the callback_url to fetch the invoice and perform a GET request with the amount as a parameter. In our example it is: https://app.domain.com/lnurlpay/invoice?amount=1000
-The push notification is used again to send the request to the user node and the user node replies with the invoice.
+The sender fetchs a bolt11 invoice by invoking a GET request to the callback_url with adding a specific amount as a query parameter. For example:
+```
+https://app.domain.com/lnurlpay/invoice?amount=1000
+```
+An additional push notification is triggered to send the invoice request to the app. Then the app replied with the bolt11 invoice data.
-### step 5: External wallet pays the invoice
-This is the last step in the lnurlpay protocol, the external wallet pays the invoice and the payment is received by the user node. See [payment_notification](payment_notification.md) for more details on how to receive payments via push notifications.
+### Step 5: Paying the invoice
+In the last step, the payer pays the received bolt11 invoice. Follow the steps [here](payment_notification.md) to receive payments via push notifications.
## Reference implementation
-All the above steps are payloads are one option among many, the service and the user node can agree on any other payload format.
-For a complete reference, see how we implemented it in c-breez wallet: [NotificationService.swift](https://github.com/breez/c-breez/blob/main/ios/Breez%20Notification%20Service%20Extension/NotificationService.swift).
-And the lnurlpay service: [breez-lnurl](https://github.com/breez/breez-lnurl)
+For a complete reference implementation, see:
+* [Breez's NotificationService](https://github.com/breez/c-breez/blob/main/ios/Breez%20Notification%20Service%20Extension/NotificationService.swift)
+* [Breez's LNURL-Pay service](https://github.com/breez/breez-lnurl)