mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Consolidate "receive payment" snippets, expose invoice
This commit is contained in:
@@ -7,8 +7,10 @@ public class ReceivePaymentSnippets
|
||||
// ANCHOR: receive-payment
|
||||
try
|
||||
{
|
||||
var invoice = sdk.ReceivePayment(
|
||||
var receivePaymentResponse = sdk.ReceivePayment(
|
||||
new ReceivePaymentRequest(3_000_000, "Invoice for 3000 sats"));
|
||||
|
||||
var invoice = receivePaymentResponse.lnInvoice;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user