mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
Address feedback
This commit is contained in:
@@ -26,7 +26,7 @@ do {
|
||||
// The `amountMsat` param is optional and should only passed if the bolt11 doesn't specify an amount.
|
||||
// The amountMsat is required in case an amount is not specified in the bolt11 invoice'.
|
||||
let req = SendPaymentRequest(bolt11: "...", amountMsat: 3000000)
|
||||
let response = try sdk.sendSpontaneousPayment(req: req)
|
||||
let response = try sdk.sendPayment(req: req)
|
||||
} catch {
|
||||
// handle error
|
||||
}
|
||||
@@ -93,7 +93,7 @@ bolt11 = "..."
|
||||
try:
|
||||
# The `amount_msat` param is optional and should only passed if the bolt11 doesn't specify an amount.
|
||||
# The amount_msat is required in case an amount is not specified in the bolt11 invoice'.
|
||||
req = SendPaymentRequest(bolt11=bolt11, amount_msat=None)
|
||||
req = breez_sdk.SendPaymentRequest(bolt11=bolt11, amount_msat=3000000)
|
||||
sdk_services.send_payment(req=req)
|
||||
except Exception as error:
|
||||
# Handle error
|
||||
|
||||
Reference in New Issue
Block a user