Consolidate "receive payment" snippets, expose invoice

This commit is contained in:
ok300
2024-01-12 10:17:29 +01:00
parent 464a29816d
commit fd10bbc286
8 changed files with 28 additions and 15 deletions

View File

@@ -13,7 +13,7 @@ func ReceivePayment() {
Description: "Invoice for 3000 sats",
}
if receivePaymentResponse, err := sdk.ReceivePayment(receivePaymentRequest); err == nil {
log.Printf("%#v", receivePaymentResponse)
log.Printf("Invoice: %#v", receivePaymentResponse.LnInvoice)
}
// ANCHOR_END: receive-payment
}