mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
feat: add successful payment response handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user