Implementing invoices

I’m trying to figure out how invoicing works. Based upon this doc I have to send a file?

Suppose I use the issue_invoice_tx method in the owner api. How do I generate a file to send to a payer?

Once the payer receives the file they can issue the grin-wallets “pay” command. Does this invoke the finalize_tx of my foreign api?

Thanks!

1 Like