PBay Marketplace

Peer-to-peer Cardano marketplace for WordPress. Products as NFTs, blockchain payments, tamper-proof receipts, zero middlemen.

PBay is a free, lightweight WordPress plugin that brings full Cardano blockchain ecommerce to any WordPress site. It replaces traditional payment processors entirely, enabling direct peer-to-peer transactions between buyers and merchants using ADA. Every product is represented as an on-chain NFT minted to the CIP-25 metadata standard, and every purchase generates a tamper-proof receipt that lives permanently on the Cardano blockchain. There are no subscription fees, no transaction middlemen, and no revenue sharing — just instant payments and instant payouts, with cryptographic proof of every sale.

Built entirely in pure PHP with no external runtime dependencies, PBay handles server-side NFT minting using Ed25519 signing and CBOR encoding, dual-output atomic transactions, IPFS image storage, and real-time USD-to-ADA conversion. Buyers connect any CIP-30 compatible Cardano wallet, browse a responsive product catalog, and complete purchases without ever creating an account or handing over a password. The plugin constructs the payment transaction, the buyer signs it in their own wallet extension, and both the merchant payment and buyer receipt NFT are delivered in a single atomic transaction.

For store owners, PBay provides a complete admin dashboard with a guided setup wizard, drag-and-drop product creation, category-based policy management, inventory tracking, order statistics, and multiple built-in theme presets. Policy wallet private keys are secured with AES-256-CBC encryption at rest and only decrypted during signing operations. The plugin integrates with CardanoPress for wallet connectivity, Ada Anvil for transaction building and submission, and optionally Blockfrost for on-chain queries and Pinata for IPFS pinning.

Whether you are selling digital goods, physical products, or tokenized assets, PBay turns your WordPress site into a fully functional Cardano marketplace with no platform lock-in. It is ideal for independent merchants, NFT creators, and anyone who wants to accept blockchain payments without the complexity of building a custom storefront. Every transaction is verifiable on-chain, every receipt is immutable, and every sale settles directly to the merchant’s wallet.

Trust Model

Hybrid

This plugin uses a hybrid custody model. The server holds an encrypted policy wallet for co-signing, while the user’s browser wallet provides the second signature. Neither party can act alone.

Installation

Install Steps
1. Download the ZIP from the Download button above
2. Go to Plugins > Add New > Upload Plugin
3. Upload the ZIP file and click Install Now
4. Activate the plugin
5. Configure your marketplace settings including wallet address and CoinGecko price feed
6. Start listing products as NFT-backed items

Documentation

PBay

Free, lightweight ecommerce for WordPress — powered by Cardano under the hood. Instant payments, instant payouts, cryptographic proof of every sale. No WooCommerce, no Stripe, no payment processor, no middleman.

PBay is a full marketplace plugin built on an ultra-light stack: WordPress + PHP + the Cardano blockchain. Sellers list products, buyers pay in ADA straight from their wallet, and the money lands in the seller's wallet in seconds — not days. Every product is backed by an on-chain NFT. Every purchase generates a tamper-proof receipt delivered directly to the buyer's wallet. No accounts, no passwords, no chargebacks.


What Makes This Different

Traditional ecommerce plugins sit on top of payment processors, subscription fees, and processing delays. PBay cuts all of that out:

  • Instant settlement. Payments confirm on the Cardano network in seconds. No 3-5 business day holds, no rolling reserves, no processor taking a cut.
  • Zero platform fees. No monthly subscription, no per-transaction percentage, no premium tiers. The plugin is free. Network fees are fractions of a cent.
  • Tamper-proof receipts. Every purchase mints a cryptographic receipt delivered to the buyer's wallet — proof of purchase that can't be faked, altered, or lost.
  • No accounts needed. Buyers connect a Cardano wallet to browse, buy, and track orders. No signups, no passwords, no email harvesting.
  • Products backed by NFTs. Each listing is a CIP-25 NFT with metadata, images pinned to IPFS, and custom attributes — all verifiable on-chain.

The entire crypto stack runs in pure PHP. No Node.js, no Python, no external binaries. If your server runs WordPress, it runs PBay.


Key Features

  • Server-side NFT minting - Ed25519 signing, CBOR encoding, and transaction submission happen entirely in PHP via encrypted policy wallets
  • CIP-25 metadata with 64-character chunking, IPFS image pinning, and dynamic product attributes embedded on-chain
  • Dual-output payments - merchant receives ADA payment + buyer receives 1 ADA receipt in a single atomic transaction
  • Automatic NFT delivery - after payment confirmation, the product NFT transfers from the policy wallet to the buyer's wallet server-side
  • CIP-30 wallet integration - uses CardanoPress for site-wide wallet connection (Nami, Eternl, Typhon, Lace, etc.)
  • Gallery images on IPFS - up to 4 product images (1 main + 3 gallery) auto-pinned to IPFS via Pinata during minting
  • Category-based policies - each product category auto-generates a Cardano native script policy with time-lock expiration
  • Real-time USD/ADA conversion - CoinGecko price feed with 5-minute caching, exchange rate locked at purchase time
  • Wallet-based order tracking - buyers connect their wallet on the orders page to see rich order cards with status, tracking numbers, and on-chain TX links
  • Admin order management - status updates, shipping tracking, CSV export, and manual NFT delivery fallback button
  • Frontend theme customizer - 4 presets (Glass Dark, Clean Light, Warm Dark, Midnight), custom color dropdowns for cards/text/accent/buttons, live preview, CSS variable injection
  • Store wallet as payout - optionally route payments directly to the policy wallet, eliminating the need for a separate merchant address
  • Drag-and-drop image upload - drop images directly onto the upload area in the listing wizard with visual feedback and instant upload
  • Blockfrost integration - on-chain address lookups, wallet balance queries, and NFT asset discovery via Blockfrost API
  • Zero external dependencies for crypto - Ed25519, BIP39, CBOR, Bech32 all implemented in pure PHP

Architecture Overview

                    SELLER (WordPress Admin)
                            |
          +-----------------+-----------------+
          |                 |                 |
    Create Listing    Mint NFT (PHP)    Manage Orders
          |                 |                 |
          v                 v                 v
    [WP Database]    [Anvil API]       [Order Dashboard]
          |           Build TX              |
          |           Sign (Ed25519)        |
          |           Submit                |
          |                 |               |
          |                 v               |
          |          [Cardano Network]      |
          |                 |               |
          +-----------------+---------------+
                            |
                    BUYER (Frontend)
                            |
          +-----------------+-----------------+
          |                 |                 |
    Browse Catalog    Pay with ADA     View Orders
    (Shortcodes)     (CIP-30 Wallet)  (Wallet Connect)
          |                 |                 |
          v                 v                 v
    [Product Page]   [Checkout Modal]  [Order History]
                     Build TX (Anvil)   NFT Delivery TX
                     Sign (Wallet)      Tracking Info
                     Submit             Explorer Links
                     Create Order
                     Deliver NFT

Core Components

Component Purpose
CardanoWalletPHP BIP39 mnemonic generation, CIP-1852 key derivation, Bech32 address encoding
CardanoTransactionSignerPHP CBOR transaction parsing, Ed25519 signing, witness set construction
Ed25519Compat / Ed25519Pure Pure PHP Ed25519 with triple fallback (native sodium / FFI / BCMath)
AnvilAPI Transaction building, policy generation, address conversion, TX submission
PinataAPI IPFS image uploads via Pinata (CIDv0, auto-pin on mint)
MetadataHelper CIP-25 metadata construction with 64-char chunking for on-chain compliance
EncryptionHelper AES-256-CBC encryption of wallet keys using WordPress security salts
PriceHelper CoinGecko ADA/USD price feed with transient caching
BlockfrostAPI On-chain queries: address balances, asset metadata, UTxO lookups

Frequently Asked Questions

How does PBay handle payments without a middleman?
Payments go directly from buyer to seller on the Cardano blockchain. PBay constructs the transaction, the buyer signs it with their wallet, and the seller receives ADA directly.
What are NFT receipts?
When a purchase completes, an NFT receipt is minted on-chain. This provides tamper-proof evidence of the transaction that can be verified by anyone.
Does this require Node.js or Python?
No. The entire crypto stack is pure PHP. No external runtimes, binaries, or WASM libraries needed.