Esperienza Developer

Costruito per gli Sviluppatori

API RESTful, SDK ufficiali, sandbox completa e webhook: una pci compliant API che offre tokenization as a service per la pan tokenization, card on file tokenization inclusa. Dal pci sandbox environment alla produzione in poche ore.

Sandbox in Minuti

Accesso API completo. Nessuna carta richiesta.

REST + 5 SDK

API versionate con specifica OpenAPI.

PCI Scope Eliminato

I tuoi server vedono solo token, mai PAN.

Riferimento API

Documentazione API REST

API REST pulita e versionata. Autenticati, invia JSON, ricevi JSON. Ogni endpoint è idempotente, ogni errore restituisce un problem detail strutturato con header di tracciamento per il debug.

POST /v1/tokenize Scope: tokenize

Richiesta cURL

curl -X POST https://api.pci-proxy.eu/v1/tokenize \
  -H "Authorization: Bearer sk_live_..." \
  -d '{
    "card_number": "4111111111111111",
    "expiry":      "12/26",
    "cvv":         "123"
  }'

Risposta 200 OK

{
  "token":      "tok_pci_eu_a1b2c3d4e5f6",
  "last_four": "1111",
  "brand":     "visa",
  "expires_at": "2026-12-31",
  "request_id": "req_7g8h9i0j"
}
POST /v1/forward Scope: forward

Richiesta cURL

curl -X POST https://api.pci-proxy.eu/v1/forward \
  -H "Authorization: Bearer sk_live_..." \
  -d '{
    "token":      "tok_pci_eu_a1b2c3d4e5f6",
    "target_url": "https://psp.example.com/charge",
    "amount":     9900,
    "currency":   "EUR"
  }'

Risposta 200 OK

{
  "status":          "authorized",
  "transaction_id":  "txn_9f8e7d6c",
  "amount":          9900,
  "currency":        "EUR",
  "psp_response_code": "00"
}
Sandbox

Ambiente
Sandbox
Completo

100%

Parità API con la Produzione

Ogni endpoint, codice errore e webhook funziona in modo identico in sandbox e in produzione.

Carte di Test

VISA 4111 1111 1111 1111
✓ Successo
MC 5555 5555 5555 4444
✓ Successo
TEST 4000 0000 0000 0002
✗ Rifiutata
sandbox · feature list READY
100% parità API con la produzione
Carte di test per tutti i circuiti principali
Risposte PSP simulate (successo, rifiuto, timeout)
Test e replay degli eventi webhook
Dashboard logging richieste/risposte completo
Nessuna carta di credito per la registrazione
Timestamp sub-millisecondo su tutti i log
Token con prefisso tok_pci_eu_test_
SDK e Librerie

SDK Ufficiali per Ogni Stack

Installa, passa la chiave API, tokenizza. Ogni libreria gestisce autenticazione, retry, mappatura errori e type safety out of the box.

JS
JavaScript / TypeScript npm install @pci-proxy-eu/js
import PCIProxy from '@pci-proxy-eu/js';

const pci = new PCIProxy({ merchantId: 'mrc_xyz789', apiKey: 'sk_live_...', env: 'sandbox' });

const result = await pci.tokenize({ cardNumber: '4111111111111111', expiry: '12/26' });
console.log(result.token);  // tok_pci_eu_test_a1b2c3d4e5f6
PY
Python pip install pci-proxy-eu
from pci_proxy_eu import Client

client = Client(merchant_id="mrc_xyz789", api_key="sk_live_...", environment="sandbox")
result = client.tokenize(card_number="4111111111111111", expiry="12/26")
print(result.token)  # tok_pci_eu_test_a1b2c3d4e5f6
PHP
PHP composer require pci-proxy-eu/sdk
use PCIProxyEU\Client;

$client = new Client(merchantId: 'mrc_xyz789', apiKey: 'sk_live_...', environment: 'sandbox');
$result = $client->tokenize(['card_number' => '4111111111111111', 'expiry' => '12/26']);
echo $result->token;  // tok_pci_eu_test_a1b2c3d4e5f6
Disponibili anche: Java.NETGoRuby
Webhook & DX

Integrazione Webhook + DX

Notifiche HMAC-SHA256 in tempo reale, backoff esponenziale e un ecosistema developer-friendly completo per build production-grade.

Tipi di Evento · Live Stream
token.created Nuovo token generato
token.used Token inviato al PSP
token.expired Token scaduto (TTL)
token.deleted Token rimosso su richiesta
forward.success PSP ha risposto 2xx
forward.failure PSP ha restituito errore
webhook-handler.js
import crypto from 'crypto';
// Verifica firma HMAC-SHA256
app.post('/webhooks/pci', (req, res) => {
  const sig = req.headers['x-pci-signature'];
  const expected = crypto
    .createHmac('sha256', process.env.WEBHOOK_SECRET)
    .update(req.body).digest('hex');
  if (sig !== `sha256=${expected}`)
    return res.status(401).send('Firma non valida');
  const event = JSON.parse(req.body);
  res.status(200).send('OK');
});

Funzionalità Developer-Friendly

Idempotenza

Su ogni write - riprova senza duplicare addebiti.

Errori RFC 7807

Problem detail strutturati, leggibili da macchina.

Request Tracing

X-Request-Id su ogni risposta per tracing distribuito.

Rate Limit

Header X-RateLimit-* in tempo reale.

OpenAPI 3.1

Scarica la spec, genera client in qualsiasi lingua.

Postman Collection

Ambienti sandbox e prod preconfigurati.

Politica di Retry Webhook

1
0s
2
5m
3
30m
4
2h
5
24h
Pronto a Buildare?

Inizia a Costruire con PCI Proxy

Esplora l'architettura dietro l'API o scopri come merchant e PSP la mettono al lavoro.