REST · HMAC · SSE · OPENAPI 3.1
Une API pensée pour des ingénieurs.
SDK officiels en six langages, sandbox illimitée, webhooks signés HMAC-SHA256. Sous le capot, Solana et Sui passent par notre backbone gRPC node pour un dispatch on-chain ultra rapide.
Développeurs
Trois lignes. Un paiement.
SDK officiels JavaScript, TypeScript, Python, PHP, Go, Rust. API REST partout. Sous le capot, Solana et Sui passent par notre backbone gRPC node pour un dispatch on-chain ultra rapide.
- TypeScript first
- Webhooks signés HMAC-SHA256
- Pages de paiement hébergées
- Elements embarquables
- Sandbox gratuite illimitée
- gRPC pour le bas-latence
api · v1
// npm i @abyxo/node
import Abyxo from "@abyxo/node";
const abyxo = new Abyxo("sk_live_…");
const session = await abyxo.checkout.sessions.create({
amount: 4990, // 49,90 €
currency: "EUR",
accept: ["BTC", "ETH", "USDC", "SUI"],
success_url: "https://shop.io/ok",
});
res.redirect(session.url); Documentation
Tout ce qu’il vous faut.
Spec OpenAPI 3.1, collection Postman, exemples copier-coller dans six langages, et endpoint gRPC documenté en Protobuf.
Webhooks · HMAC-SHA256
Validation côté serveur.
Calculez un HMAC-SHA256 sur le corps brut avec votre secret webhook, puis comparez en temps constant à l’en-tête Abyxo-Signature.
// Express.js — HMAC validation
import crypto from "node:crypto";
app.post("/webhook", express.raw({ type: "*/*" }), (req, res) => {
const sig = req.headers["abyxo-signature"];
if (typeof sig !== "string") return res.status(401).end();
const expected = crypto
.createHmac("sha256", process.env.ABYXO_WHSEC)
.update(req.body)
.digest("hex");
const a = Buffer.from(sig, "hex");
const b = Buffer.from(expected, "hex");
if (a.length !== b.length || !crypto.timingSafeEqual(a, b)) {
return res.status(401).end();
}
// + replay-check via Abyxo-Timestamp
const event = JSON.parse(req.body.toString("utf8"));
if (event.type === "checkout.completed") {
// Fulfill the order
}
res.json({ ok: true });
}); Changelog
Dernières versions.
Prêt à encaisser en crypto ?
Créez votre compte en 60 secondes. Test gratuit illimité, sans carte bancaire.