Creare un checkout di test

POST/checkout/create.php
Terminal
curl "https://circus-pay.com/api/checkout/create.php" \
  -H "Authorization: Bearer $CIRCUSPAY_SECRET_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "amount": 1000,
  "currency": "EUR",
  "orderId": "TEST-DEMO-001",
  "testMode": true
}'

Una chiave di test impone questa modalità. La risposta indica test: true, mode: "test" e un URL sandbox. Verifica questi valori prima di continuare.

Verificare l’integrazione

  1. Crea un nuovo ordine con riferimento univoco.
  2. Apri l’URL sandbox restituito e segui il flusso di simulazione.
  3. Verifica la ricezione della notifica nell’ambiente di test.
  4. Verifica che più notifiche non causino più evasioni dello stesso ordine.
  5. Testa il fallimento e il ritorno al negozio.