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

@@ -5,11 +5,24 @@
<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>
@if(!$paymentDone)
<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>
@else
<div class="flex justify-center">
<div class="text-green-500">
Success! Payment done.
</div>
<button wire:click="reloadMe"
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Reload
</button>
</div>
@endif
</div>
</div>
</div>