Files
breez-sdk-docs/src/guide/receive_payment.md
2023-11-17 13:22:23 +01:00

1.5 KiB

Receiving Lightning Payments

With the Breez SDK you aren't required to open a channel and set up your inbound liquidity. The Breez SDK automatically connects your node to the LSP peer and you can now receive payments.

Rust
{{#include ../../snippets/rust/src/receive_payment.rs:receive-payment}}
Swift
{{#include ../../snippets/swift/BreezSDKExamples/Sources/ReceivePayment.swift:receive-payment}}
Kotlin
{{#include ../../snippets/kotlin_mpp_lib/shared/src/commonMain/kotlin/com/example/kotlinmpplib/ReceivePayment.kt:receive-payment}}
React Native
{{#include ../../snippets/react-native/receive_payment.ts:receive-payment}}
Dart
{{#include ../../snippets/dart_snippets/lib/receive_payment.dart:receive-payment}}
Python
{{#include ../../snippets/python/src/receive_payment.py:receive-payment}}
Go
{{#include ../../snippets/go/receive_payment.go:receive-payment}}
C#
{{#include ../../snippets/csharp/ReceivePayment.cs:receive-payment}}