feat: add successful payment response handling

This commit is contained in:
fsociety
2024-09-10 22:14:46 +02:00
parent 89d2f30241
commit d12b0e3261
3 changed files with 26 additions and 6 deletions

View File

@@ -12,6 +12,8 @@ class WebLN extends Component
public $invoice;
public bool $paymentDone = false;
public function mount()
{
$this->invoice = $this->createInvoice(
@@ -24,6 +26,11 @@ class WebLN extends Component
);
}
public function success($preimage)
{
$this->paymentDone = true;
}
public function reloadMe()
{
// full reload current page