diff --git a/snippets/dart_snippets/lib/service_status.dart b/snippets/dart_snippets/lib/service_status.dart index c73c669..e7f2ee8 100644 --- a/snippets/dart_snippets/lib/service_status.dart +++ b/snippets/dart_snippets/lib/service_status.dart @@ -11,6 +11,8 @@ Future healthCheckStatus() async { Future 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 } diff --git a/snippets/react-native/service_status.ts b/snippets/react-native/service_status.ts index a358b5b..9862a53 100644 --- a/snippets/react-native/service_status.ts +++ b/snippets/react-native/service_status.ts @@ -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