Pay

Pay one exact resource with your held x402 wallet or approved Link MPP authorization, within the supplied terms and native authority.

Overview

Use this when you are the buyer paying a known merchant resource. Choose the held connector explicitly: wallet/evm pays external x402 V2 with USDC on Base; link pays a Stripe MPP charge using an already approved one-time Link spend request. Stripe and PayPal merchant app credentials cannot spend as a buyer. Missing authority never selects another wallet or method.

Inspect the selected connector to construct its public request: the wallet's payment_signal, or Link's payment.mpp arguments. Supply the parent mandate's original term reference, exact resource URL, currency and maximum, plus a stable idempotency_seed. These purchase terms are checked before financial dispatch; they do not grant native authority. The native kernel still admits capability, run budget, human approval and the exact effect. No rounding or FX is implied.

In the manual

Runners

  • authorize
  • pay
  • readback
  • settle

Declared by its execution profile. Read the profile

SKILL.md

Pay

Use this when you are the buyer paying a known merchant resource. Choose the held connector explicitly: wallet/evm pays external x402 V2 with USDC on Base; link pays a Stripe MPP charge using an already approved one-time Link spend request. Stripe and PayPal merchant app credentials cannot spend as a buyer. Missing authority never selects another wallet or method.

Inspect the selected connector to construct its public request: the wallet's payment_signal, or Link's payment.mpp arguments. Supply the parent mandate's original term reference, exact resource URL, currency and maximum, plus a stable idempotency_seed. These purchase terms are checked before financial dispatch; they do not grant native authority. The native kernel still admits capability, run budget, human approval and the exact effect. No rounding or FX is implied.

x402 resource payment

The default composes settle once, readback and the terminal evidence check. The hosted wallet owns private signing, staged-byte recovery, on-chain finality and the paid resource result. A complete outcome requires a confirmed chain transaction and the resource's 2xx response; the resource's own product lifecycle may continue afterwards. Pending, failed or mismatched evidence never reports a completed purchase. Durable callers may use the x402-specific settle and readback runners separately and schedule later observations externally.

Install the pinned official Link CLI and bind the intended signed-in account with runx connector use link --session. Run authorize with the connector's spend.request arguments to request exact one-time wallet consent. Its approval URL/status is authorization evidence only; it does not prove payment. The connector binds consent to the original URL, method, body and challenge in Link metadata; an unrelated or unbound authorization is refused. Complete the wallet's approval, then supply that original spend request ID and original provider-issued MPP challenge to the default Link payment lane.

The connector pins and rechecks the account, amount/currency, payment method, merchant network and challenge. Only the official CLI retrieves the SPT; it never enters graph inputs, results or receipts. Independent original spend request readback must confirm the exact paid amount and transaction. This lane returns payment evidence, not the merchant HTTP body or delivery proof. Read a merchant artifact through its declared provider operation when needed. Link is not yet a selectable native paid-skill purchase method.

Continue the original effect

Stop on missing bindings, changed account/terms, denied approval or uncertain readback. Preserve the original effect, request key and provider references. Resume acknowledged effects at readback; never replace an ambiguous payment with another spend request, challenge, key or method. A refund already observed on Link cannot be presented as a fresh successful purchase.

Do not put wallet keys, SPTs, bearer tokens or card data in skill inputs. A paid Runx skill is bought by running that skill through the native purchase boundary; this job does not replace it. Use charge as the merchant, refund for an original collection's reversal, and invoice-pay to bind an invoice before pay.

Published execution profile

The execution profile published with 0.1.4, shown as its exact bytes.

Runners
  • authorize
  • pay
  • readback
  • settle
Profile digestsha256:ea7e1e8759a31416c81a2f6c97f50c5f0077576bee8ab150fe719b5f25919c0e
skill: pay
version: "0.1.4"
catalog:
  kind: graph
  audience: operator
  visibility: public
  role: canonical
  execution: execute
  completion: provider_readback
  approval: required
  category: payments
input_definitions:
  payment_authority:
    type: object
    required: true
    description: Exact resource URL, currency and maximum approved by the parent; this never replaces
      native run authority.
    schema:
      additionalProperties: false
      required:
        - term_id
        - currency
        - max_amount_minor
        - resource_url
      properties:
        term_id:
          type: string
          minLength: 1
          maxLength: 256
        currency:
          type: string
          pattern: ^[A-Z]{3}$
        max_amount_minor:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        resource_url:
          type: string
          format: uri
          maxLength: 2048
connectors:
  wallet/evm:
    operations:
      - payment.x402
      - payment.x402.read
  link:
    operations:
      - payment.mpp
      - spend.request
      - spend.read
