Files
breez-sdk-docs/snippets/csharp/ReceivePayment.cs
2023-11-03 15:19:58 +01:00

20 lines
434 B
C#

using Breez.Sdk;
public class ReceivePaymentSnippets
{
public void ReceivePayment(BlockingBreezServices sdk)
{
// ANCHOR: receive-payment
try
{
var invoice = sdk.ReceivePayment(
new ReceivePaymentRequest(3_000_000, "Invoice for 3000 sats"));
}
catch (Exception)
{
// Handle error
}
// ANCHOR_END: receive-payment
}
}