This is a cool concept, we started with the prepackaged checkout to start but there’s no reason this shouldn’t work.. we are planning on exposing the lower level stuff that can make something like this easy soon.

Reply to this note

Please Login to reply.

Discussion

It only makes sense to start with the broader use case. Thought I'd go straight for hard mode. Stand by.

Ok, after prodding and poking Claude, it *seems* the node shutting down after each request is breaking LSPS4 JIT channel registration?

The node spinning up / shutting down is normal and expected. It’s how we’re able to support NextJS and serverless infra like netlify and vercel!

Happy to take a look, Claude is going deep :)

This is what happens when you're only a (vibe) coder. 😅 I'm curious and stubborn.

Each attempt failed with no-route errors, but I assume that's janky LNURL construction and out of scope.

Feel free to jump in the discord and I can help you diagnose!

No_route is typically something with the webhook setup, two things to check:

1. Is your site name correct on the dashboard? Go to Webhooks and make sure it matches the url it’s hosted at.

2. Is the code snippet at api/mdk/route.js correct? Agents are pretty good at this part, but good to double check. Just copy / paste what’s in the readme.

We use Webhooks to ping your node when a payment is coming in. If we can’t reach your site then the payment will fail no_route.

Looked like your agent was trying local with ngrok? That can work but you’ll need to adjust the webhook url to your exact ngrok url. We’re working on a more friendly local experience (on mutinynet) and will have that out soon.