Nice. Really dig the way you implemented the timer
reply
Sign of things to come.
Soon every news site with a paywall will have an option to throw a couple pennies through lightning to unlock any article without needing a subscription.
reply
Basically like https://yalls.org ?
Or more like Paywall.Link ?
Looks a bit like https://lightning.ws/ as well...
I believe Boltwall did a similar thing: https://boltwall-org.github.io/boltwall/
reply
Yep. None of those were built using the Strike API though. The Strike API opens the doors for devs who know nothing about Bitcoin or ⚡️ to easily build apps that accept Bitcoin and ⚡️ payments. This project is basically just a demo of how easy it is to build those types of apps. Code is available here https://github.com/SamSamskies/strike-paywall.
reply
It doesn't prevent the user from going to the "hidden" link directly, right? Or is there anything that would prevent it?
reply
The link is not hidden on the page. It's fetched from Strike using their API after the user pays. If you found it hidden on the page somewhere, let me know cause that's a bug. If someone else that paid gives them the link, there's nothing I can do about that.
reply
I meant it differently - if I unlock the link and send it to my friend, my friend will be able to access the content directly, right?
reply
Yeah, nothing I can do about that.
reply
Don't underestimate yourself :P You could publish plugin or <script> for common content mgmt frameworks/sites...
It would be also pretty cool if that would include the meta tag to trigger Alby, so when I open the page, Alby would just ask me to confirm the small payment and that's it, that's the full user flow right there :)
reply
I don't think I'm going to get to fancy with this project. Just made it to demo how easy it is to make sites that accept Bitcoin and ⚡️ payments using the Strike API. You can sign up for a Strike API key here https://developer.strike.me/. I think we're going to start letting devs in off the waitlist soon. Also, feel free to fork the project and get crazy with it if you get an API key.
As for that Alby thing, I don't think that would work. The whole app is built around invoices generated by Strike. I'm actually storing the amount, title, and redirect URL in the description of the invoice 😂. I just strip out the redirect URL and create a new invoice when generating the QR code so that the user doesn't get the redirect URL when they scan the QR code.
reply
Are Strike invoices not standard BOLT-11 payment requests? As long as they are it should work fine with WebLN wallets like Alby.
I just put my name in for preview access, btw. Please put in a good word for me, @samsamskies :)
reply
I took a long at that meta tag and it seemed like it was for lightning addresses which Strike doesn’t support.
Very slick and simple! Feels a lot like early https://gumroad.com.
reply