<script
src="<https://dbgt0bv51nea5.cloudfront.net/lbx-cbnx-options/lbx-cbnx-options.js>"
></script>
<link
href="<https://dbgt0bv51nea5.cloudfront.net/lbx-cbnx-options/lbx-cbnx-options.css>"
rel="stylesheet"
/>
lbx-cbnx
pour montrer les options<lbx-cbnx
authkey="1575548537269x551789111684887000"
vd="1575548961850x942705562301413600"
test-env="true"
total="2000"
retour-url="<https://localhost/success>"
notification-url="<https://localhost/webhook>"
productid="product-id"
paymentoptions="FLOA_10XG, FLOA_4XG, FLOA_4XP"
orientation="row"
></lbx-cbnx>
Parameter name | Is Mandatory | Expected Value | Comments |
---|---|---|---|
authkey | yes | string | Identifiants : dispo sur l’onglet Intégrations de votre tableau de bord Lenbox |
vd | yes | string | Identifiants : dispo sur l’onglet Intégrations de votre tableau de bord Lenbox |
total | yes | number : "0" par defaut | Montant entre 50 et 4500 |
commande | yes | string | Free text : Titre de la commande |
retour-url | yes | url | URL to redirect the client to after successful payment |
Optional params | |||
test-env | no | boolean : "false" par defaut | Environnement (live ou test) |
paymentoptions | no | string | liste de options séparées par des virgules. |
FLOA_3XG = paiement en 3 fois sans frais pour le client | |||
FLOA_3XP = paiement en 3 fois avec frais pour le client | |||
FLOA_4XG = paiement en 4 fois sans frais pour le client | |||
FLOA_4XP = paiement en 4 fois avec frais pour le client | |||
FLOA_10XG = paiement en 10 fois sans frais pour le client | |||
FLOA_10XP = paiement en 10 fois avec frais pour le client | |||
redirect-client | no | boolean : "true" pas defaut | quand "false", c'est seulement une block visuel. |
Par defaut, le client va être rédiriger à lenbox | | notification-url | no | url | Si vous souhaitez recevoir les réponses de financement sur un lien webhook, vous pouvez rentrer ce lien ici. | | productid | no - en général
oui - si vous voulez utiliser notification-url | string | Free text : Identifiant de la commande (côté vendeur) | | description | no | string | Free text | | image | no | URL | URL d’image du produit | | orientation | no | 'row' or 'col' : 'col' par defaut | | | Theming | | | | | border-color | no | color | Border color | | primary-color | no | color | Background color | | text-color | no | color | Text color | | text-height | no | fontSize | Taille de police et de l'image (hors padding) |
Le notification URL devrait être dans la forme,
<https://www.client-site.com/path/to/webhook?productId=><productId>
Le webhook ne vous envoyé pas les details de commande. Vous devez faire une appel à /getformstatus
avec le Client-Order-Id pour retrouver l’état de commande