From f7cd45d515433dcfe6325302d06ddd2ec23311f9 Mon Sep 17 00:00:00 2001 From: Wisley Date: Thu, 4 Jan 2024 13:57:40 -0300 Subject: [PATCH] fix(payment-subscriptions): fix conversion error to cents --- functions/lib/pagarme/payment-subscriptions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/lib/pagarme/payment-subscriptions.js b/functions/lib/pagarme/payment-subscriptions.js index a9404f6..5034808 100644 --- a/functions/lib/pagarme/payment-subscriptions.js +++ b/functions/lib/pagarme/payment-subscriptions.js @@ -202,7 +202,7 @@ const createPayment = async (params, appData, storeId, customer) => { const payment = { payment_method: paymentMethod, - amount: Math.floor((amount.total)) * 100 + amount: Math.floor((amount.total) * 100) } if (paymentMethod === 'credit_card') {