Invoice settlement
Check one invoice against the authority that may pay it, then pay it through pay with approval and readback.
You’re reading version sha-1ae24e3df21b. Go to the current version
Overview
invoice-pay turns one invoice into one bounded payment. It checks the
invoice first: a positive amount in minor units, a currency a payment method
settles, the payee's exact HTTPS payment endpoint and address, and a parent
authority that covers the amount and names that payee. Only then does it
compose pay, which settles the payment once and reads the paid resource
back.
The check is deterministic and runs before anything is approved or paid. A
payment method settles USD today, so an invoice in another currency is refused,
never converted. Everything after the check is pay's: hosted wallet custody,
approval, idempotency, recovery and finality.
In the manual
Runner
invoice-pay
Declared by its execution profile. Read the profile
SKILL.md
Invoice Pay
invoice-pay turns one invoice into one bounded payment. It checks the
invoice first: a positive amount in minor units, a currency a payment method
settles, the payee's exact HTTPS payment endpoint and address, and a parent
authority that covers the amount and names that payee. Only then does it
compose pay, which settles the payment once and reads the paid resource
back.
The check is deterministic and runs before anything is approved or paid. A
payment method settles USD today, so an invoice in another currency is refused,
never converted. Everything after the check is pay's: hosted wallet custody,
approval, idempotency, recovery and finality.
Composes
pay#pay
Operator guide
Pass the invoice reference, the amount and currency due, the payee's
payment_url and pay_to, the parent's authority, and a stable idempotency
seed. Stop on malformed invoice data, a non-positive amount, an unsupported
currency, a payee the authority does not name, an amount over the authority,
missing approval, or inconsistent readback. Accept the payee's public payment
endpoint and address only; never account, routing, card, wallet, or provider
credential material.
Published execution profile
The execution profile published with sha-1ae24e3df21b, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:6697c7b0ff03ed559ebdd3f7d0fe5ea8a2fb5b529396579856be68443505eaf2 |
skill: invoice-pay
version: "0.6.1"
catalog: { kind: graph, audience: operator, visibility: public, role: canonical, execution: execute, completion: provider_readback, approval: required, category: payments }
runners:
invoice-pay:
default: true
inputs:
invoice_ref: { type: string, required: true, description: The invoice's own reference., schema: { minLength: 1, maxLength: 256 } }
amount_minor: { type: integer, required: true, description: The amount due in minor units. }
currency: { type: string, required: true, description: ISO 4217 code of the amount due. }
payee: { type: object, required: true, description: "The payee's HTTPS payment endpoint (payment_url) and EVM address (pay_to)." }
parent_payment_authority: { type: json, required: true, description: The parent's USD authority to pay this payee. }
idempotency_seed: { type: string, required: true, description: Stable settlement idempotency material., schema: { minLength: 16, maxLength: 500 } }
result_from: [settle]
steps:
- id: admit
inputs: { invoice_ref: $input.invoice_ref, amount_minor: $input.amount_minor, currency: $input.currency, payee: $input.payee, parent_payment_authority: $input.parent_payment_authority }
tool: { module: invoice.mjs, export: admitInvoice, timeout_seconds: 5 }
outputs: { payment_signal: object }
- id: settle
skill: ../pay
runner: pay
inputs:
payment_signal: $steps.admit.payment_signal
parent_payment_authority: $input.parent_payment_authority
idempotency_seed: $input.idempotency_seed
harness:
files: [fixtures/support/composed.graph]
cases: []
Published package and test evidence.
This exact version passed its recorded harness run: 3 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | sha-1ae24e3df21b |
| Recorded result | 3 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Test record | Open the recorded run |
Inspect receipt references
sha256:9bd24f68a52771da78d590cb5237aabfda7301c8a455b2f2e3f26b89987cab38sha256:9ec413bf501f6dfc3caff29eee0005c954c8c6f008272b6c97b8a25d382a1537sha256:b6c4f64f30ee1011115b8f03a90bcddd4433a6fc500ce0b09424495848e58be2Package identity
| Published revision | sha-1ae24e3df21b |
|---|---|
| Content digest | sha256:1ae24e3df21bb704accb82cfcea121db68f0a279b28e7ce1f2386d4d150424db |
| SKILL.md digest | sha256:3c38cf38cb8d7c98a82976c6440d7f3a8fa89dc65b61c6251410286f5916022e |
| Execution profile digest | sha256:6697c7b0ff03ed559ebdd3f7d0fe5ea8a2fb5b529396579856be68443505eaf2 |
| Publisher identity | Verified publisher · runx |
| Trust tier | Verified publisherRunx has verified this publisher. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
0.6.3Content digest sha256:1fb5f7862dd4786a9b15341ebae3c29a89ff5ebad32d876db85017b5031ad394sha-1ae24e3df21bViewingContent digest sha256:1ae24e3df21bb704accb82cfcea121db68f0a279b28e7ce1f2386d4d150424db