Closed gudnuf closed 7 months ago
This enables prisms to be payed out, but only when nothing goes wrong. There is still plenty of error handling and refactoring to be done!
I moved all functionality of paying a prism to the Prism.pay() class method
Prism.pay()
invoice_payment
executepayout
.pay()
Prism payouts get triggered by payment of an invoice (bolt11 or bolt12 generated)
made sure to delete BOLT11 bindings when the payment completes
prism-create now returns as a dict, not json. This makes it easier to parse the response.
prism-create
Tested and verified. Things looking good.
This enables prisms to be payed out, but only when nothing goes wrong. There is still plenty of error handling and refactoring to be done!
Notable changes:
I moved all functionality of paying a prism to the
Prism.pay()
class methodinvoice_payment
andexecutepayout
) use.pay()
Prism payouts get triggered by payment of an invoice (bolt11 or bolt12 generated)
made sure to delete BOLT11 bindings when the payment completes
prism-create
now returns as a dict, not json. This makes it easier to parse the response.