Proposed API contract

Webhooks

Proposed signed, asynchronous payment notifications. The delivery engine is planned.

Signature contract

Proposed headers: X-InfiniStack-Timestamp and X-InfiniStack-Signature. Sign timestamp + "." + raw body with HMAC-SHA256. Compare signatures in constant time.

Replay protection

Proposed tolerance: 300 seconds. Persist event IDs and deduplicate deliveries. Retry delivery independently from payment attempts.

Confirm before fulfilment

Return a 2xx after durable receipt. Process asynchronously and verify payment status on your server before fulfilling an order.

POST /v1/paymentsProposed API contract
curl https://sandbox.infinistack.example/v1/payments \
  -H "Authorization: Bearer sk_test_example" \
  -H "Idempotency-Key: order_sample_01" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 10000,
  "currency": "XAF",
  "country": "TD",
  "reference": "order_sample_01",
  "payment_method": "airtel",
  "customer": {
    "phone": "+23566000000"
  }
}'

Use test credentials only. Access is issued after review.