What is Nostr?
PABLOF7z
npub1l2v…ajft
2023-04-20 20:32:31

PABLOF7z on Nostr: JoshR continuing conversation here it looks like you guys are double URI encoding zap ...

JoshR (npub1j0s…g9a7) continuing conversation here

it looks like you guys are double URI encoding zap requests

```
const encodedEvent = encodeURIComponent(event);
const url = encodeURI(
`${callback}?amount=${sats2millisats(
amount
)}&nostr=${encodedEvent}&lnurl=${lnurl}`
);
```

even when double encoding the zap requests to you, I get back a 500 error

also, you are tagging the `e` of the event, but it's a parameterized replaceable event, so you should be using the `a` tag
Author Public Key
npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft