Replying to Avatar calvadev⚡️

Got some nostr:nprofile1qqs2xugc5jyguqkj36rk0syv4tmnkjdtmtperttl7x9rqjy3ustdcvcppemhxue69uhkummn9ekx7mp0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qg6waehxw309aek2mnyd96zumn0wdnxcctjv5hxxmmd9uxa0uz8 updates to report on since it's been a minute!

Recently, I've primarily been focused on QoL improvements and general code cleanup related to performace and reliability before working on some new stuff. If you haven't noticed, here are a few of the bigger changes:

- As a merchant, you can now set a donation rate on sales that goes back to support the site's development and maintenance

https://github.com/shopstr-eng/shopstr/commit/b0fc2bb725d8d432be669ee121b6c7183dba05b9

- Merchants can now also set their payment preference to receive a Cashu token via DM (the usual) or directly to the Lightning address set on their Nostr profile, making manual claiming unnecessary

https://github.com/shopstr-eng/shopstr/commit/f4c92ce165e64d87200b9302835888a5b107319f

- The built-in NIP-60 wallet got updated to the latest revision of the spec and is generally more reliable than before

https://github.com/shopstr-eng/shopstr/commit/b0b06cf67b096a2d48e86b12335cdd9d7cf58377

- Multi-image uploads are now supported, as well as naddr-based search and page routing (h/t nostr:nprofile1qqsf03c2gsmx5ef4c9zmxvlew04gdh7u94afnknp33qvv3c94kvwxgsppemhxue69uhkummn9ekx7mp0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qgewaehxw309a5xyu3wvdhhyctrd3jjuum0vd5kzmp0gankr4 and nostr:nprofile1qqs8hhhhhc3dmrje73squpz255ape7t448w86f7ltqemca7m0p99spgpzemhxue69uhkzat5dqhxummnw3erztnrdakj7qgmwaehxw309a3ksun0de5kxmr99ej8gmmwdahzucm0d5hsz8rhwden5te0vdhh2mn5wf5k2uewve5kzar2v9nzucm0d5hsxh4ddm for the suggestions)

https://github.com/shopstr-eng/shopstr/commit/62db9a01d2411f6ef9a623f798302c0c1d52abd6

- Some extensions (primarily Nostr Connect) don't support NIP-44 encryption yet, so that's now checked before allowing you to use the site while signed-in

https://github.com/shopstr-eng/shopstr/commit/85a2cedc5ca3a9a40cb4b360df4322e03a1c9f78

Also, don't forgort to update your Umbrel, Start9, and/or Tor instances if you're running one! Simply pulling the latest image source and rebuilding should do the trick.

Back to building. 🫡

For those who create listings outside of Shopstr, but they are also displayed on Shopstr due to being the same event kind, what payment method does Shopstr default to?

Reply to this note

Please Login to reply.

Discussion

It defaults to the Cashu DM payment unless the npub has a payment preference set to "lightning" in their profile metadata (either set from Shopstr or another market).

Ok, this may be dumb, but it seems to me like listings added via a completely different app should not default to using Cashu via DM unless the person listing it manually goes to Shopstr and changes it over to use their Lightning address. It should probably default to the payment method they have set up in their kind 0.

That's a good point since most might not be familiar with Cashu; defaulting to the Lightning address then Cashu if no Lightning address exists is probably a better way of handling it.

Ideally, there will be also be a NIP-89 handler that recommends the merchants' preferred app, and the client would link out to that app to finalize payment and/or marketplace implementers add support for the 'payment_preference' field in kind 0 (this is specced out in the [revised marketplace NIP](https://github.com/GammaMarkets/market-spec)).