Closed webdev23 closed 5 years ago
Demo error:
echo 'LN BOLT11: ' . $charge->lightning_invoice->payreq; echo 'LN BOLT11: ' . $charge->lightning_invoice["payreq"].PHP_EOL; echo 'BTC address: ' . $charge->chain_invoice->address echo 'BTC address: ' . $charge->chain_invoice->address;
Fixed.
Still get an error with $charge->chain_invoice->address; because both lightning_invoice and chain_invoice are arrays not objects.
$charge->chain_invoice->address;
Should be $charge->chain_invoice['address'];
$charge->chain_invoice['address'];
Demo error:
Fixed.