# Create a charge (payment request)charge = client.lightning_charges.create( amount="100000", # 100 satoshis description="Payment for your product", expires_in=300 # Expires in 5 minutes)print(f"Payment Request: {charge.data.invoice.request}")print(f"QR Code: {charge.data.invoice.uri}")
You’re looking for the data.invoice.request property in the response. It starts with lnbc1 and is the payment request anyone in the Bitcoin Lightning Network can use to pay you.
Payment requests are usually shown to users as QR codes that can be scanned by mobile apps (e.g. ZBD). Read Callbacks to understand how to receive updates about your payments asynchronously.