Gratuit
Boutique — panier & paiement
Panier, code promo, choix de livraison et paiement Stripe. Affiche aussi la confirmation de commande.
| Identifiant | shop-cart |
| Offre | Gratuit |
| Version | 1.0.0 |
| Manifeste | GET /v1/registry/shop-cart |
Champs
| Clé | Label | Type | Défaut |
heading |
Titre |
text |
Votre panier |
vide |
Message quand le panier est vide |
text |
Votre panier est vide pour le moment. |
lienBoutique |
Lien vers la boutique |
link |
/boutique |
codePromo |
Champ code promo (oui / non) |
text |
oui |
Actions
| Action | Appel | Rôle |
panier |
POST /v1/shop-cart/panier |
Recalcule le panier côté serveur : lignes, remise, port, TVA, total. |
paiement |
POST /v1/shop-cart/paiement |
Ouvre une session de paiement Stripe pour le panier donné. |
commande |
GET /v1/shop-cart/commande |
État d’une commande depuis sa session de paiement, avec les liens de téléchargement. |
panier
curl -X POST https://plugins.clapify.fr/v1/shop-cart/panier \
-H "X-API-Key: cfy_votre_cle" \
-H "Content-Type: application/json" \
-d '{"panier":"…","code":"…","livraison":"…"}'
| Paramètre | Attendu |
panier | liste de { produit, variante, qte } |
code | code promo, optionnel |
livraison | id de méthode, optionnel |
paiement
curl -X POST https://plugins.clapify.fr/v1/shop-cart/paiement \
-H "X-API-Key: cfy_votre_cle" \
-H "Content-Type: application/json" \
-d '{"panier":"…","code":"…","livraison":"…","email":"…"}'
| Paramètre | Attendu |
panier | liste de { produit, variante, qte } |
code | optionnel |
livraison | optionnel |
email | optionnel |
commande
curl -X GET https://plugins.clapify.fr/v1/shop-cart/commande \
-H "X-API-Key: cfy_votre_cle"
| Paramètre | Attendu |
session | identifiant de session Stripe, requis |
Rendu
curl -X POST https://plugins.clapify.fr/v1/render/shop-cart \
-H "X-API-Key: cfy_votre_cle" \
-H "Content-Type: application/json" \
-d '{"props":{"heading":"Votre panier","vide":"Votre panier est vide pour le moment.","lienBoutique":"/boutique","codePromo":"oui"}}'
← Tous les plugins