Fix RN and dart snippets

This commit is contained in:
Ross Savage
2023-11-27 14:32:04 +01:00
parent 530c687322
commit 2c284189f2
2 changed files with 5 additions and 3 deletions

View File

@@ -11,6 +11,8 @@ Future<void> healthCheckStatus() async {
Future<void> reportPaymentFailure() async { Future<void> reportPaymentFailure() async {
// ANCHOR: report-payment-failure // ANCHOR: report-payment-failure
String paymentHash = "..."; String paymentHash = "...";
await BreezSDK().reportIssue(ReportIssueRequest.paymentFailure(paymentHash: paymentHash)); await BreezSDK().reportIssue(
req: ReportIssueRequest.paymentFailure(
data: ReportPaymentFailureDetails(paymentHash: paymentHash)));
// ANCHOR_END: report-payment-failure // ANCHOR_END: report-payment-failure
} }

View File

@@ -9,7 +9,7 @@ const healthCheckStatus = async () => {
const reportPaymentFailure = async () => { const reportPaymentFailure = async () => {
// ANCHOR: report-payment-failure // ANCHOR: report-payment-failure
const paymentHash = "..." const paymentHash = '...'
await reportIssue({ await reportIssue({
type: ReportIssueRequestVariant.PAYMENT_FAILURE, type: ReportIssueRequestVariant.PAYMENT_FAILURE,
data: { paymentHash } data: { paymentHash }