Skip to main content

APIDevelopers

Build payments into your product

One API for every Sovgate product, with a test mode, keys you can limit, signed webhooks and a log of every request.

Your first payment in three steps

The same steps the dashboard's integration guide walks you through, ticked off as you go.

  1. 1

    Get your test keys

    Sign up and copy your test secret key from the dashboard. Test mode keeps its own keys and data, and moves no real money.

    SOVGATE_SECRET_KEY=sov_sk_test_…

  2. 2

    Create a Checkout session

    From your server, create a session for what your customer is buying, then send them to the session's url to pay.

    POST /v1/checkout/sessions

    → url: https://checkout.sovgate.com/…

  3. 3

    Listen for the result

    Add a webhook endpoint for checkout.session.completed, and check each delivery's Sovgate-Signature header before you trust it.

    checkout.session.completed

    Sovgate-Signature: t=…,v1=…

Everything an integration needs

Part of every Sovgate account, in test mode and live.

  • Keys with only the access they need

    Give a key None, Read or Write on each resource, limit it to your servers' addresses, and set when it expires.

  • Signed webhooks

    Every delivery carries a Sovgate-Signature header, and a delivery your server misses is tried again.

  • An event for everything

    Over 100 event types, each named for what changed and how, like invoice.paid.

  • A log of every request

    See each request your integration makes for 13 months, with card numbers and secrets left out.

  • Test mode

    Build with your own test keys, test data and test cards before a real payment moves.

  • Safe to retry

    Send an Idempotency-Key with a request, and sending it again returns the same answer instead of doing it twice.

Get your test keys and start building