From 39e5310b5898546656873dcc502d6978c4698871 Mon Sep 17 00:00:00 2001 From: Julien Genestoux Date: Wed, 2 Oct 2024 15:42:14 -0400 Subject: [PATCH] fix(locksmith): fixed credit card fees --- locksmith/src/payment/paymentProcessor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locksmith/src/payment/paymentProcessor.ts b/locksmith/src/payment/paymentProcessor.ts index 8284c74e427..a3735d44c0f 100644 --- a/locksmith/src/payment/paymentProcessor.ts +++ b/locksmith/src/payment/paymentProcessor.ts @@ -200,7 +200,7 @@ export class PaymentProcessor { }) const paymentIntentParams: any = { - amount: Math.ceil(pricing.total), + amount: Math.ceil(pricing.total * 100), currency: creditCardCurrency, customer: connectedCustomer.id, payment_method: method.id, @@ -221,7 +221,7 @@ export class PaymentProcessor { application_fee_amount: !applicationFeeNotSupportedCountries.includes( account.country?.trim() || '' ) - ? Math.ceil(pricing.unlockServiceFee + pricing.gasCost) + ? Math.ceil(pricing.unlockServiceFee * 100 + pricing.gasCost * 100) : undefined, } if (connectedCustomer.email) {