PayBoy

Easy onboarding to accept PYUSD for sellers, shops & platforms—built for Web2 devs & startups.

Visit Repo
PayBoy banner

About

Payboy — Stripe-simple onboarding for PYUSD

Payboy makes it dead-simple for Web2-native teams to accept PayPal USD (PYUSD) across three use cases:

Solo sellers (one merchant, one balance),

Shops (single brand with multiple staff/users), and

Multi-merchant marketplaces (many sellers under one platform).

Think “Stripe-like developer experience,” but for PYUSD and on-chain escrow—so startups can ship payments fast without becoming blockchain experts.

What it is (plain English)

Payboy is an integration layer + smart-contract escrow that lets you add PYUSD checkout in minutes. You get a lightweight SDK, REST APIs, and webhooks that feel familiar to any Web2 developer, while Payboy handles the crypto plumbing: wallets, chain selection, on-chain escrow, fee routing, and payouts to sellers.

Who it’s for

Solo creators & sellers who want a simple “Pay with PYUSD” button and auto-settlement.

Online stores (Next.js, Shopify custom app, etc.) that want drop-in checkout and staff roles.

Marketplaces & platforms that need multi-merchant onboarding, per-merchant balances, split fees, and escrow-style buyer protection.

Why it matters

Web2-simple DX: Add a button, call 2–3 endpoints, receive webhooks—done.

Buyer trust: Funds sit in on-chain escrow until delivery/confirmation.

Platform ready: Multi-merchant accounts, fee splits, and payout policies from day one.

Scales later: Start with PYUSD; keep the same integration as you add more chains/tokens.

Core features

Drop-in Checkout: Prebuilt UI component (<PayboyCheckout />) or a minimal REST flow (/payments/create, /payments/confirm, /webhooks).

Smart-contract escrow: Per-order escrows hold PYUSD until release conditions are met (delivery confirmation, dispute window, or admin override).

Multi-merchant architecture: A Marketplace Factory deploys a marketplace’s contract once; merchant vaults are created lazily on onboarding; each order opens its own escrow instance.

Fee routing: Configurable platform fee + merchant payout handled on-chain.

Wallets: Use embedded (custodial) seller wallets for zero-friction onboarding, or connect external wallets when ready.

Webhooks: Real-time events (payment.created, payment.confirmed, escrow.released, payout.sent, payout.failed) to sync your database and UI.

Environment presets: Test on Arbitrum Sepolia with a single toggle; mainnet configuration is a variable swap away.

Compliance-friendly surface: PYUSD (a regulated stablecoin) + clear audit trail via on-chain events and signed webhooks.

How it works (flows)

1) Solo Seller

Seller signs in → Payboy creates an embedded wallet and a merchant vault.

Your app calls POST /payments/create (amount, currency=PYUSD, metadata).

Buyer pays → funds land in order escrow.

You confirm delivery (POST /orders/:id/deliver) → escrow releases to the seller vault.

Seller taps Payout → on-chain transfer to their wallet (or off-ramp later).

  • Shop (single brand, multiple users)

Same as Solo, plus roles (owner/admin/staff), store-level reports, and restricted API keys for staff apps. All orders still settle to the shop’s merchant vault.

  • Marketplace (multi-merchant)

Platform registers → Marketplace contract deployed by Factory.

Each seller onboards → merchant vault created under the marketplace.

Checkout can do split fees: escrow later releases platform_fee to platform + net_amount to merchant.

Disputes & delivery windows are enforced via marketplace policy (time-locks + admin resolution hooks).

Developer experience

SDK: @payboy/sdk for Next.js/React (hook + component) or vanilla JS.

REST + Webhooks: Familiar Web2 patterns; sign all webhooks, verify with shared secret.

Helpers: chain.ts and token.ts simplify chain IDs, token addresses, decimals, and formatting.

Minimal setup: PAYBOY_API_KEY, WEBHOOK_SECRET, CHAIN_ID. Optional: EMBEDDED_WALLET_PROVIDER.

Types: Strong TypeScript types for Payment, Order, Merchant, and webhook payloads.

Smart-contract design (clear & opinionated)

Factory pattern: Deploys a Marketplace contract for each platform.

Merchant vaults: Lightweight per-merchant proxies under a marketplace.

Order escrows: One escrow per order; holds PYUSD; immutable references to buyer, seller, amounts, and policy.

Release conditions:

Buyer confirms delivery, or

Delivery window expires without dispute, or

Admin resolves a dispute (marketplace authority).

Events: EscrowOpened, EscrowReleased, EscrowRefunded, PayoutSent, PayoutFailed for full transparency.

Security & reliability (MVP stance)

Signed webhooks + idempotency keys on all write endpoints.

Replay & race protection in escrow release and payouts.

Typed validation on server (amounts, addresses, chain IDs).

Audit-friendly logs (link off-chain order IDs ↔ on-chain tx hashes).

Roadmap

Additional currencies (USDC/USDT) with the same integration surface.

Off-ramp partners for sellers that want fiat.

Hosted onboarding for marketplaces (no-code merchant invite flow).

Dispute center UI with time-boxed actions and evidence uploads.

Accounting exports (CSV/QuickBooks/Xero).

Optional KYC modules for marketplaces with higher regulatory needs.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.