Commit Graph

19 Commits

Author SHA1 Message Date
Nadav Ivgi 5d3743acba Add support for invoices that accept any amount 2018-01-26 14:01:54 +02:00
Nadav Ivgi 0327af234f Compatibility with c-lightning's latest API changes
- Use the new `status` argument for `delinvoice`, remove our manual status verification.

- Use the new `paid_at` field instead of using our local time when processing payments,
  rename our `completed_at` to match (but still expose `completed_at` for now).

- Read from the `expires_at` field (renamed from `expiry_time`, now matches our local field name).

- test: `getpeers` -> `listpeers`

- test: Remove use of addfunds.

- test: Set --allow-deprecated-apis=false by default, overridable with ALLOW_DEPRECATED.

- Remove the `completed` column and determine completion status based on the presence of `pay_index`,
  but still expose `completed` for now.
  Not entirely related to c-lightning's API changes, but tightly coupled with the other changes.

Refs: https://github.com/ElementsProject/lightning/pull/623
2018-01-20 15:02:52 +02:00
Nadav Ivgi 87cf0340b3 Add `status` field to invoices, as per upcoming changes in c-lightning.
Three possible states: `unpaid`, `paid` and `expired`.

The `completed` field is now deprecated as a public field
and will soon be hidden from the public APIs.

However, `completed` will continue to be used for internal storage,
with `status` as a virtual field determined based on `completed`, `expiry_time`
and the current time serving the request.
2018-01-14 12:49:56 +02:00
Nadav Ivgi e819b7e2f3 Pre-compile client-side assets to dist/www 2018-01-09 18:30:02 +02:00
Nadav Ivgi 71d527277c Add invoice id to "height" message. 2017-12-29 20:13:10 +02:00
Nadav Ivgi eb0274677c s/Lightning Kite/Lightning Charge/g 2017-12-29 20:12:12 +02:00
Nadav Ivgi 93f12d1834 s/Strike/Kite/ to resolve a naming conflict 2017-12-22 03:54:58 +02:00
Nadav Ivgi f12f9fcbec correct doctype 2017-12-22 03:50:49 +02:00
Nadav Ivgi ffc3feef65 Faster notification when iframed, no need to reload. 2017-12-09 06:01:45 +02:00
Nadav Ivgi 8f5552660d Update dynamic iframe height on resize events 2017-12-09 05:08:34 +02:00
Nadav Ivgi 80817e50fb Notify parent window of internal document height when iframed 2017-12-09 03:05:03 +02:00
Nadav Ivgi 316e223b8f Notify parent window of payments when iframed 2017-12-09 03:04:35 +02:00
Nadav Ivgi 552241bc7e Switch iframe styling detection to a JavaScript-based method instead of CSS media selectors. 2017-12-09 02:59:24 +02:00
Nadav Ivgi 323a6dbf31 Remove outdated comment 2017-11-28 20:55:30 +02:00
Nadav Ivgi fabee83b5d View for expired invoices 2017-11-28 18:03:44 +02:00
Nadav Ivgi 923b9359dc Display bitcoin amounts as millibits 2017-11-28 18:00:56 +02:00
Nadav Ivgi 68ff299788 Make the invoice description and expiry configurable 2017-11-28 17:56:01 +02:00
Nadav Ivgi a664f71d4d Make checkout button text configurable. 2017-11-20 22:26:35 +02:00
Nadav Ivgi 3ea9bc57f9 Add checkout payment page that customers can be redirected to. 2017-11-20 22:07:21 +02:00