Commerce

Payment-processor fee and net received for Stripe, PayPal, and Square at their verified 2026 standard US rates — or reverse gross-up (what to charge to net a target).

Payment-processor fee and net received for Stripe, PayPal, and Square at their verified 2026 standard US rates — or reverse gross-up (what to charge to net a target).

Payment: x402 ($0.02 USDC on eip155:8453). Call unpaid to receive an HTTP 402 with requirements, then retry with the PAYMENT-SIGNATURE header. Method: net: fee = amount*pct/100 + fixed; gross-up: charge = (target + fixed)/(1 - pct/100)

post/v1/commerce/processor-fee

Request

  • Base URL: (relative, and it does not resolve against the document’s source URL)
  • URL: /v1/commerce/processor-fee
  • Auth: none declared

Request body

processor'stripe' | 'paypal-checkout' | 'paypal-standard' | 'square-online' | 'square-inperson' | 'square-keyed'
amountnumber required
mode'net' | 'gross-up'

Response

Verified result + provenance (formula, sources, reproducible SHA-256 hash).

Changes

No recorded changes to this operation across all 1 revision of this API.