Skip to content

Add x402 and MPP merchant checkouts for delegated USDC #142

Description

@GabrielePicco

Task

Add API-only merchant checkouts for selling API access, credits and other products with already-delegated USDC. Support x402 v2 and MPP through custom MagicBlock payment methods while keeping product accounting and fulfillment in the merchant service.

Done When

  • Merchants can register and rotate API credentials using wallet signatures, create idempotent checkouts, and publish reusable payment links.
  • Separate x402 and MPP routes share authenticated payment status and bind credentials to the exact checkout terms.
  • Settlement validates a zero-fee SPL transfer between accounts delegated to the same validator, persists the signed transaction before broadcast, and reconciles retries without creating another charge.
  • TEE status tracking uses a dedicated service identity without requiring buyer balance access; unknown outcomes remain pending.
  • Worker state bindings, configuration, client integration, fulfillment responsibilities and live acceptance requirements are documented. Existing SPL routes remain available without checkout configuration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions