Overview

API calls (14 days)
…
Success rate
…
Collected
…
Balance
…
API traffic

No traffic yet. Fire a request in the API Console.

Top endpoints

—

Road to live…
    Webhook healthView logs

    Loading…

    Quick startDownload a library
    import { PesaBridge } from "./pesabridge.mjs";
    
    const pb = new PesaBridge({ clientId: process.env.PB_KEY, clientSecret: process.env.PB_SECRET });
    
    // a hosted payment page; the same key never charges twice
    const payment = await pb.payments.create(
      { amount: 1500, reference: "ORDER-1001", success_url: "https://shop.example/thanks" },
      { idempotencyKey: "ORDER-1001" },
    );
    console.log(payment.url);
    
    // in your webhook route: pass the raw body, unparsed
    const event = pb.webhooks.verify(rawBody, req.headers, process.env.PB_WEBHOOK_SECRET);
    API Console
    Try any call with your keys
    Webhooks
    Endpoints, deliveries & resend
    API keys
    Test & live keys

    Recent charges

    View logs

    Loading…