Quickstart
Accept USDC and USDT on your website. Customers pay with their PryvPay wallet (email, approve in the wallet, enter the code) or any crypto wallet, and every payment goes straight to your own wallet. We never hold your money and never take a cut of a sale: our fee is a flat monthly plan.
You can build and test right after signing up. Live payments switch on once we've approved your business.
1. Create your account
Open https://pryvpay.co/dashboard/signup and verify your email. Then:
- tell us about your business (we review it before live payments start),
- set your display name and a billing descriptor (what buyers see in their wallet history),
- choose where payments go: create a passkey wallet (recommended: you approve refunds and withdrawals with your fingerprint or Face ID) or paste an address you control,
- pick a plan: Starter (free, 50 paid orders a month), Growth or Pro, with prepaid order packs for busy months. Never a percentage of your sales.
Your API keys are shown once. We store only their hashes, so save them somewhere safe.
| Key | Where to use it |
|---|---|
pk_test_… / pk_live_… | Publishable: safe in web pages (checkout button). |
sk_test_… / sk_live_… | Secret: on your server only. |
whsec_… | Verifies webhook signatures. |
Test keys run on the test network with test dollars, so nothing you do there costs real money. Live keys work once your business is approved.
2. Create a payment on your server
curl https://pryvpay.co/v1/payments \
-H "Authorization: Bearer sk_test_..." \
-H "Idempotency-Key: order-1234" \
-H "Content-Type: application/json" \
-d '{"amount": 2500, "currency": "USD", "order_id": "1234",
"description": "Annual membership",
"success_url": "https://yoursite.com/orders/1234",
"cancel_url": "https://yoursite.com/cart"}'
amount is in minor units (cents), so 2500 is $25.00. Supported pricing currencies are USD and KES; the buyer always pays the exact equivalent in USDC or USDT, locked for 15 minutes.
The response includes id, checkout_url and expires_at. You can redirect the buyer to checkout_url, or open checkout on your own page (next step).
3. Add checkout to your site
Modal (recommended)
Create a checkout session on your server with POST /v1/checkout/sessions (same body as above), then:
<script src="https://pryvpay.co/checkout.js" data-key="pk_test_..."></script>
<button data-checkout-session="pay_...">Pay with USDC or USDT</button>
<!-- or: Checkout.open({ sessionId: 'pay_...', onSuccess, onCancel }) -->
On desktop this opens a modal over your page; on mobile it opens the full-page checkout. The modal only loads on your registered website domain.
Classic pay button (popup)
<script src="https://pryvpay.co/pay.js" data-key="pk_test_..."></script>
<button data-payment-id="pay_...">Pay</button>
Or call Pay.checkout({ paymentId, onSuccess, onClose }) yourself.
What your customers can do at checkout
- pay with PryvPay: type the email or phone number linked to their wallet, approve the request in their wallet with their fingerprint, face or screen lock, then enter the 6-digit code the wallet shows. Nothing is sent until the code is entered, so someone who only knows a customer's email can't use their approval. No network fee,
- if they're already on their phone with the wallet, approve right there with no code needed,
- create a wallet in under a minute and top up through a licensed partner where available,
- or pay from any other wallet, such as MetaMask, Trust Wallet, Coinbase Wallet or Valora, by browser extension or QR code.
4. Fulfil the order from the webhook
Set your webhook URL in Dashboard → Webhooks. Mark the order paid only after a verified payment.paid event, never from the browser redirect alone.
import express from 'express';
import { verifyWebhook } from './verify-webhook.mjs';
const app = express();
app.post('/webhooks', express.raw({ type: 'application/json' }), (req, res) => {
const event = verifyWebhook(req.body, req.headers['x-signature'], process.env.WEBHOOK_SECRET);
if (event.type === 'payment.paid') markOrderPaid(event.data.payment.order_id);
res.sendStatus(200);
});
See Webhooks for every event, signature details and retries.
5. Go live
- Wait for the approval email (you'll also see it in the dashboard).
- Swap
pk_test_/sk_test_for your live keys and add the live webhook secret. - Make one small real payment to yourself and refund it from the dashboard.
More ways to get paid
- No website? Create a payment link in Dashboard → Payment links and share it in any chat app or on social media.
- WordPress / WooCommerce: install the plugin. See WooCommerce.
- Refunds: from the payment page in the dashboard, or
POST /v1/refunds. You approve each one from your wallet. - Subscriptions:
POST /v1/subscriptions, then send the buyer toapproval_url. Turn on automatic charges once in Dashboard → Subscriptions. - Cash out: Dashboard → Wallet sends to any wallet or exchange, or to your bank or mobile money through a licensed partner where available.
- Full reference: API.