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:
parent
2a763f1bac
commit
c958c3adb9
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue