You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`HOLD` Lighting payment arrived, preimage NOT released.
410
+
-`PAID` When the has been preimage released
411
+
-`REFUNDED` Lightning payment has been refunded.
412
+
-`expires_at` <[LSPS0.datetime][]> The timestamp at which the payment option for this order expires
413
+
-`fee_total_sat` <[LSPS0.sat][]> The total fee the LSP will charge to open this channel in satoshi.
414
+
-`order_total_sat` <[LSPS0.sat][]> What the client needs to pay in total to open the requested channel.
415
+
- MUST be the `fee_total_sat` plus the `client_balance_sat` requested in satoshi.
416
+
-`offer <string>`
417
+
- MUST be a [Lightning BOLT 12 offer](https://github.com/lightning/bolts/blob/master/12-offer-encoding.md) for the number of `order_total_sat`.
418
+
- MUST be at most 2048 characters long.
419
+
420
+
**Client**
421
+
422
+
- MAY pay the `offer`.
423
+
- MAY pull `lsps1.get_order` to check the success of the payment.
424
+
- The client gets refunded automatically in case the channel open failed, the order expires, or just before the payment times out.
425
+
426
+
**LSP**
427
+
428
+
- MUST change the `payment.state` to `HOLD` when the payment arrived.
429
+
- If the channel has been opened successfully
430
+
- MUST release the preimage and therefore complete the payment.
431
+
- MUST set the `payment.state` to `PAID`.
432
+
- If the channel failed to open or the order expired or shortly before the payment times out:
433
+
- MUST reject the payment.
434
+
- MUST set the `payment.state` to `CANCELLED`.
435
+
436
+
#### 3.3 Onchain payments
382
437
383
438
Onchain payments dictionary MUST be omitted if the client didn't provide a `refund_onchain_address`
0 commit comments