Skip to content

Commit

Permalink
fix(locksmith): fixed credit card fees
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Oct 2, 2024
1 parent 1a6e00a commit 39e5310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locksmith/src/payment/paymentProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) {
Expand Down

0 comments on commit 39e5310

Please sign in to comment.