Skip to content
Gavino

Documentation

Integrate inan afternoon.

REST · JSON · signed webhooks

Gavino exposes a REST API with JSON payloads and signed webhooks. The examples below show the shape of an integration; your API keys and the full reference are available in your dashboard once your account is open.

Getting started

Open an account, complete verification and retrieve your test keys from the dashboard. Test mode accepts demo card numbers and never moves money. When you are ready, switch to live keys.

  1. 01Create your account
  2. 02Complete merchant verification
  3. 03Copy your test keys
  4. 04Create a first payment
  5. 05Listen to its events
  6. 06Switch to live keys

API reference

Every resource follows the same pattern: create, retrieve, list, update. Requests are authenticated with a secret key in the Authorization header and every write accepts an idempotency key.

Create a paymentexample
curl https://api.gavino.example/v1/payments \
  -H "Authorization: Bearer sk_test_••••••••" \
  -H "Idempotency-Key: order-2048" \
  -d amount=8400 \
  -d currency=eur \
  -d "customer[email]=buyer@example.com" \
  -d "metadata[order_id]=2048"
Responseexample
{
  "id": "pay_7Q41",
  "status": "requires_action",
  "amount": 8400,
  "currency": "eur",
  "next_action": { "type": "three_d_secure" },
  "checkout_url": "https://pay.gavino.example/c/7Q41"
}
/v1/payments
Create, capture, cancel and refund payments
/v1/checkout_sessions
Open a hosted checkout for an order
/v1/payment_links
Generate a shareable link for an amount
/v1/customers
Records used by the built-in CRM
/v1/disputes
Read disputes and submit evidence
/v1/payouts
List payouts and their statements

SDKs and plugins

Store plugins are available for Shopify, WooCommerce, PrestaShop and Magento. For custom stacks, call the REST API from any language; client libraries are shared with merchants during onboarding.

Guides

  • Accepting your first paymentFrom a test key to a captured payment.
  • Showing prices in local currencyHow the buyer’s currency is selected and displayed.
  • Writing fraud rulesBlock, review or require 3-D Secure based on your own criteria.
  • Answering a disputeWhich evidence to provide and when.
  • Reconciling payoutsMatching statements with your accounting.

Full guides are shared in your dashboard. Ask the team if you need one before signing up.

Webhooks

Gavino sends an HTTPS POST for each event on your account. Each request is signed; verify the signature before trusting the payload, and answer with a 2xx status within a few seconds.

payment.authorizedpayment.capturedpayment.failedpayment.refundeddispute.openedpayout.paid
Receive a webhook (Node.js)example
import express from "express";
import { verifySignature } from "./gavino-signature";

const app = express();

app.post("/webhooks/gavino", express.raw({ type: "application/json" }), (req, res) => {
  const signature = req.header("Gavino-Signature");
  if (!verifySignature(req.body, signature, process.env.GAVINO_WEBHOOK_SECRET)) {
    return res.status(400).end();
  }
  const event = JSON.parse(req.body.toString());
  if (event.type === "payment.captured") {
    // mark order event.data.metadata.order_id as paid
  }
  res.status(200).end();
});

Best practices

  1. 01Keep secret keys on your server, never in a browser or an app.
  2. 02Send an idempotency key with every write request.
  3. 03Treat webhooks as the source of truth for payment status.
  4. 04Verify every webhook signature.
  5. 05Use test mode for every change before you deploy it.

Stuck on an integration?

Write to us with your request ID and what you expected. A developer from the team will answer.

Contact developer support