MPP Payments

MPPFi enables AI agents to execute financial transactions autonomously using the Machine Payments Protocol (MPP) on Solana blockchain. All payments are cryptographically signed, policy-enforced, and settled on-chain with sub-second finality.

Payment Flow Architecture

Standard Payment Lifecycle

1. Payment Initiation (Agent)
   └─> Policy Validation (MPPFi)
       └─> Transaction Construction (Solana)
           └─> Cryptographic Signing (Agent HSM)
               └─> On-Chain Settlement (Solana Network)
                   └─> Confirmation & Receipt (MPP Protocol)
                       └─> Webhook Notification (Real-time)

Machine Payments Protocol (MPP)

MPP is the standardized protocol for agent-to-merchant payments:

  • Discovery: Merchants expose MPP endpoints for agent discovery

  • Negotiation: Agents evaluate pricing, terms, and payment methods

  • Authorization: Cryptographic signatures prove agent identity

  • Settlement: On-chain transfers with atomic guarantees

  • Verification: Blockchain proofs provide immutable receipts

Payment Types

1. Direct Transfers

Send funds directly to another Solana address.

Response:

2. MPP Service Payments

Pay for services using Machine Payments Protocol.

MPP Payment Flow:

  1. Discovery: Agent queries merchant's MPP manifest

  2. Quotation: Merchant provides real-time pricing

  3. Authorization: Agent signs payment with private key

  4. Settlement: Funds transferred on Solana blockchain

  5. Access: Merchant grants service token upon confirmation

3. Recurring Payments

Schedule automated payments with on-chain enforcement.

Recurring Payment Features:

  • Smart Contract Enforcement: Payments executed by Solana program

  • Predictable Scheduling: Precise timing with blockchain timestamps

  • Policy Compliance: Each payment validates against spending limits

  • Atomic Cancellation: Cancel anytime with on-chain guarantee

  • Payment History: Complete audit trail on blockchain

4. Batch Payments

Execute multiple payments atomically in a single transaction.

Batch Payment Benefits:

  • Atomic Execution: All payments succeed or all fail together

  • Cost Efficiency: Single transaction fee for multiple transfers

  • Parallel Processing: Leverages Solana's parallel execution

  • Simplified Accounting: One transaction ID for entire batch

Payment States

State Descriptions

State
Description
Actions Available

pending

Payment created, awaiting policy validation

Cancel

processing

Policy approved, transaction submitted to blockchain

Monitor

completed

Transaction confirmed on-chain

Refund (if supported)

failed

Transaction rejected or blockchain failure

Retry, Cancel

cancelled

Payment cancelled before processing

None

Policy Enforcement

All payments are validated against agent spending policies before execution.

Policy Check Example

Policy Validations:

  • Amount Limits: Per-transaction, daily, weekly, monthly caps

  • Merchant Allowlists: Approved recipient addresses only

  • Category Restrictions: Spending limits by service category

  • Time Windows: Allowed hours/days for transactions

  • Velocity Checks: Maximum transactions per time period

  • Balance Requirements: Minimum balance thresholds

Payment Methods

Supported Assets

MPPFi supports multiple digital assets on Solana:

Asset
Type
Network
Use Case

USDC

Stablecoin

Solana SPL

Primary payment currency

USDT

Stablecoin

Solana SPL

Alternative stablecoin

SOL

Native

Solana

Network fees, native payments

EURC

Stablecoin

Solana SPL

Euro-denominated payments

Custom SPL

Token

Solana SPL

Project-specific tokens

Currency Conversion

Transaction Fees

Fee Structure

Platform Fees:

  • 0.2% per transaction (minimum $0.10)

  • Volume discounts available for high-throughput agents

  • Free for intra-MPPFi transfers

Network Fees (Solana):

  • 0.000005 SOL per transaction ($0.001)

  • Paid from agent's SOL balance

  • Automatic SOL top-up available

Fee Estimation

Payment Receipts

Every payment includes a cryptographically verifiable receipt.

Receipt Contents:

  • Payment Details: Amount, currency, participants

  • Blockchain Proof: Transaction hash, block number, timestamp

  • Cryptographic Signature: Agent's signature over payment data

  • Policy Attestation: Hash of enforced spending policy

  • Verification URL: Direct link to blockchain explorer

Refunds and Reversals

Initiating Refunds

Refund Process:

  1. Agent or merchant initiates refund request

  2. Counterparty approves (if required by merchant policy)

  3. New blockchain transaction created for reverse transfer

  4. Funds returned to agent's account

  5. Original payment marked as refunded

Important Notes:

  • Refunds are new transactions, not blockchain reversals

  • Network fees apply to refund transactions

  • Partial refunds supported

  • Refund history linked to original payment

Payment Security

Cryptographic Verification

Every payment is signed with the agent's private key:

Security Features

  • HSM Key Storage: Private keys never leave hardware security modules

  • Non-Replayability: Nonces prevent transaction replay attacks

  • Time-Limited Signatures: Signatures expire after 60 seconds

  • Multi-Signature Support: Optional co-signing for high-value payments

  • Blockchain Finality: Irreversible confirmation in <1 second

  • Policy Pre-Flight: All payments validated before signing

Monitoring and Analytics

Real-Time Payment Tracking

Payment Analytics

Error Handling

Best Practices

1. Idempotency

Use idempotency keys to prevent duplicate payments:

2. Webhook Confirmations

Don't rely solely on API responses for confirmation:

3. Balance Management

Monitor balances before initiating payments:

4. Retry Logic

Implement exponential backoff for transient failures:

5. Transaction Receipts

Always store blockchain signatures for audit trails:

Rate Limits

Payment endpoints have the following rate limits:

Endpoint
Limit
Window

Create payment

100 requests

1 minute

Batch payments

20 requests

1 minute

List payments

300 requests

1 minute

Get payment

1000 requests

1 minute

Note: Solana blockchain can process 65,000 transactions per second, so blockchain throughput is not a bottleneck.

Next Steps

Last updated

Was this helpful?