runners:
  pay:
    default: true
    description: Pay one exact resource using the explicitly selected held method and require its
      confirmed payment evidence.
    inputs:
      connector:
        type: string
        required: true
        description: Held buyer method; merchant app credentials do not authorize buyer spending.
        schema:
          enum:
            - wallet/evm
            - link
      request:
        type: json
        required: true
        description: For wallet/evm use its payment_signal; for Link use payment.mpp public input_schema.
          Inspect the selected connector. Supply public references and terms only, never
          credentials.
      parent_payment_authority:
        definition: payment_authority
      idempotency_seed:
        type: string
        required: true
        description: Stable payment idempotency material
        schema:
          minLength: 16
          maxLength: 500
    examples:
      - connector: wallet/evm
        request:
          resource:
            url: https://merchant.example/v1/report
            method: POST
            body:
              offer_id: document-ocr
              input:
                artifact_uri: runx:artifact:document-1
            max_response_bytes: 26214400
          amount_minor: 25
          pay_to: "0x0000000000000000000000000000000000000002"
        parent_payment_authority:
          term_id: authority-test-1
          currency: USD
          max_amount_minor: 25
          resource_url: https://merchant.example/v1/report
        idempotency_seed: pay-test-payment-001
      - connector: link
        request:
          action: pay
          spend_request_id: sr_northstar
          amount_minor: 150
          currency: USD
          payment_method_id: pm_northstar
          network_id: profile_test_northstar
          resource_url: https://merchant.example/invoice/42
          challenge: Payment id="original-provider-challenge", method="stripe", intent="charge"
          method: POST
          body: '{"invoice_id":"invoice-42"}'
        parent_payment_authority:
          term_id: invoice-42
          currency: USD
          max_amount_minor: 150
          resource_url: https://merchant.example/invoice/42
        idempotency_seed: northstar-invoice-42
    result_from:
      - readback
      - link
    steps:
      - id: admit
        inputs:
          connector: $input.connector
          request: $input.request
          parent_payment_authority: $input.parent_payment_authority
        tool:
          module: payment.mjs
          export: admitPayment
          timeout_seconds: 5
        outputs:
          request: object
          resource_url: string
      - id: settle
        skill: .
        runner: settle
        inputs:
          payment_signal: $steps.admit.request
          parent_payment_authority: $input.parent_payment_authority
          idempotency_seed: $input.idempotency_seed
        when:
          value: $input.connector
          equals: wallet/evm
      - id: readback
        skill: .
        runner: readback
        inputs:
          resource_url: $steps.admit.resource_url
          payment_id: $steps.settle.provider_operation.result.payment_id
        when:
          value: $input.connector
          equals: wallet/evm
      - id: verify
        inputs:
          readback: $steps.readback.provider_operation.result
        tool:
          module: readback.mjs
          export: requireCompleteReadback
          timeout_seconds: 5
        outputs:
          verified: object
        when:
          value: $input.connector
          equals: wallet/evm
      - id: link
        when:
          value: $input.connector
          equals: link
        operation: link/payment.mpp
        input: $steps.admit.request
        idempotency_key: $input.idempotency_seed
        approval:
          type: mpp_payment
          reason: Approve paying this exact resource with the original approved Link spend request.
        result_fields:
          - spend_request_id
          - amount_minor
          - currency
          - status
          - payment_method_id
          - network_id
          - transaction_id
          - payment_outcome
          - paid_amount_minor
          - paid_currency
          - resource_binding
        expected_result:
          status: settled
  settle:
    description: Pay one requirement once, for a durable caller that reads it back later with readback.
    inputs:
      payment_signal:
        type: json
        required: true
        description: Exact payment_signal from wallet/evm payment.x402 input_schema; inspect the owning
          connector. Include the original resource, amount and optional payee constraint, never
          wallet credentials.
      parent_payment_authority:
        definition: payment_authority
      idempotency_seed:
        type: string
        required: true
        description: Stable payment idempotency material
        schema:
          minLength: 16
          maxLength: 500
    examples:
      - payment_signal:
          resource:
            url: https://merchant.example/v1/report
            method: POST
            body:
              offer_id: document-ocr
              input:
                artifact_uri: runx:artifact:document-1
            max_response_bytes: 26214400
          amount_minor: 25
          pay_to: "0x0000000000000000000000000000000000000002"
        parent_payment_authority:
          term_id: document-ocr-purchase-1
          currency: USD
          max_amount_minor: 25
          resource_url: https://merchant.example/v1/report
        idempotency_seed: document-ocr-purchase-0001
    result_from:
      - pay
    steps:
      - id: pay
        operation: wallet/evm/payment.x402
        idempotency_key: $input.idempotency_seed
        approval:
          reason: Approve paying this exact x402 challenge.
          type: x402_payment
        amount:
          units: $input.payment_signal.amount_minor
          unit: $input.parent_payment_authority.currency
        result_fields:
          - payment_id
          - challenge_id
          - amount_minor
          - currency
          - status
          - transaction
          - network
          - payer
          - pay_to
          - purchase_id
          - payment_required_digest
          - payment_response_digest
        input:
          payment_signal: $input.payment_signal
          parent_payment_authority: $input.parent_payment_authority
  readback:
    description: Observe, once, a payment already made and the resource it paid for.
    inputs:
      resource_url:
        type: string
        required: true
        description: Exact HTTPS resource URL used for settlement.
        schema:
          format: uri
          maxLength: 2048
      payment_id:
        type: string
        required: true
        description: Durable payment reference returned by the settle runner.
        schema:
          minLength: 1
          maxLength: 300
    result_from:
      - readback
    steps:
      - id: prepare
        inputs:
          payment_id: $input.payment_id
          resource_url: $input.resource_url
        tool:
          module: readback.mjs
          export: prepareReadback
          timeout_seconds: 5
        outputs:
          readback_request: object
          expected_result: object
      - id: readback
        operation: wallet/evm/payment.x402.read
        result_fields:
          - payment_id
          - challenge_id
          - amount_minor
          - currency
          - status
          - transaction
          - network
          - payer
          - pay_to
          - purchase_id
          - payment_required_digest
          - payment_response_digest
          - resource_status
          - resource_result
          - readback_status
        optional_result_fields:
          - resource_state
          - finality
          - block_number
        ephemeral_result_paths:
          - /resource_result/resource_access
        input: $steps.prepare.readback_request
        expected_result: $steps.prepare.expected_result
  authorize:
    description: Ask Link for one exact one-time spending authorization and return its approval
      status/link. This does not pay a merchant.
    inputs:
      request:
        type: json
        required: true
        description: "Exact link/spend.request input_schema: original resource URL, method, body, MPP
          challenge, one-time amount/currency, method, merchant network and purpose. The connector
          stores a provider-owned binding; wallet approval is not payment."
      idempotency_seed:
        type: string
        required: true
        description: Stable payment idempotency material
        schema:
          minLength: 16
          maxLength: 500
    result_from:
      - request
    steps:
      - id: request
        operation: link/spend.request
        input: $input.request
        idempotency_key: $input.idempotency_seed
        approval:
          type: wallet_authorization
          reason: Approve requesting this exact one-time wallet authorization.
        result_fields:
          - spend_request_id
          - amount_minor
          - currency
          - status
          - payment_method_id
          - network_id
          - resource_binding
        optional_result_fields:
          - approval_url
          - expires_at
