Skip to content

Commit

Permalink
fix(payment-subscriptions): fix conversion error to cents
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed Jan 4, 2024
1 parent d0585dd commit f7cd45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/lib/pagarme/payment-subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit f7cd45d

Please sign in to comment.