Documentation

Deripay handbook.

Deripay is a payment gateway for Deriv third-party sites. It lets your users deposit and withdraw to/from their Deriv account using M-Pesa, with no licensing or direct payment-agent integration on your side.

new·recommended

Integrate with one prompt.

Paste a single prompt into Claude / Cursor / Codex / Copilot — your AI scans the codebase, places the Cashier button, builds the deposit + withdrawal modal, and verifies itself before handing back.

Open the AI flow

How it works

  1. Your user clicks “Deposit” on your site. Your frontend collects their M-Pesa phone + USD amount and sends it (with their Deriv token) to your server.
  2. Your server signs the request with your Deripay API key and POSTs to /api/v1/deposit.
  3. Deripay authorizes a session with the user's Deriv account, requests an M-Pesa STK push, and credits their Deriv account when the user completes the prompt.
  4. Your server polls /api/v1/transactions/:id (or receives a webhook) to know when the deposit is complete.

Pricing

Deripay charges a small spread on the FX rate (USD ↔ KES). Of that margin, 22% is paid to you as the integrating developer. No per-transaction fees, no monthly minimums.