question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature req: Pay BOLT11 invoices via BTCPay Server API

See original GitHub issue

Hi all,

With LN being so hot right now, one feature that would be super useful to me as a merchant is the ability to pay BOLT11 invoices via the BTCPay Server API.

Not the whole lncli/lightning-cli API is needed. Just the ability to: 1) Initiate payment of an lnbc invoice and 2) Check the status of that payment.

How I imagine it would work: When initiating a withdrawal, the initiate endpoint would need to create and return a withdrawal ID. The check status endpoint, when provided the withdrawal ID, would then return a success, failure, or processing status of the withdrawal.

For reference see the OpenNode docs under Withdrawals Endpoints => Initiate a withdrawal & Withdrawal info

But why don’t you just SSH in and run the commands yourself?

I’d like to be able to this programmatically and save myself from making a separate webserver + authentication on the same VM as my BTCPay Server instance.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Kukkscommented, Mar 10, 2019

There is still no API for most operations in any case. You need to wait till we plan it all

On Sun, Mar 10, 2019, 16:48 Ross Dyson notifications@github.com wrote:

@NicolasDorier https://github.com/NicolasDorier for my user case I need to programmatically make payouts to users

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/btcpayserver/btcpayserver/issues/618#issuecomment-471317722, or mute the thread https://github.com/notifications/unsubscribe-auth/ABu-_vhBCe8CnN9pKWUFG32e_Dxe5GyJks5vVSlZgaJpZM4bUTq- .

2reactions
NicolasDoriercommented, Mar 7, 2019

Why not using the embedded Ride the Lightning or Spark wallet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

BTCPay Greenfield API (v1)
Pay a lightning invoice. In case the payment response times out, the status will be reported as pending and the final status can...
Read more >
Using the BTCPay API for Custom Integration
Bitpay Invoice API - BTCPay implements the same API as Bitpay for creating and managing invoices. Migrating from BitPay to BTCPay normally is...
Read more >
Lightning dashboard, receipts and automated emails
This release's highlights are the introduction of Lightning and point of sale data to the dashboard, customer receipt for customers, emails for ...
Read more >
Paying Expired Lightning Invoices · Issue #1002
Open a lightning invoice created via BTCPayServer in Eclair wallet; Tap on the amount field to show the keyboard. This will keep that...
Read more >
Payment Requests
Payment Requests are a feature which allows BTCPay store owners to create long-lived invoices. Funds paid to a payment request use the exchange...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found