@Trobades Bitcoiners
Hi Mercasats team 👋 Quick heads-up and a few questions. Colabonate (colabonate.app) mirrors kind 30402 listings from public relays, including yours. As of today a signed-in buyer can pay the listed seller directly over Lightning from our page: a NIP-57 zap to the seller named in your ["p", seller, "", "seller"] tag (never your org account), the listing referenced with an a tag, no escrow, and the buyer is told it's a direct payment to a third party. That matches your terms. If you'd rather we didn't surface payments for your listings, tell us and we'll exclude them right away.
▎
▎ We read your public repo (@255cf49) to make sure we play nicely and noticed a few things that might affect your sold-marking. We may be misreading, so please treat these as questions:
▎
▎ 1. handleZapReceipt matches receipts only by the e tag. Kind 30402 is addressable, and NIP-57 says to use an a tag for those, which is what we send (30402:<pubkey>:<d>). So our zaps won't flip a listing to sold. Would you accept a too? We can also add an e with the current event id if you prefer.
▎ 2. The zap monitor subscribes with #p: [marketplace pubkey], but the invoice endpoint builds the zap request with p = seller_npub, so receipts for those zaps carry the seller's pubkey. Unless there's another path we missed, they wouldn't match the filter.
▎ 3. The sold check only runs for price_currency === 'sats', so EUR-priced listings (like mercasats-187, 2 EUR) never get marked sold by a zap.
▎ 4. The seller tag is only published when seller_npub is set (your invoice endpoint rightly refuses those). Clients that zap the author would pay your org for such listings. Maybe worth a note/tag so others don't fall back to the org account.
▎
▎ Also: we quote fiat prices in sats at our rate with a locked 10-minute quote, so a payment can differ slightly from your own conversion. A small tolerance on your side would avoid "paid but not marked sold". Thanks for building this! 🙏