Merge branch 'dev' of github.com:Tria-plc/edr-platform into freight/feature/last_mile_invoice

This commit is contained in:
natib21
2026-06-29 13:24:32 +00:00
4 changed files with 27 additions and 23 deletions

View File

@@ -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) {