diff --git a/src/guide/failure_report.md b/src/guide/failure_report.md new file mode 100644 index 0000000..ca4cbf8 --- /dev/null +++ b/src/guide/failure_report.md @@ -0,0 +1,69 @@ +# Reporting a payment failure + +While attempting to send payments it may be that sometimes payment failures occur. Reporting these issues through the Breez SDK will help us to improve LSP routing. + + +
Rust
+
+ +```rust,ignore +{{#include ../../snippets/rust/src/service_status.rs:report-payment-failure}} +``` +
+ +
Swift
+
+ +```swift,ignore +{{#include ../../snippets/swift/BreezSDKExamples/Sources/ServiceStatus.swift:report-payment-failure}} +``` +
+ +
Kotlin
+
+ +```kotlin,ignore +{{#include ../../snippets/kotlin_mpp_lib/shared/src/commonMain/kotlin/com/example/kotlinmpplib/ServiceStatus.kt:report-payment-failure}} +``` +
+ +
React Native
+
+ +```typescript +{{#include ../../snippets/react-native/service_status.ts:report-payment-failure}} +``` +
+ +
Dart
+
+ +```dart,ignore +{{#include ../../snippets/dart_snippets/lib/service_status.dart:report-payment-failure}} +``` +
+ +
Python
+
+ +```python,ignore +{{#include ../../snippets/python/src/service_status.py:report-payment-failure}} +``` +
+ +
Go
+
+ +```go,ignore +{{#include ../../snippets/go/service_status.go:report-payment-failure}} +``` +
+ +
C#
+
+ +```cs,ignore +{{#include ../../snippets/csharp/ServiceStatus.cs:report-payment-failure}} +``` +
+