How it works
Two invoices, two ways to pay.
Invoice A is paid with one contract call. Invoice B gets a plain wallet transfer, and a sweep settles it. Both end in the same 92 / 8 split.

NONEXISTENT
The invoice has an address and no account yet.
The address comes from the invoice terms and the contract hash. Asked about it, the chain answers UNKNOWN_ACCOUNT. No transaction was needed to get it.

PAID
The first payment creates the account.
The payer sends one transaction. It installs the contract at the address, runs it, and splits the money. In the demo run, 1 NEAR came in, 0.92 went to the merchant and 0.08 to the tax vault.

UNINITIALIZED
A wallet can send money to the address.
For a NEAR invoice a plain transfer works. The money waits in an account that has no code yet.

PAID
Anyone can then call sweep.
sweep installs the contract and settles the waiting money with the same split. The demo run ends with result=PAID.
