mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 15:25:45 +00:00
Removed console.log statements and corrected the amount calculation by removing the multiplication by 100.
This commit is contained in:
@@ -145,9 +145,7 @@ export class PaymentService {
|
|||||||
.findOneBy({ id: dto.bookingId });
|
.findOneBy({ id: dto.bookingId });
|
||||||
if (!booking) throw new NotFoundException("Booking not found");
|
if (!booking) throw new NotFoundException("Booking not found");
|
||||||
|
|
||||||
console.log("bookingbooking",booking)
|
const amountMinor = Math.round(Number(booking.totalAmount));
|
||||||
const amountMinor = Math.round(Number(booking.totalAmount) * 100);
|
|
||||||
console.log("amountminor",amountMinor)
|
|
||||||
|
|
||||||
const snapshot = await this.paymentClient.initiate({
|
const snapshot = await this.paymentClient.initiate({
|
||||||
service: PaymentServiceEnum.FREIGHT,
|
service: PaymentServiceEnum.FREIGHT,
|
||||||
|
|||||||
Reference in New Issue
Block a user