From a7d7fcea57df5e4b96e2ce396d95e614d5495509 Mon Sep 17 00:00:00 2001 From: Wisley Alves Date: Wed, 10 Jan 2024 10:31:22 -0300 Subject: [PATCH] fix(create-transaction): corrects the final price to create the transaction --- functions/routes/ecom/modules/create-transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/routes/ecom/modules/create-transaction.js b/functions/routes/ecom/modules/create-transaction.js index 065dfbd..58d1eac 100644 --- a/functions/routes/ecom/modules/create-transaction.js +++ b/functions/routes/ecom/modules/create-transaction.js @@ -94,7 +94,7 @@ exports.post = ({ appSdk, admin }, req, res) => { amount: amount.total } - const finalAmount = Math.floor((amount.total).toFixed(2) * 1000) / 10 + const finalAmount = Math.floor(amount.total * 100) const fristPayment = new Date() const galaxpaySubscriptions = {