fix: corrige le problème empêchant l'envoi dans des pays UE

- un mauvais arrondi était effectué lors de la création de la commande.
This commit is contained in:
gcch 2025-09-12 14:48:11 +02:00
commit c958c3adb9
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ $commande = wc_get_order($order_id);
/** @var mixed $methode_livraison */
$methode_livraison = [
"nom" => $commande->get_shipping_method(),
"cout" => $commande->get_shipping_total(),
"cout" => $commande->get_shipping_total() * 100,
];
// Sélectionne la clé API Stripe

View file

@ -301,7 +301,7 @@ export const initOrderCreationButton = (): void => {
{
method_id: selectedRateLS.method_id,
method_title: selectedRateLS.name,
total: pipe(diviseParCent(selectedRateLS.price), String),
total: String(selectedRateLS.price),
},
],
};