From cbe1acc9c26e22b264f06c24ba02c51662a40215 Mon Sep 17 00:00:00 2001 From: Roy Sheinfeld <31890660+kingonly@users.noreply.github.com> Date: Sun, 17 Dec 2023 15:31:55 +0200 Subject: [PATCH] Create failure_report.md --- src/guide/failure_report.md | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/guide/failure_report.md 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}} +``` +
+