Clapify Plugins
Gratuit

Boutique — panier & paiement

Panier, code promo, choix de livraison et paiement Stripe. Affiche aussi la confirmation de commande.

Identifiantshop-cart
OffreGratuit
Version1.0.0
ManifesteGET /v1/registry/shop-cart

Champs

CléLabelTypeDé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

ActionAppelRô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ètreAttendu
panierliste de { produit, variante, qte }
codecode promo, optionnel
livraisonid 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ètreAttendu
panierliste de { produit, variante, qte }
codeoptionnel
livraisonoptionnel
emailoptionnel

commande

curl -X GET https://plugins.clapify.fr/v1/shop-cart/commande \
  -H "X-API-Key: cfy_votre_cle"
ParamètreAttendu
sessionidentifiant 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