Skip to content

Commit 3476cdf

Browse files
committed
Update README
1 parent 550d2c6 commit 3476cdf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Create a new invoice.
130130
*Body parameters*: `msatoshi`, `currency`, `amount`, `description`, `expiry`, `metadata` and `webhook`.
131131

132132
You can specify the amount as `msatoshi` (1 satoshi = 1000 msatoshis),
133-
or provide a `currency` and `amount` to be converted according to the current exchange rates.
133+
or provide a `currency` and `amount` to be converted according to the current exchange rates (via bitcoinaverage).
134134
If a currency and amount were provided, they'll be available under `quoted_{currency|amount}`.
135135

136136
`expiry` sets the invoice expiry time in seconds (defaults to one hour).
@@ -207,10 +207,10 @@ Register a URL as a web hook to be notified once the invoice is paid.
207207

208208
Returns `201 Created` on success. Once the payment is made, a POST request with the updated invoice will be made to the provided URL.
209209

210-
Webhooks can also be registered during invoice creation using the `webhook` parameter.
211-
212210
If the invoice is already paid, returns `405 Method Not Allowed`. If the invoice is expired, returns `410 Gone`.
213211

212+
Webhooks can also be registered during invoice creation using the `webhook` parameter.
213+
214214
For security reasons, the provided `url` should contain a secret token used to verify the authenticity of the request
215215
(see an example HMAC-based implementation at woocommerce-gateway-lightning
216216
[here](https://github.com/ElementsProject/woocommerce-gateway-lightning/blob/84592d7bcfc41db129b02d1927a6060a05c5c11e/woocommerce-gateway-lightning.php#L214-L225),

0 commit comments

Comments
 (0)