Files
einundzwanzig-portal/resources/views/livewire/test/web-l-n.blade.php
fsociety cf15c22116 feat(payment): add WebLN payment functionality
Implemented functionality to create an invoice and make payment using WebLN. Also added error handling and logging for payment process. Updated UI to display payment information and a button to initiate payment.
2024-09-10 21:15:21 +02:00

14 lines
764 B
PHP

<div x-data="webln(@this)" class="p-2 sm:p-4" wire:ignore>
<div class="font-mono space-y-1 p-2 sm:p-4 text-white break-words">
<div class="text-xs sm:text-base break-words">Test Payment from WebLN to The Ben</div>
<div class="text-xs sm:text-base break-words">1 sat</div>
<div class="text-xs sm:text-base break-words">hash: {{ $invoice['payment_hash'] }}</div>
<div class="text-xs sm:text-base break-words">payment_request: {{ $invoice['payment_request'] }}</div>
<div class="mt-6">
<div class="flex justify-center">
<button x-on:click="pay" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Pay Invoice</button>
</div>
</div>
</div>
</div>