From jb55 at jb55.com Fri Sep 8 05:45:16 2023 From: jb55 at jb55.com (William Casarin) Date: Thu, 7 Sep 2023 12:45:16 -0700 Subject: [c-lightning] CLN commando payment links, now powering the Damus shopify store! Message-ID: Hey guys n gals, Awhile back I made this proof of concept using commando+lnsocket for generating bolt11 invoices dynamically, a kind of bootleg version of bolt12. This proof of concept is now powering lightning payments on the Damus shopify merch store (https://store.damus.io) ! How it works ------------ Code: https://github.com/jb55/cln-payment-links Demo: http://lnlink.org Example: http://lnlink.org/?d=ASED88EIzNU2uFJoQfClxYISu55lhKHrSTCA58HMNPgtrXECbW9uYWQuZW5kcG9pbnQuamI1NS5jb206ODMyNAADYAego9kAnmQBTmdZ0uqhrkXuFX-qs8CckOUKN29B0bf8PTEyMCZtZXRob2Q9aW52b2ljZXxtZXRob2Q9d2FpdGludm9pY2UmcG5hbWVsYWJlbF5sbmxpbmstJnJhdGU9OAREZWF0aCBTdGFyAAUAAABkBkFuIG9iamVjdCBvZiB1bmZhdGhvbWFibGUgcG93ZXIuIFBsZWFzZSBlbnRlciB5b3VyIGFkZHJlc3MgZm9yIGRlbGl2ZXJ5LgAHAghodHRwczovL3VwbG9hZC53aWtpbWVkaWEub3JnL3dpa2lwZWRpYS9lbi9mL2Y5L0RlYXRoX3N0YXIxLnBuZwA%3D lnlink.org is a webserver-less lightning app that talks directly to CLN nodes via commando over websockets. All page data is stored in the URL: * nodeid * ip * authentication rune (invoice, waitinvoice) * product name * description * price * form input fields When the user clicks buy, it connects to the configured lightning node and calls the invoice rpc with commando. A bolt11 invoice is returned with the configured price, and the description is set to the product name, description, and form input fields User pays, and page is updated with notification of payment via waitinvoice. Shopify integration ------------------- To make this work with shopify, I modified lnlink.org to support dynamic fiat prices in the url, so that when shopify sends the Order confirmation email, the shopify template can be updated to include this payment link: Template: Picture: https://jb55.com/s/9ee58cf3a0a9e40a.png Example: https://tls.lnlink.org/?d=ASED88EIzNU2uFJoQfClxYISu55lhKHrSTCA58HMNPgtrXECcHJveHkubG5saW5rLm9yZy9tb25hZC5lbmRwb2ludC5qYjU1LmNvbQADYAego9kAnmQBTmdZ0uqhrkXuFX-qs8CckOUKN29B0bf8PTEyMCZtZXRob2Q9aW52b2ljZXxtZXRob2Q9d2FpdGludm9pY2UmcG5hbWVsYWJlbF5sbmxpbmstJnJhdGU9OAREYW11cyBNZXJjaCBQYXltZW50AAZUaGFua3MgZm9yIHlvdXIgcHVyY2hhc2UhAA%3D%3D&fiat=6999&ordernumber=x1235test The last bit of automation would be to write a waitanyinvoice script that looks for these invoices and marks the order as paid with the shopify api, but for now we're just doing this manually. Thought this might be interesting to those running CLN nodes. I really like the "lightning app" idea, it reminds me of "nostr apps", where all the logic is in the client instead of putting business logic on servers. Cheers, Will From vincenzopalazzodev at gmail.com Sun Sep 10 19:35:06 2023 From: vincenzopalazzodev at gmail.com (Vincenzo Palazzo) Date: Sun, 10 Sep 2023 11:35:06 +0200 Subject: [c-lightning] CLBOSS v0.13 aka "Born to Run" Release Message-ID: Hi all, We've tagged the first release of CLBOSS [1] that is now compliant with modern CLN versions. This was primarily a "bring back to life" effort. Special thanks to Ken who took the initiative to revive the work on this project. [1] https://github.com/ZmnSCPxj/clboss/releases/tag/v0.13 Cheers, Vincent From niftynei at gmail.com Tue Sep 19 10:56:34 2023 From: niftynei at gmail.com (niftynei) Date: Mon, 18 Sep 2023 19:56:34 -0500 Subject: [c-lightning] Informal CLN Meetup in Austin at PlebLab, Nov 6 - 11 Message-ID: Some CLN contributors (self-included!) are going to be meeting at PlebLab in Austin, Nov 6-11. We'd love for anyone who's working on CLN to join us if you're around/available. If you're coming, please fill out this form so we can get an idea of how many people are coming + how to get in touch with you about details for the event: https://ykdl62lcpgz.typeform.com/to/H9966i7y We realize this is a pretty far hop for some people, no worries if you can't make it. Hope to see you there! ~nifty