mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 01:55:41 +00:00
payemnt
This commit is contained in:
@@ -163,6 +163,10 @@ export class PaymentService {
|
|||||||
failureUrl: 'https://edrfreight.triaplc.com/payment/failure',
|
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);
|
const intent = await this.syncIntentProjection(booking.id, booking, snapshot);
|
||||||
|
|
||||||
if (snapshot.status === ProviderPaymentStatus.SUCCEEDED) {
|
if (snapshot.status === ProviderPaymentStatus.SUCCEEDED) {
|
||||||
|
|||||||
Reference in New Issue
Block a user