diff --git a/src/guide/send_payment.md b/src/guide/send_payment.md index 735453a..27e168c 100644 --- a/src/guide/send_payment.md +++ b/src/guide/send_payment.md @@ -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