Charge
Quote, then verify and settle, one buyer's payment for a resource you sell, with approval and provider readback.
You’re reading version sha-7b45a583878b. Go to the current version
Overview
charge is the seller contract. quote states the payment requirements for
one HTTPS resource at an exact price. The default charge runner settles the
buyer's payment against those requirements once, then requires a readback of
the same payment, settled at that price for that resource, before the run can
close and the resource is released.
The rail is x402, settled through Coinbase CDP (coinbase/cdp) in the
seller's own account. Runx Hosted verifies the payment payload with the
facilitator, settles it, keeps the attempt idempotent and recoverable, and
holds the CDP credential. The OSS runtime owns the generic provider-effect gate
and the receipt envelope; it implements no rail and infers no settlement from
caller input.
In the manual
Runners
chargequote
Declared by its execution profile. Read the profile
SKILL.md
Charge
charge is the seller contract. quote states the payment requirements for
one HTTPS resource at an exact price. The default charge runner settles the
buyer's payment against those requirements once, then requires a readback of
the same payment, settled at that price for that resource, before the run can
close and the resource is released.
The rail is x402, settled through Coinbase CDP (coinbase/cdp) in the
seller's own account. Runx Hosted verifies the payment payload with the
facilitator, settles it, keeps the attempt idempotent and recoverable, and
holds the CDP credential. The OSS runtime owns the generic provider-effect gate
and the receipt envelope; it implements no rail and infers no settlement from
caller input.
Operator guide
Use this skill when you are the seller. Use pay on the buyer side and
refund to reverse a settled charge. A hosted coinbase/cdp grant is
required.
Pass the buyer's payment payload and the quoted requirements exactly as they arrived, with the digest that binds the paid request, and a stable idempotency seed. Stop on missing or mismatched requirements, resource, amount or currency. Refuse raw card, wallet, provider-key, or bearer material. Never release the resource unless settlement and readback agree on a settled payment.
Published execution profile
The execution profile published with sha-7b45a583878b, shown as its exact bytes.
| Runners |
|
|---|---|
| Profile digest | sha256:c536446264f928baab8f6baa9c264070cd3f025dec27068806a1d983b040e9df |
skill: charge
version: "0.7.0"
catalog: { kind: graph, audience: operator, visibility: public, role: canonical, execution: execute, completion: provider_readback, approval: required, category: payments }
input_definitions:
resource:
type: string
required: true
description: Exact HTTPS resource the payment buys.
schema: { format: uri, pattern: '^https://', maxLength: 2000 }
amount_minor:
type: integer
required: true
description: Price in the currency's minor units.
schema: { minimum: 1, maximum: 9007199254740991 }
currency:
type: string
required: true
description: ISO 4217 code of the price.
schema: { pattern: '^[A-Z]{3}$' }
connectors:
coinbase/cdp:
operations: [payment.x402.merchant.quote, payment.x402.merchant.settle, payment.x402.merchant.read]
runners:
charge:
default: true
inputs:
resource: { definition: resource }
amount_minor: { definition: amount_minor }
currency: { definition: currency }
payment_payload: { type: json, required: true, description: "The buyer's x402 payment payload, exactly as it arrived." }
payment_requirements: { type: json, required: true, description: The quoted payment requirements the payload answers. }
request_binding_digest: { type: string, required: true, description: Digest binding the paid request to this settlement., schema: { pattern: '^sha256:[0-9a-f]{64}$' } }
idempotency_seed: { type: string, required: true, description: Stable caller-owned idempotency material., schema: { minLength: 16, maxLength: 200 } }
result_from: [readback]
steps:
- id: settle
operation: coinbase/cdp/payment.x402.merchant.settle
idempotency_key: $input.idempotency_seed
approval:
reason: Approve settling this exact payment before the paid resource is released.
type: payment_charge
result_fields: [payment_ref, resource, amount_minor, currency, status, settlement_ref, payer, pay_to, network, asset, settled_at]
input: { request_binding_digest: $input.request_binding_digest, resource: $input.resource, amount_minor: $input.amount_minor, currency: $input.currency, payment_payload: $input.payment_payload, payment_requirements: $input.payment_requirements }
- id: readback
operation: coinbase/cdp/payment.x402.merchant.read
result_fields: [payment_ref, resource, amount_minor, currency, status, settlement_ref, payer, pay_to, network, asset, settled_at]
input: { resource: $input.resource, payment_ref: $steps.settle.provider_operation.result.payment_ref }
expected_result:
payment_ref: $steps.settle.provider_operation.result.payment_ref
resource: $input.resource
amount_minor: $input.amount_minor
currency: $input.currency
status: settled
quote:
inputs:
resource: { definition: resource }
amount_minor: { definition: amount_minor }
currency: { definition: currency }
description: { type: string, required: false, description: What the buyer is paying for., schema: { maxLength: 499 } }
max_timeout_seconds: { type: integer, required: false, description: How long the buyer has to pay., schema: { minimum: 1, maximum: 86400 } }
result_from: [quote]
steps:
- id: quote
operation: coinbase/cdp/payment.x402.merchant.quote
result_fields: [quote_contract, resource, amount_minor, currency, accepts, quote_digest]
input: { resource: $input.resource, description: $input.description, amount_minor: $input.amount_minor, currency: $input.currency, max_timeout_seconds: $input.max_timeout_seconds }
expected_result: { resource: $input.resource, amount_minor: $input.amount_minor, currency: $input.currency }
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-7b45a583878b |
| 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:4ccd05ec50d216cc2ee49afe467ad2972ec7404c9d639ff1e61a488cfb452eafsha256:fcdb8eea66af1cc312221070ccc1d62c0f6689228510679c5399bc7ecfd46e29sha256:a95a199177b00b09b45eccc54c32072b0c7eb7e707f78d06b621eb3a2c250251Package identity
| Published revision | sha-7b45a583878b |
|---|---|
| Content digest | sha256:dc6ccb907490b5f258d249dbcf8c73cbb5741269fff917827225ac5524072242 |
| SKILL.md digest | sha256:b3c8fc154ef057879933a32ef8ed465d932b819c69d736c5cd1785301dc9f480 |
| Execution profile digest | sha256:c536446264f928baab8f6baa9c264070cd3f025dec27068806a1d983b040e9df |
| 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.7.3Content digest sha256:47545fd7f131a7fe422ae7a6a0364f0cc85a9502e482caf247798f68dc714bc0sha-7b45a583878bViewingContent digest sha256:dc6ccb907490b5f258d249dbcf8c73cbb5741269fff917827225ac5524072242