Documentation
Integrate inan afternoon.
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.
- Create your account
- Complete merchant verification
- Copy your test keys
- Create a first payment
- Listen to its events
- Switch 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.
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"{
"id": "pay_7Q41",
"status": "requires_action",
"amount": 8400,
"currency": "eur",
"next_action": { "type": "three_d_secure" },
"checkout_url": "https://pay.gavino.example/c/7Q41"
}- Create, capture, cancel and refund payments
- Open a hosted checkout for an order
- Generate a shareable link for an amount
- Records used by the built-in CRM
- Read disputes and submit evidence
- 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.
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
- Keep secret keys on your server, never in a browser or an app.
- Send an idempotency key with every write request.
- Treat webhooks as the source of truth for payment status.
- Verify every webhook signature.
- Use 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