Charge
Collect one exact payment on your selected Stripe, PayPal or x402 merchant account, with native approval and independent readback.
Overview
Use charge when you are the seller and need to collect a payment. Choose the
merchant connector explicitly: Stripe collects an existing payment method, PayPal
captures a buyer-approved order, and Coinbase CDP settles the buyer's x402
authorization against its original quote. The selected connector instance fixes
the account; an unavailable account never selects another method.
Run runx connector inspect <connector> to read the exact operation input schema.
The default runner takes that public request, the connector name and a stable
idempotency_seed. Its examples show each supported method. Provider-specific
arguments stay with their owning connector, rather than becoming another payment
API in the skill. Never supply card data, SPTs, wallet keys, API keys or bearer
credentials. Credentials belong to the connector's configured custody.
In the manual
Runners
chargecheckoutquote
Declared by its execution profile. Read the profile
SKILL.md
Charge
Use charge when you are the seller and need to collect a payment. Choose the
merchant connector explicitly: Stripe collects an existing payment method, PayPal
captures a buyer-approved order, and Coinbase CDP settles the buyer's x402
authorization against its original quote. The selected connector instance fixes
the account; an unavailable account never selects another method.
Run runx connector inspect <connector> to read the exact operation input schema.
The default runner takes that public request, the connector name and a stable
idempotency_seed. Its examples show each supported method. Provider-specific
arguments stay with their owning connector, rather than becoming another payment
API in the skill. Never supply card data, SPTs, wallet keys, API keys or bearer
credentials. Credentials belong to the connector's configured custody.
Collect and confirm
Supply the exact account, amount, currency, reference and existing payment
identifiers. The native operation owns admission, human approval, the provider
request key, acknowledgement custody and readback. Stripe must independently
return succeeded with the approved amount received; PayPal must independently
return COMPLETED for the original merchant, order, amount and currency. The
x402 lane retains its separate read of the original settled payment and returns
the original quote, resource and settlement evidence. Incoming collection does
not consume an outgoing spending allowance.
The result remains the selected provider's bounded native operation packet. Release the resource only when the exact payment is confirmed. A prepared order, buyer approval, submitted request, HTTP success or sealed plan does not establish settlement. Pending, refused, mismatched or unknown outcomes stop that release.
Prepare a buyer's payment
quote retains the x402 requirements for one exact resource and price; it takes
no payment. checkout creates and independently reads one PayPal order and
returns its buyer-action links. Creation is a provider mutation, not buyer
approval or capture. Continue the approved order through the default PayPal
collection lane with its original order identity and terms. Stripe collection
requires an existing permitted payment method; this skill does not collect card
details or impersonate the buyer. MPP purchase collection belongs to the
existing purchase boundary and is not claimed as a standalone merchant lane here.
Continue safely
Stop on a missing binding, changed account or terms, denied approval, or uncertain readback. Resume or inspect the original native effect and payment identifiers; retain the original request key. A response lost after submission is not a reason to create another checkout, authorization, payment method or charge.
A buyer uses pay; invoice validation belongs to invoice-pay. To reverse a
confirmed collection, use refund with its original processor, account, currency
and payment reference. Those are separate governed actions and are not performed
by this skill.
Published execution profile
The execution profile published with 0.7.3, shown as its exact bytes.
| Runners |
|
|---|---|
| Profile digest | sha256:7efa4b92dad9baaf029eda4a2f4bd34fb4bd33b6de84e166808b44fd0da7f405 |
skill: charge
version: "0.7.3"
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
paypal:
operations:
- payment.paypal
- payment.paypal.order.create
stripe:
operations:
- payment.stripe
runners:
charge:
description: Collect one exact payment on the explicitly selected merchant connector, requiring
native approval and independently checked provider evidence.
default: true
inputs:
connector:
type: string
required: true
description: The merchant connector whose selected account receives the payment.
schema:
enum:
- stripe
- paypal
- coinbase/cdp
request:
type: json
required: true
description: Exact public arguments of the selected connector operation. Run `runx connector inspect
<connector>` for its owning input_schema. Supply identifiers and terms, never provider
keys, card data, SPTs or bearer credentials.
idempotency_seed:
type: string
required: true
description: Stable caller-owned key for this unchanged payment or checkout.
schema:
minLength: 16
maxLength: 200
examples:
- connector: stripe
request:
account_id: acct_northstar
amount_minor: 150
currency: usd
payment_method_id: pm_northstar
reference: invoice-42
idempotency_seed: northstar-invoice-42
- connector: paypal
request:
api_host: api-m.sandbox.paypal.com
account_id: YXZY75W2GKDQE
order_id: ORDER42
amount_decimal: "1.50"
currency: USD
precision: 2
reference: invoice-42
idempotency_seed: northstar-invoice-42
- connector: coinbase/cdp
request:
resource: https://seller.example/v1/reports/launch
amount_minor: 125
currency: USD
payment_payload:
x402Version: 2
accepted:
scheme: exact
network: eip155:8453
amount: "1250000"
payTo: "0x0000000000000000000000000000000000000002"
asset: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
maxTimeoutSeconds: 300
resource:
url: https://seller.example/v1/reports/launch
payload:
signature: 0xsigned
authorization:
from: "0x0000000000000000000000000000000000000001"
to: "0x0000000000000000000000000000000000000002"
value: "1250000"
payment_requirements:
scheme: exact
network: eip155:8453
amount: "1250000"
payTo: "0x0000000000000000000000000000000000000002"
asset: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
maxTimeoutSeconds: 300
request_binding_digest: sha256:3333333333333333333333333333333333333333333333333333333333333333
idempotency_seed: northstar-resource-42
result_from:
- stripe
- paypal
- readback
steps:
- id: stripe
when:
value: $input.connector
equals: stripe
operation: stripe/payment.stripe
input: $input.request
idempotency_key: $input.idempotency_seed
approval:
reason: Approve collecting this exact payment on the selected merchant account.
type: payment_charge
result_fields:
- payment_id
- amount_minor
- amount_received
- currency
- status
- charge_id
- reference
expected_result:
status: succeeded
- id: paypal
when:
value: $input.connector
equals: paypal
operation: paypal/payment.paypal
input: $input.request
idempotency_key: $input.idempotency_seed
approval:
reason: Approve capturing this exact buyer-approved order on the selected merchant account.
type: payment_charge
result_fields:
- payment_id
- order_id
- account_id
- amount_decimal
- currency
- status
- reference
expected_result:
status: COMPLETED
- 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_id
- resource
- amount_minor
- currency
- status
- settlement_id
- payer
- pay_to
- network
- asset
- settled_at
input: $input.request
when:
value: $input.connector
equals: coinbase/cdp
expected_result:
status: settled
resource: $input.request.resource
amount_minor: $input.request.amount_minor
currency: $input.request.currency
- id: readback
operation: coinbase/cdp/payment.x402.merchant.read
result_fields:
- payment_id
- resource
- amount_minor
- currency
- status
- settlement_id
- payer
- pay_to
- network
- asset
- settled_at
input:
resource: $input.request.resource
payment_id: $steps.settle.provider_operation.result.payment_id
expected_result:
payment_id: $steps.settle.provider_operation.result.payment_id
resource: $input.request.resource
amount_minor: $input.request.amount_minor
currency: $input.request.currency
status: settled
when:
value: $input.connector
equals: coinbase/cdp
quote:
description: Quote the x402 payment a buyer must make for a resource, before any payment is taken.
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
examples:
- resource: https://seller.example/v1/reports/launch
amount_minor: 125
currency: USD
description: Launch report
checkout:
description: Create and independently read one PayPal checkout order. The returned links ask the
buyer to approve; no payment has been captured.
inputs:
request:
type: json
required: true
description: Exact public arguments of paypal/payment.paypal.order.create from native connector
inspection; includes merchant, decimal amount, currency, precision, reference and
return/cancel URLs.
idempotency_seed:
type: string
required: true
description: Stable caller-owned key for this unchanged payment or checkout.
schema:
minLength: 16
maxLength: 200
examples:
- request:
api_host: api-m.sandbox.paypal.com
account_id: YXZY75W2GKDQE
amount_decimal: "1.50"
currency: USD
precision: 2
reference: invoice-42
return_url: https://northstar.example/payments/return
cancel_url: https://northstar.example/payments/cancel
idempotency_seed: northstar-checkout-42
result_from:
- checkout
steps:
- id: checkout
operation: paypal/payment.paypal.order.create
input: $input.request
idempotency_key: $input.idempotency_seed
result_fields:
- order_id
- order_status
- intent
- account_id
- amount_decimal
- currency
- reference
- links
harness:
files:
- fixtures/support/composed.graph
cases: []
Published package and test evidence.
This exact version passed its recorded harness run: 8 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | 0.7.3 |
| Recorded result | 8 checks passed · 0 failed |
| Result source | Run by the Runx registry at publication |
| Suite | runx-harness |
| Test recorded | |
| Test record | Open the recorded run |
Inspect receipt references
sha256:9297c94a0a2587a43b191852da3a7e8f3581419334a41d50c7fbb8781797f3b2sha256:75d3094d22de3c1766266ab88497faca7e49f8a863570793c73ba557d57016edsha256:aca0d3e4daff2f1a62dd9c485b49a03f2f2da3eab13b5be29177083e32d7172csha256:abac2800a7c82701aedfba303d4a6fb0867c1f1fb907d3bedbdfb98d240df01bsha256:a2455f5a1faec5853747d81d828a53a1873178eebae5b3eca637f42d62f89a5esha256:52490393f1cb8de29579ad95ee7aeedb7f2a61609940bf05d881d3e918b06b7dsha256:57a5d092cecc1877ce55af3198f7dcf7ca3aa2702041e10d2ec2c1b941658fd6sha256:c894a8c1f630edbf6bb5e6aeb27e355708426235e804e0e1bd5ecfe4d3d578ebPackage identity
| Published revision | 0.7.3 |
|---|---|
| Content digest | sha256:47545fd7f131a7fe422ae7a6a0364f0cc85a9502e482caf247798f68dc714bc0 |
| SKILL.md digest | sha256:f7f7e4d1624bf0044e0ced6a0de09537fcc3ae9bfa58c816fe280433c7b1aa8f |
| Execution profile digest | sha256:7efa4b92dad9baaf029eda4a2f4bd34fb4bd33b6de84e166808b44fd0da7f405 |
| 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.3ViewingContent digest sha256:47545fd7f131a7fe422ae7a6a0364f0cc85a9502e482caf247798f68dc714bc0sha-7b45a583878bContent digest sha256:dc6ccb907490b5f258d249dbcf8c73cbb5741269fff917827225ac5524072242