curl et json.
Démarrage
Les montants sont des chaînes décimales (ex.
'10000'). La clé API détermine l’environnement : sk_test_… (sandbox) ou sk_live_… (production).Pagination
Les endpoints de listing renvoient['data' => [...], 'nextCursor' => ...]. L’itérateur iterate parcourt toutes les pages via le curseur :
Vérification d’un webhook
Webhooks::validate attend le corps brut (php://input), pas un tableau re-sérialisé. Signature X-IziPay-Signature: sha256=<hex> (HMAC-SHA256), tolérance anti-replay 300 s.
Erreurs
Toutes les exceptions héritent deIzichangepay\IzichangepayException. Branchez sur le type :
| Type | Quand |
|---|---|
AuthException | 401 / 403 |
NotFoundException | 404 |
ValidationException | 422 (->fields) |
RateLimitException | 429 (->retryAfter) |
ServerException | 5xx |
NetworkException | pas de réponse (DNS, timeout) |
WebhookException | signature / timestamp invalides (->reason) |
Ressources disponibles
paymentIntents, payouts, invoices, products, settlements, settlementAccounts, wallet, merchantAssets, payins, assets, merchants, webhookEndpoints, whitelistAddresses.