Removed console.log statements and corrected the amount calculation by removing the multiplication by 100.

This commit is contained in:
marshal
2026-06-17 14:21:33 +03:00
parent 52f0fd7e62
commit d7476a51c1

View File

@@ -145,9 +145,7 @@ export class PaymentService {
.findOneBy({ id: dto.bookingId });
if (!booking) throw new NotFoundException("Booking not found");
console.log("bookingbooking",booking)
const amountMinor = Math.round(Number(booking.totalAmount) * 100);
console.log("amountminor",amountMinor)
const amountMinor = Math.round(Number(booking.totalAmount));
const snapshot = await this.paymentClient.initiate({
service: PaymentServiceEnum.FREIGHT,