Next #nostr workflow automation idea involves payments.

What's an easy to use #bitcoin lightning API? And what's the best way to think about using it?

I guess would want to query an API to receive an invoice that I then pass on to the user. Then have some kind of webhook trigger when the invoice is paid.

Opennode API looks pretty easy. Can anyone recommend?

nostr:nprofile1qqsyv47lazt9h6ycp2fsw270khje5egjgsrdkrupjg27u796g7f5k0spzemhxue69uhk2er9dchxummnw3ezumrpdejz7qgwwaehxw309ahx7uewd3hkctcprdmhxue69uhkummnw3ez6vfwde3x7tnpdenkzmnf9e3k75xqss4 do you guys have a simple API like this?

Reply to this note

Please Login to reply.

Discussion

Oh sure, check https://getalby.com/developers for newcomers and

https://getalby.com/developer for logged in users 😉

Thanks!

Hey thanks for this! I have the API working to generate invoices.

I am struggling with the webhook. I have created webhooks via API and via the Developer Dashboard, but nothing I do seems to trigger them. Have sent payments to invoices etc, they never fire.

Do you have any tips?

Silly me, I solved it. Was listening for GET not POST