okx-agent-payments-protocol

Process payments via HTTP 402, MPP, and a2a-pay protocols.

3|2|Updated May 6, 2020
One-click install
npx skills add https://github.com/Dargon789/coinbase-ethereum-smartcontracts --skill okx-agent-payments-protocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-agent-payments-protocol
Source: https://github.com/Dargon789/coinbase-ethereum-smartcontracts/tree/main/.agents/skills/okx-agent-payments-protocol
Command: npx skills add https://github.com/Dargon789/coinbase-ethereum-smartcontracts --skill okx-agent-payments-protocol

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires onchainos, EVM, ERC-20, EIP-3009, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a unified payment dispatcher that handles HTTP 402, MPP, and a2a-pay protocols, simplifying the process of processing payments across various schemes and intents.

Core Features & Use Cases

  • HTTP 402 Detection and Routing: Automatically detects HTTP 402 responses and routes to the appropriate scheme/intent.
  • MPP Handling: Supports charge and session intents for machine payment protocols, enabling one-shot or multi-request payments.
  • a2a-pay Integration: Handles paymentId-based agent-to-agent links, no 402 required.
  • Use Case: Ideal for scenarios where payments need to be processed through different protocols and schemes, such as in e-commerce or digital content distribution.

Quick Start

To process a payment with the OKX Agent Payments Protocol, simply provide the paymentId or relevant details to the protocol dispatcher.

Frequently Asked Questions about okx-agent-payments-protocol

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle HTTP 402 payment responses across different protocols?

To handle HTTP 402 payment responses, you need a unified payment dispatcher that automatically detects the response and routes the transaction to the appropriate payment scheme and intent for processing.

What is the difference between charge and session intents in machine payment protocol (MPP)?

In machine payment protocol (MPP), the charge intent enables one-shot single payments, while the session intent handles multi-request payments, allowing continuous machine payment interactions across multiple requests.

Can I process agent-to-agent payments without an HTTP 402 response?

Yes, you can process agent-to-agent payments without an HTTP 402 response by using a2a-pay integration, which directly handles transactions through paymentId-based links between agents.

Do I need a specific EVM environment to process payments with ERC-20 tokens?

Yes, processing payments with ERC-20 tokens requires an EVM environment, specifically utilizing the EIP-3009 standard for transfers and local key signing or a TEE for cryptographic operations.

What is the best way to unify payment processing for e-commerce digital content distribution?

The best way to unify payment processing for digital distribution is implementing a single dispatcher that handles HTTP 402, MPP, and a2a-pay protocols, simplifying transactions across various schemes.

Why do I need local key signing or TEE when processing payments through MPP?

You need local key signing or a Trusted Execution Environment (TEE) to securely perform the cryptographic operations required to authorize and validate payments processed through MPP and a2a-pay protocols.