feat: update zapEndpoint URL and remove unused function

Updated the zapEndpoint URL in the nostrZap.js file to direct towards the updated URL. Additionally, removed an unused function from the profile.blade.php file for cleaner code.
This commit is contained in:
fsociety
2024-10-01 18:28:50 +02:00
parent 661ff8bbc3
commit 3e271e932a
2 changed files with 1 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ export default (livewireComponent) => ({
const amount = amountToPay * 1000;
console.log('event', event);
const zapEndpoint = 'https://getalby.com/lnurlp/portaleinundzwanzig/callback';
const zapEndpoint = 'https://pay.einundzwanzig.space/BTC/UILNURL/pay/i/98eo2PNNWByxqMCFZR5nzW';
const zapEvent = nip57.makeZapRequest({
profile: sender,

View File

@@ -149,24 +149,6 @@ $save = function ($type) {
]);
};
$createKind0 = function () {
$note = new NostrEvent();
$note->setKind(0);
$note->setContent('');
$note->setTags([
['display_name', 'Einundzwanzig Portal'],
['lud16', 'portaleinundzwanzig@getalby.com'],
['pubkey', 'daf83d92768b5d0005373f83e30d4203c0b747c170449e02fea611a0da125ee6'],
]);
$signer = new Sign();
$signer->signEvent($note, config('services.nostr'));
$eventMessage = new EventMessage($note);
$relayUrl = config('services.relay');
$relay = new Relay($relayUrl);
$relay->setMessage($eventMessage);
$result = $relay->send();
};
$createPaymentEvent = function () {
$note = new NostrEvent();
$note->setKind(32121);