diff --git a/apps/edr-freight-api/src/modules/payment/payment.service.ts b/apps/edr-freight-api/src/modules/payment/payment.service.ts index 1d56cb1cf..9f216bc60 100644 --- a/apps/edr-freight-api/src/modules/payment/payment.service.ts +++ b/apps/edr-freight-api/src/modules/payment/payment.service.ts @@ -163,6 +163,10 @@ export class PaymentService { failureUrl: 'https://edrfreight.triaplc.com/payment/failure', }); + await this.datasource.getRepository(Booking).update( + { id: dto.bookingId }, + { paymentStatus: "PAID", status: "PAID" }, + ); const intent = await this.syncIntentProjection(booking.id, booking, snapshot); if (snapshot.status === ProviderPaymentStatus.SUCCEEDED) {