mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Fix RN and dart snippets
This commit is contained in:
@@ -11,6 +11,8 @@ Future<void> healthCheckStatus() async {
|
||||
Future<void> reportPaymentFailure() async {
|
||||
// ANCHOR: report-payment-failure
|
||||
String paymentHash = "...";
|
||||
await BreezSDK().reportIssue(ReportIssueRequest.paymentFailure(paymentHash: paymentHash));
|
||||
await BreezSDK().reportIssue(
|
||||
req: ReportIssueRequest.paymentFailure(
|
||||
data: ReportPaymentFailureDetails(paymentHash: paymentHash)));
|
||||
// ANCHOR_END: report-payment-failure
|
||||
}
|
||||
|
||||
@@ -9,9 +9,9 @@ const healthCheckStatus = async () => {
|
||||
|
||||
const reportPaymentFailure = async () => {
|
||||
// ANCHOR: report-payment-failure
|
||||
const paymentHash = "..."
|
||||
const paymentHash = '...'
|
||||
await reportIssue({
|
||||
type: ReportIssueRequestVariant.PAYMENT_FAILURE,
|
||||
type: ReportIssueRequestVariant.PAYMENT_FAILURE,
|
||||
data: { paymentHash }
|
||||
})
|
||||
// ANCHOR_END: report-payment-failure
|
||||
|
||||
Reference in New Issue
Block a user