harness:
  files:
    - fixtures/support/composed.graph
  cases: []

Published package and test evidence.

This exact version passed its recorded harness run: 5 checks passed · 0 failed.

Test result

Harness resultPassed
Tested version0.1.4
Recorded result5 checks passed · 0 failed
Result sourceRun by the Runx registry at publication
Suiterunx-harness
Test recorded
Test recordOpen the recorded run
Inspect receipt referencessha256:7008eca7a4545ceba6bb58b7572cdf14f48183fd3bc036aa783038a14b844763sha256:e7f0e1ae6480f2274f9ef0529c957a50e8941a7409d9d7997a0cddea3fe3962bsha256:bd012338fba6abedadeb80539170c5f0f8693f35dffe22d5836e5465cb748dd3sha256:8e0d598cbab3ca669a12876e1147128ba8bdf1ff59bec0319e9ea0e061936ac9sha256:70b9868827680e54c34e557d106a5daac741a82cb41ed3cfeef397a465800f2e

Package identity

Published revision0.1.4
Content digestsha256:ebb0e47a50c2b730b5008ad8b0adfd9a720a0bccf4de17d5195925b16c6eaf2e
SKILL.md digestsha256:57c46274d978612d1f8a2051e853b222b044140565e81051f64e470a5ee249bd
Execution profile digestsha256:ea7e1e8759a31416c81a2f6c97f50c5f0077576bee8ab150fe719b5f25919c0e
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 25 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.1.4ViewingContent digest sha256:ebb0e47a50c2b730b5008ad8b0adfd9a720a0bccf4de17d5195925b16c6eaf2e
  2. sha-e0878a3da267Content digest sha256:e0878a3da2673cf12298443b85c886cf9bd3434a1543cee11d111e9cb8ea1138
  3. sha-56d0719d70e1Content digest sha256:9e22b8c12b620ad33f4eedf8b1f0817b44ef854c4bce6ec9f07c2506844eebd2