mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Consolidate "receive payment" snippets, expose invoice
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user