Appearance
Environnements
Séparation sandbox et production : clés, URLs et données distinctes.
Tableau des URLs
| Composant | Sandbox (recette) | Production |
|---|---|---|
| API Epayment | https://paymentdev-api.akieni.tech/api/v1 | https://api.pay.example.gov/api/v1 |
| Checkout hosted | https://staging.pay.example.gov/c/{session_id} | https://pay.example.gov/c/{session_id} |
| Checkout embed | https://staging.pay.example.gov/embed/{session_id} | https://pay.example.gov/embed/{session_id} |
| SDK browser | https://staging.pay.example.gov/sdk/v1.js | https://pay.example.gov/sdk/v1.js |
| Portail citoyen | https://staging.pay.example.gov/citizen | https://pay.example.gov/citizen |
| Portail régie | URL fournie à l'officer | URL production régie |
| Webhook ministry | Endpoint recette HTTPS (votre SI) | Endpoint prod HTTPS (votre SI) |
| ERP REST | Base URL recette ERP | Base URL prod ERP |
Les domaines exacts sont communiqués à l'onboarding. En local : API :4000, checkout :3000.
Clés et secrets
| Élément | Sandbox | Production |
|---|---|---|
| Clé API ministry | sk_test_… | sk_live_… |
| Secret webhook | Un par endpoint recette | Un par endpoint prod |
| Credentials ERP | Environnement test ERP | Environnement prod ERP |
| Connecteurs PSP | Connecteur fake ou sandbox PSP | Connecteurs live |
Ne pas réutiliser secrets, order_id de prod en sandbox, ni mélanger sk_test avec URLs live.
Données et comportement
| Aspect | Sandbox | Production |
|---|---|---|
| Paiement MM | Offre Paiement test (fake) : numéros à suffixe contrôlé (détail) ; ou sandbox PSP live | PSP live |
| Paiement carte | Acquéreur sandbox (checkout_environment: sandbox) | Acquéreur live (checkout_environment: live) |
| Agence | Collecte test guichet connecté | Collecte réelle |
| Webhooks | Même schéma JSON, signatures HMAC | Identique |
| Frais service | Config test (admin / régie) | Config prod |
| Journal | Visible officer / admin | Journal prod |
Passage en production
- Recette ministry ou ERP signée (recette ministry, recette ERP).
- Émission
sk_live_et endpoints webhook production. - Mise à jour coffre secrets et URLs dans le SI.
- Smoke test : une session live de faible montant puis surveillance webhook.