Skip to content

Commit

Permalink
fix: fix issue of parsing string to number
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadAimanSulaiman committed Dec 27, 2024
1 parent 0132263 commit 12c4601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-store/hitpay/lib/PaymentService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class PaymentService implements IAbstractPaymentService {
id: bookingId,
},
},
amount: parseInt(data.amount) * 100,
amount: parseFloat(data.amount.replace(/,/g, "")) * 100,
externalId: data.id,
currency: data.currency,
data: Object.assign({}, data, { isPaid: false }) as unknown as Prisma.InputJsonValue,
Expand Down

0 comments on commit 12c4601

Please sign in to comment.