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 {
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 }
|
||||||
|
|||||||
Reference in New Issue
Block a user