🚀 feat(migration): add zap endpoint field to payment events table

🎨 refactor(profile): update payment logic and button display
🔧 fix(nostrZap): change relay URL to secure WebSocket protocol
This commit is contained in:
fsociety
2024-10-22 17:11:32 +02:00
parent ce1cffc66a
commit 22e0151be4
3 changed files with 61 additions and 73 deletions

View File

@@ -16,7 +16,7 @@ export default (livewireComponent) => ({
relayUrl: 'wss://simple-test-relay.steuernsindraub21.xyz',
},
local: {
relayUrl: 'ws://simple-test-relay.steuernsindraub21.xyz',
relayUrl: 'wss://simple-test-relay.steuernsindraub21.xyz',
},
};
const relayUrl = config[env]?.relayUrl || config['local'].relayUrl;
@@ -41,6 +41,8 @@ export default (livewireComponent) => ({
const callbackData = await callbackResponse.json();
const zapEndpoint = callbackData.callback;
livewireComponent.call('updateZapEndpoint', zapEndpoint);
const zapEvent = nip57.makeZapRequest({
profile: sender,
event: event.id,