rename python_snippets folder to python

.
This commit is contained in:
Jesse de Wit
2023-11-13 20:52:59 +01:00
committed by ok300
parent 34387e8b62
commit 0927ab4408
29 changed files with 57 additions and 50 deletions

View File

@@ -0,0 +1,15 @@
import breez_sdk
def receive_payment(sdk_services):
try:
# ANCHOR: receive-payment
req = breez_sdk.ReceivePaymentRequest(
amount_msat=3000000,
description="Invoice for 3 000 000 sats")
result = sdk_services.receive_payment(req)
# ANCHOR_END: receive-payment
return result
except Exception as error:
print(error)
raise