npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@financedistrict/saleor-prism-payment

v0.7.2

Published

Stablecoin payment handler for Saleor agentic commerce. Enables AI agents to pay with USDC via Finance District Prism and x402/EIP-3009 signed transfers.

Readme

@financedistrict/saleor-prism-payment

Stablecoin payment handler for Saleor Agentic Commerce. Enables AI agents to pay with USDC and other stablecoins via Finance District Prism using x402/EIP-3009 signed transfers.

Zero runtime dependencies.

Installation

npm install @financedistrict/saleor-agentic-commerce-core @financedistrict/saleor-prism-payment

Peer Dependencies

  • @financedistrict/saleor-agentic-commerce-core ^0.2.0

Usage

With the Next.js package (recommended)

// src/lib/agentic-commerce.ts
import { createAgenticCommerce } from "@financedistrict/saleor-agentic-commerce-nextjs"
import { PrismPaymentHandler } from "@financedistrict/saleor-prism-payment"

const agenticCommerce = createAgenticCommerce({
  saleorApiUrl: process.env.NEXT_PUBLIC_SALEOR_API_URL!,
  saleorAuthToken: process.env.SALEOR_AGENTIC_AUTH_TOKEN!,
  storefrontUrl: process.env.NEXT_PUBLIC_STOREFRONT_URL!,
  storeName: process.env.SALEOR_AGENTIC_STORE_NAME!,
  paymentHandlers: [
    new PrismPaymentHandler({
      apiUrl: process.env.PRISM_API_URL,
      apiKey: process.env.PRISM_API_KEY,
    }),
  ],
})

Standalone

import { PrismPaymentHandler } from "@financedistrict/saleor-prism-payment"

const prism = new PrismPaymentHandler({
  apiUrl: "https://prism-gw.fd.xyz",
  apiKey: "your-api-key",
})

// Discovery — what payment methods this handler supports
const ucpHandlers = prism.getUcpDiscoveryHandlers()
const acpHandlers = prism.getAcpDiscoveryHandlers()

// Prepare — create a payment session for a checkout
const prepared = await prism.prepareCheckoutPayment({
  checkoutId: "checkout_123",
  amount: 5000,      // $50.00 in minor units
  currency: "usd",
  metadata: {},
})

// Settle — submit the agent's signed payment credential
const result = await prism.settlePayment({
  checkoutId: "checkout_123",
  handlerId: "xyz.fd.prism_payment",
  amount: 5000,
  currency: "usd",
  credential: { type: "x402", token: "signed-eip3009-authorization" },
  metadata: {},
})

Configuration

new PrismPaymentHandler({
  apiUrl?: string,   // Prism Gateway URL (default: PRISM_API_URL env or "https://prism-gw.fd.xyz")
  apiKey?: string,   // Prism API key (default: PRISM_API_KEY env)
})

How it works

  1. Discovery — The handler registers itself in UCP/ACP profiles with id: "xyz.fd.prism_payment", advertising x402 stablecoin payment support
  2. Prepare — When an agent selects Prism as their payment method, the handler calls the Prism Gateway to create a payment session and stores the session config in Saleor's checkout metadata
  3. Settle — When the agent submits a signed EIP-3009 authorization, the handler forwards it to the Prism Gateway for on-chain settlement

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | PRISM_API_URL | Prism Gateway base URL | https://prism-gw.fd.xyz | | PRISM_API_KEY | Prism API key for authentication | — |

Exports

| Export | Type | Description | |--------|------|-------------| | PrismPaymentHandler | class | Payment handler adapter for Prism | | PrismClient | class | Low-level Prism Gateway API client | | PRISM_HANDLER_ID | const | Handler identifier ("xyz.fd.prism_payment") | | PRISM_CHECKOUT_CONFIG_KEY | const | Metadata key for storing checkout config |

License

MIT