add a dialog with payment details for each payment.

for outgoing payments this needs a preimage to be good,
but we don't have it yet because we don't get it from
backends.
This commit is contained in:
fiatjaf
2020-09-02 19:19:19 -03:00
parent 197af922d0
commit ce28db76c9
5 changed files with 172 additions and 105 deletions
@@ -137,15 +137,12 @@
Invoice: function () {
var self = this
axios
.post(
'/lnticket/api/v1/tickets/{{ form_id }}',
{
form: '{{ form_id }}',
name: self.formDialog.data.name,
email: self.formDialog.data.email,
ltext: self.formDialog.data.text,
}
)
.post('/lnticket/api/v1/tickets/{{ form_id }}', {
form: '{{ form_id }}',
name: self.formDialog.data.name,
email: self.formDialog.data.email,
ltext: self.formDialog.data.text
})
.then(function (response) {
self.paymentReq = response.data.payment_request
self.paymentCheck = response.data.payment_hash